mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-02-04 09:09:53 +00:00
[gimy] fixed coding convention
This commit is contained in:
parent
9e995bdc4f
commit
899129a43f
@ -12,7 +12,7 @@ from ..utils import (
|
|||||||
|
|
||||||
|
|
||||||
class GimyIE(InfoExtractor):
|
class GimyIE(InfoExtractor):
|
||||||
_VALID_URL = r'https?://(?:www\.)?gimy\.co/eps/(?P<id>[0-9,-]+)'
|
_VALID_URL = r'https?://(?:www\.)?gimy\.co/eps/(?P<id>[0-9,-]+)\.html'
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
'url': 'http://gimy.co/eps/116498-1-1.html',
|
'url': 'http://gimy.co/eps/116498-1-1.html',
|
||||||
'md5': '3c804e6600c466b98ac24a6f3431cafd',
|
'md5': '3c804e6600c466b98ac24a6f3431cafd',
|
||||||
@ -63,12 +63,10 @@ class GimyIE(InfoExtractor):
|
|||||||
if m3u8_url is None:
|
if m3u8_url is None:
|
||||||
raise ExtractorError('Unable to extract video urls')
|
raise ExtractorError('Unable to extract video urls')
|
||||||
|
|
||||||
formats = self._extract_m3u8_formats(m3u8_url, video_id, 'mp4', entry_protocol='m3u8_native')
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
'title': self._og_search_title(webpage),
|
'title': self._og_search_title(webpage),
|
||||||
'formats': formats,
|
'formats': self._extract_m3u8_formats(m3u8_url, video_id, 'mp4', entry_protocol='m3u8_native'),
|
||||||
'description': self._og_search_description(webpage),
|
'description': self._og_search_description(webpage),
|
||||||
'thumbnail': self._og_search_thumbnail(webpage)
|
'thumbnail': self._og_search_thumbnail(webpage)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user