mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-07 20:30:41 -05:00
[ivi] Simplify
This commit is contained in:
parent
6c6db72ed4
commit
a51e37af62
1 changed files with 2 additions and 4 deletions
|
@ -13,7 +13,7 @@
|
||||||
class IviIE(InfoExtractor):
|
class IviIE(InfoExtractor):
|
||||||
IE_DESC = u'ivi.ru'
|
IE_DESC = u'ivi.ru'
|
||||||
IE_NAME = u'ivi'
|
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 = [
|
_TESTS = [
|
||||||
# Single movie
|
# Single movie
|
||||||
|
@ -103,9 +103,7 @@ def _real_extract(self, url):
|
||||||
previews.sort(key=lambda fmt: self._known_thumbnails.index(fmt['content_format']))
|
previews.sort(key=lambda fmt: self._known_thumbnails.index(fmt['content_format']))
|
||||||
thumbnail = previews[-1][u'url'] if len(previews) > 0 else None
|
thumbnail = previews[-1][u'url'] if len(previews) > 0 else None
|
||||||
|
|
||||||
video_page_url = 'http://' + mobj.group('url')
|
video_page = self._download_webpage(url, video_id, u'Downloading video page')
|
||||||
video_page = self._download_webpage(video_page_url, video_id, u'Downloading video page')
|
|
||||||
|
|
||||||
description = self._extract_description(video_page)
|
description = self._extract_description(video_page)
|
||||||
comment_count = self._extract_comment_count(video_page)
|
comment_count = self._extract_comment_count(video_page)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue