mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	[twitch] Pass video id to url_result when extracting playlist
This commit is contained in:
		| @@ -358,9 +358,16 @@ class TwitchPlaylistBaseIE(TwitchBaseIE): | |||||||
|                 break |                 break | ||||||
|             offset += limit |             offset += limit | ||||||
|         return self.playlist_result( |         return self.playlist_result( | ||||||
|             [self.url_result(entry) for entry in orderedSet(entries)], |             [self._make_url_result(entry) for entry in orderedSet(entries)], | ||||||
|             channel_id, channel_name) |             channel_id, channel_name) | ||||||
|  |  | ||||||
|  |     def _make_url_result(self, url): | ||||||
|  |         try: | ||||||
|  |             video_id = 'v%s' % TwitchVodIE._match_id(url) | ||||||
|  |             return self.url_result(url, TwitchVodIE.ie_key(), video_id=video_id) | ||||||
|  |         except AssertionError: | ||||||
|  |             return self.url_result(url) | ||||||
|  |  | ||||||
|     def _extract_playlist_page(self, response): |     def _extract_playlist_page(self, response): | ||||||
|         videos = response.get('videos') |         videos = response.get('videos') | ||||||
|         return [video['url'] for video in videos] if videos else [] |         return [video['url'] for video in videos] if videos else [] | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Luc Ritchie
					Luc Ritchie