diff options
author | dst <dstftw@gmail.com> | 2013-12-19 10:53:38 +0700 |
---|---|---|
committer | dst <dstftw@gmail.com> | 2013-12-19 10:53:38 +0700 |
commit | a51e37af6242a3fa49ad258a63d3f1a40c0ef9f2 (patch) | |
tree | e273c0244fc5afbb3243376f48669d1646b534f8 /youtube_dl | |
parent | 6c6db72ed4505520d80002e37b523e4177146979 (diff) | |
download | youtube-dl-a51e37af6242a3fa49ad258a63d3f1a40c0ef9f2.zip youtube-dl-a51e37af6242a3fa49ad258a63d3f1a40c0ef9f2.tar.gz youtube-dl-a51e37af6242a3fa49ad258a63d3f1a40c0ef9f2.tar.bz2 |
[ivi] Simplify
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/ivi.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/youtube_dl/extractor/ivi.py b/youtube_dl/extractor/ivi.py index 1027947..4bdf55f 100644 --- a/youtube_dl/extractor/ivi.py +++ b/youtube_dl/extractor/ivi.py @@ -13,7 +13,7 @@ from ..utils import ( class IviIE(InfoExtractor): IE_DESC = u'ivi.ru' IE_NAME = u'ivi' - _VALID_URL = r'^https?://(?:www\.)?(?P<url>ivi\.ru/watch(?:/(?P<compilationid>[^/]+))?/(?P<videoid>\d+))' + _VALID_URL = r'^https?://(?:www\.)?ivi\.ru/watch(?:/(?P<compilationid>[^/]+))?/(?P<videoid>\d+)' _TESTS = [ # Single movie @@ -103,9 +103,7 @@ class IviIE(InfoExtractor): previews.sort(key=lambda fmt: self._known_thumbnails.index(fmt['content_format'])) thumbnail = previews[-1][u'url'] if len(previews) > 0 else None - video_page_url = 'http://' + mobj.group('url') - video_page = self._download_webpage(video_page_url, video_id, u'Downloading video page') - + video_page = self._download_webpage(url, video_id, u'Downloading video page') description = self._extract_description(video_page) comment_count = self._extract_comment_count(video_page) |