mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 07:17:07 -05:00 
			
		
		
		
	[escapist] Filter video differently (Fixes #4919)
This commit is contained in:
		@@ -271,7 +271,7 @@ class InfoExtractor(object):
 | 
			
		||||
            raise
 | 
			
		||||
        except compat_http_client.IncompleteRead as e:
 | 
			
		||||
            raise ExtractorError('A network error has occured.', cause=e, expected=True)
 | 
			
		||||
        except (KeyError,) as e:
 | 
			
		||||
        except (KeyError, StopIteration) as e:
 | 
			
		||||
            raise ExtractorError('An extractor error has occured.', cause=e)
 | 
			
		||||
 | 
			
		||||
    def set_downloader(self, downloader):
 | 
			
		||||
 
 | 
			
		||||
@@ -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,
 | 
			
		||||
            })
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user