mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	[sbs] Fix extraction (Closes #5725)
This commit is contained in:
		| @@ -33,16 +33,18 @@ class SBSIE(InfoExtractor): | |||||||
|     }] |     }] | ||||||
|  |  | ||||||
|     def _real_extract(self, url): |     def _real_extract(self, url): | ||||||
|         mobj = re.match(self._VALID_URL, url) |         video_id = self._match_id(url) | ||||||
|         video_id = mobj.group('id') |  | ||||||
|         webpage = self._download_webpage(url, video_id) |         webpage = self._download_webpage(url, video_id) | ||||||
|  |  | ||||||
|         release_urls_json = js_to_json(self._search_regex( |         player = self._search_regex( | ||||||
|             r'(?s)playerParams\.releaseUrls\s*=\s*(\{.*?\n\});\n', |             r'(?s)playerParams\.releaseUrls\s*=\s*(\{.*?\n\});\n', | ||||||
|             webpage, '')) |             webpage, 'player') | ||||||
|         release_urls = json.loads(release_urls_json) |         player = re.sub(r"'\s*\+\s*[\da-zA-Z_]+\s*\+\s*'", '', player) | ||||||
|         theplatform_url = ( |  | ||||||
|             release_urls.get('progressive') or release_urls.get('standard')) |         release_urls = self._parse_json(js_to_json(player), video_id) | ||||||
|  |  | ||||||
|  |         theplatform_url = release_urls.get('progressive') or release_urls['standard'] | ||||||
|  |  | ||||||
|         title = remove_end(self._og_search_title(webpage), ' (The Feed)') |         title = remove_end(self._og_search_title(webpage), ' (The Feed)') | ||||||
|         description = self._html_search_meta('description', webpage) |         description = self._html_search_meta('description', webpage) | ||||||
| @@ -52,7 +54,6 @@ class SBSIE(InfoExtractor): | |||||||
|             '_type': 'url_transparent', |             '_type': 'url_transparent', | ||||||
|             'id': video_id, |             'id': video_id, | ||||||
|             'url': theplatform_url, |             'url': theplatform_url, | ||||||
|  |  | ||||||
|             'title': title, |             'title': title, | ||||||
|             'description': description, |             'description': description, | ||||||
|             'thumbnail': thumbnail, |             'thumbnail': thumbnail, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Sergey M․
					Sergey M․