diff options
| author | Philipp Hagemeister <phihag@phihag.de> | 2014-12-12 12:44:32 +0100 | 
|---|---|---|
| committer | Philipp Hagemeister <phihag@phihag.de> | 2014-12-12 12:44:50 +0100 | 
| commit | 73aeb2dc56068f50e996f2cc08c58db9258b21d4 (patch) | |
| tree | 86fd28b158a4c09b88ab945513bcfc5be0cbf95c | |
| parent | c6973bd4124bb7e15b937f2d337bd7af20562ca6 (diff) | |
[goshgay] Modernize
| -rw-r--r-- | youtube_dl/extractor/goshgay.py | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/youtube_dl/extractor/goshgay.py b/youtube_dl/extractor/goshgay.py index 18474cbb7..ccf65c2c3 100644 --- a/youtube_dl/extractor/goshgay.py +++ b/youtube_dl/extractor/goshgay.py @@ -2,14 +2,14 @@  from __future__ import unicode_literals  from .common import InfoExtractor +from ..compat import compat_urlparse  from ..utils import ( -    compat_urlparse,      ExtractorError,  )  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 = {          'url': 'http://www.goshgay.com/video4116282',          'md5': '268b9f3c3229105c57859e166dd72b03', @@ -24,8 +24,8 @@ class GoshgayIE(InfoExtractor):      def _real_extract(self, url):          video_id = self._match_id(url) -          webpage = self._download_webpage(url, video_id) +          title = self._og_search_title(webpage)          thumbnail = self._og_search_thumbnail(webpage)          family_friendly = self._html_search_meta( | 
