mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-01-05 11:00:08 +09:00
Apply improvements as suggested by 'pateik'
This commit is contained in:
parent
9a14872ffd
commit
7a489eaa6d
@ -53,6 +53,8 @@ class VierVijfKijkOnlineIE(InfoExtractor):
|
|||||||
self._logged_in = True
|
self._logged_in = True
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
|
if "#" in url:
|
||||||
|
url = url.split("#")[0]
|
||||||
|
|
||||||
if not self._logged_in:
|
if not self._logged_in:
|
||||||
self._login()
|
self._login()
|
||||||
@ -102,13 +104,14 @@ class VierVijfKijkOnlineIE(InfoExtractor):
|
|||||||
api['video']['S'], video_id, 'mp4', entry_protocol='m3u8_native',
|
api['video']['S'], video_id, 'mp4', entry_protocol='m3u8_native',
|
||||||
m3u8_id='HLS', fatal=False))
|
m3u8_id='HLS', fatal=False))
|
||||||
|
|
||||||
|
self._sort_formats(formats)
|
||||||
return {
|
return {
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
'title': title,
|
'title': title,
|
||||||
'series': series,
|
'series': series,
|
||||||
'season_number': int_or_none(season),
|
'season_number': int_or_none(season),
|
||||||
'episode_number': int_or_none(episode),
|
'episode_number': int_or_none(episode),
|
||||||
'formats': reversed(formats),
|
'formats': formats,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user