mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-01-20 18:30:09 +09:00
Update youtube_dl/extractor/vier.py
Co-authored-by: Jeroen Jacobs <github.com@jeroenj.be>
This commit is contained in:
parent
95e0844f0c
commit
9a14872ffd
@ -84,7 +84,7 @@ class VierVijfKijkOnlineIE(InfoExtractor):
|
||||
|
||||
playlists = json.loads(video_data.replace('"', '"'))['data']['playlists']
|
||||
wanted_playlist = [x for x in playlists if x['pageInfo']['url'] in url][0]
|
||||
wanted_episode = [x for x in wanted_playlist['episodes'] if x['pageInfo']['url'] in url][0]
|
||||
wanted_episode = [x for x in wanted_playlist['episodes'] if x['pageInfo']['url'] == url][0] or [x for x in wanted_playlist['episodes'] if x['pageInfo']['url'] in url][0]
|
||||
video_id = wanted_episode['videoUuid']
|
||||
|
||||
api_url = 'https://api.viervijfzes.be/content/%s' % (video_id)
|
||||
|
Loading…
Reference in New Issue
Block a user