aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/generic.py
diff options
context:
space:
mode:
authorAlbert Kim <alkim1234@gmail.com>2013-06-27 19:16:09 +0100
committerAlbert Kim <alkim1234@gmail.com>2013-06-27 19:16:09 +0100
commit52c8ade4adcf07abe72057e0a2a765aad1208119 (patch)
tree02383d94b87bd160b1309d9a840136b4411571ae /youtube_dl/extractor/generic.py
parentd798e1c7a99d75b5e04b71b01faf925614b58d59 (diff)
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'
Diffstat (limited to 'youtube_dl/extractor/generic.py')
-rw-r--r--youtube_dl/extractor/generic.py2
1 files changed, 1 insertions, 1 deletions
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'<meta (?:property|name)="twitter:player:stream" (?:content|value)="(.+?)"', webpage)