mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +00:00 
			
		
		
		
	[generic] Match JWPlayerOptions
This adds support for The Guardian, among others Closes #2271, fixes #2267
This commit is contained in:
		| @@ -358,7 +358,7 @@ class GenericIE(InfoExtractor): | ||||
|         mobj = re.search(r'flashvars: [\'"](?:.*&)?file=(http[^\'"&]*)', webpage) | ||||
|         if mobj is None: | ||||
|             # Look for gorilla-vid style embedding | ||||
|             mobj = re.search(r'(?s)jw_plugins.*?file:\s*["\'](.*?)["\']', webpage) | ||||
|             mobj = re.search(r'(?s)(?:jw_plugins|JWPlayerOptions).*?file\s*:\s*["\'](.*?)["\']', webpage) | ||||
|         if mobj is None: | ||||
|             # Broaden the search a little bit | ||||
|             mobj = re.search(r'[^A-Za-z0-9]?(?:file|source)=(http[^\'"&]*)', webpage) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Philipp Hagemeister
					Philipp Hagemeister