Update youtube_dl/extractor/vier.py

Co-authored-by: Jeroen Jacobs <github.com@jeroenj.be>
This commit is contained in:
Cedric Nugteren 2021-05-01 14:25:01 +02:00 committed by GitHub
parent 95e0844f0c
commit 9a14872ffd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,7 +84,7 @@ class VierVijfKijkOnlineIE(InfoExtractor):
playlists = json.loads(video_data.replace('&quot;', '"'))['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)