aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/escapist.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2015-02-10 15:55:51 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2015-02-10 15:55:51 +0100
commit9650885be954b3cc626205aa67f24c31f21da7b6 (patch)
tree3233b7855b836a01228dca99c0b197956be74772 /youtube_dl/extractor/escapist.py
parent596ac6e31f6baaadf8280e2c54ca90a7cf2fbc2a (diff)
[escapist] Filter video differently (Fixes #4919)
Diffstat (limited to 'youtube_dl/extractor/escapist.py')
-rw-r--r--youtube_dl/extractor/escapist.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/escapist.py b/youtube_dl/extractor/escapist.py
index 98b698277..4303feccd 100644
--- a/youtube_dl/extractor/escapist.py
+++ b/youtube_dl/extractor/escapist.py
@@ -54,8 +54,11 @@ class EscapistIE(InfoExtractor):
transform_source=js_to_json)
playlist = config['playlist']
+ video_url = next(
+ p['url'] for p in playlist
+ if p.get('eventCategory') == 'Video')
formats.append({
- 'url': playlist[1]['url'],
+ 'url': video_url,
'format_id': name,
'quality': quality,
})