mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-03 23:57:06 -05:00 
			
		
		
		
	[twitch:vod] Add test for #6585
This commit is contained in:
		@@ -188,7 +188,7 @@ class TwitchVodIE(TwitchItemBaseIE):
 | 
			
		||||
    _ITEM_TYPE = 'vod'
 | 
			
		||||
    _ITEM_SHORTCUT = 'v'
 | 
			
		||||
 | 
			
		||||
    _TEST = {
 | 
			
		||||
    _TESTS = [{
 | 
			
		||||
        'url': 'http://www.twitch.tv/riotgames/v/6528877?t=5m10s',
 | 
			
		||||
        'info_dict': {
 | 
			
		||||
            'id': 'v6528877',
 | 
			
		||||
@@ -207,7 +207,26 @@ class TwitchVodIE(TwitchItemBaseIE):
 | 
			
		||||
            # m3u8 download
 | 
			
		||||
            'skip_download': True,
 | 
			
		||||
        },
 | 
			
		||||
    }
 | 
			
		||||
    }, {
 | 
			
		||||
        # Untitled broadcast (title is None)
 | 
			
		||||
        'url': 'http://www.twitch.tv/belkao_o/v/11230755',
 | 
			
		||||
        'info_dict': {
 | 
			
		||||
            'id': 'v11230755',
 | 
			
		||||
            'ext': 'mp4',
 | 
			
		||||
            'title': 'Untitled Broadcast',
 | 
			
		||||
            'thumbnail': 're:^https?://.*\.jpg$',
 | 
			
		||||
            'duration': 1638,
 | 
			
		||||
            'timestamp': 1439746708,
 | 
			
		||||
            'upload_date': '20150816',
 | 
			
		||||
            'uploader': 'BelkAO_o',
 | 
			
		||||
            'uploader_id': 'belkao_o',
 | 
			
		||||
            'view_count': int,
 | 
			
		||||
        },
 | 
			
		||||
        'params': {
 | 
			
		||||
            # m3u8 download
 | 
			
		||||
            'skip_download': True,
 | 
			
		||||
        },
 | 
			
		||||
    }]
 | 
			
		||||
 | 
			
		||||
    def _real_extract(self, url):
 | 
			
		||||
        item_id = self._match_id(url)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user