mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[screenwavemedia] Fix extraction (Closes #6575)
This commit is contained in:
		| @@ -1,6 +1,8 @@ | |||||||
| # encoding: utf-8 | # encoding: utf-8 | ||||||
| from __future__ import unicode_literals | from __future__ import unicode_literals | ||||||
|  |  | ||||||
|  | import re | ||||||
|  |  | ||||||
| from .common import InfoExtractor | from .common import InfoExtractor | ||||||
| from ..utils import ( | from ..utils import ( | ||||||
|     int_or_none, |     int_or_none, | ||||||
| @@ -35,15 +37,18 @@ class ScreenwaveMediaIE(InfoExtractor): | |||||||
|  |  | ||||||
|         sources = self._parse_json( |         sources = self._parse_json( | ||||||
|             js_to_json( |             js_to_json( | ||||||
|                 self._search_regex( |                 re.sub( | ||||||
|                     r"sources\s*:\s*(\[[^\]]+?\])", playerconfig, |                     r'(?s)/\*.*?\*/', '', | ||||||
|                     'sources', |                     self._search_regex( | ||||||
|                 ).replace( |                         r"sources\s*:\s*(\[[^\]]+?\])", playerconfig, | ||||||
|                     "' + thisObj.options.videoserver + '", |                         'sources', | ||||||
|                     videoserver |                     ).replace( | ||||||
|                 ).replace( |                         "' + thisObj.options.videoserver + '", | ||||||
|                     "' + playerVidId + '", |                         videoserver | ||||||
|                     video_id |                     ).replace( | ||||||
|  |                         "' + playerVidId + '", | ||||||
|  |                         video_id | ||||||
|  |                     ) | ||||||
|                 ) |                 ) | ||||||
|             ), |             ), | ||||||
|             video_id |             video_id | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Sergey M․
					Sergey M․