From: Albert Kim Date: Thu, 27 Jun 2013 18:16:09 +0000 (+0100) Subject: Made generic IE handle more cases X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=52c8ade4adcf07abe72057e0a2a765aad1208119;p=youtube-dl Made generic IE handle more cases Added a possible quote after file, so it can now handle cases like: 'file': 'http://www.a.com/b.mp4' --- diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index 7a877b3bc..eaaca9804 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -102,7 +102,7 @@ class GenericIE(InfoExtractor): mobj = re.search(r'[^A-Za-z0-9]?(?:file|source)=(http[^\'"&]*)', webpage) if mobj is None: # Broaden the search a little bit: JWPlayer JS loader - mobj = re.search(r'[^A-Za-z0-9]?file:\s*["\'](http[^\'"&]*)', webpage) + mobj = re.search(r'[^A-Za-z0-9]?file["\']?:\s*["\'](http[^\'"&]*)', webpage) if mobj is None: # Try to find twitter cards info mobj = re.search(r'