mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-09-08 09:35:01 +00:00
[goshgay] Modernize
This commit is contained in:
parent
c6973bd412
commit
73aeb2dc56
|
@ -2,14 +2,14 @@
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
|
from ..compat import compat_urlparse
|
||||||
from ..utils import (
|
from ..utils import (
|
||||||
compat_urlparse,
|
|
||||||
ExtractorError,
|
ExtractorError,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class GoshgayIE(InfoExtractor):
|
class GoshgayIE(InfoExtractor):
|
||||||
_VALID_URL = r'^(?:https?://)www.goshgay.com/video(?P<id>\d+?)($|/)'
|
_VALID_URL = r'https?://www\.goshgay\.com/video(?P<id>\d+?)($|/)'
|
||||||
_TEST = {
|
_TEST = {
|
||||||
'url': 'http://www.goshgay.com/video4116282',
|
'url': 'http://www.goshgay.com/video4116282',
|
||||||
'md5': '268b9f3c3229105c57859e166dd72b03',
|
'md5': '268b9f3c3229105c57859e166dd72b03',
|
||||||
|
@ -24,8 +24,8 @@ class GoshgayIE(InfoExtractor):
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
video_id = self._match_id(url)
|
video_id = self._match_id(url)
|
||||||
|
|
||||||
webpage = self._download_webpage(url, video_id)
|
webpage = self._download_webpage(url, video_id)
|
||||||
|
|
||||||
title = self._og_search_title(webpage)
|
title = self._og_search_title(webpage)
|
||||||
thumbnail = self._og_search_thumbnail(webpage)
|
thumbnail = self._og_search_thumbnail(webpage)
|
||||||
family_friendly = self._html_search_meta(
|
family_friendly = self._html_search_meta(
|
||||||
|
|
Loading…
Reference in a new issue