mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +00:00 
			
		
		
		
	[extractor/common] Improve jwplayer regex
This commit is contained in:
		| @@ -2233,7 +2233,7 @@ class InfoExtractor(object): | |||||||
|  |  | ||||||
|     def _find_jwplayer_data(self, webpage, video_id=None, transform_source=js_to_json): |     def _find_jwplayer_data(self, webpage, video_id=None, transform_source=js_to_json): | ||||||
|         mobj = re.search( |         mobj = re.search( | ||||||
|             r'(?s)jwplayer\((?P<quote>[\'"])[^\'" ]+(?P=quote)\).*?\.setup\s*\((?P<options>[^)]+)\)', |             r'(?s)jwplayer\((?P<quote>[\'"])[^\'" ]+(?P=quote)\)(?!</script>).*?\.setup\s*\((?P<options>[^)]+)\)', | ||||||
|             webpage) |             webpage) | ||||||
|         if mobj: |         if mobj: | ||||||
|             try: |             try: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Sergey M․
					Sergey M․