projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec06f0f
)
[generic] Add support for single quotes in HTML5 videos (Fixes #4265)
author
Philipp Hagemeister
<phihag@phihag.de>
Fri, 21 Nov 2014 21:01:25 +0000
(22:01 +0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Fri, 21 Nov 2014 21:01:25 +0000
(22:01 +0100)
youtube_dl/extractor/generic.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/generic.py
b/youtube_dl/extractor/generic.py
index af769ab619eac9cb9b3d20869ba4a9e009977f6c..c7a824c29b15187becb0bb9758ee94348f2309da 100644
(file)
--- a/
youtube_dl/extractor/generic.py
+++ b/
youtube_dl/extractor/generic.py
@@
-979,7
+979,7
@@
class GenericIE(InfoExtractor):
found = filter_video(re.findall(r'<meta.*?property="og:video".*?content="(.*?)"', webpage))
if not found:
# HTML5 video
- found = re.findall(r'(?s)<video[^<]*(?:>.*?<source[^>]*)?\s+src=
"([^"]+)"
', webpage)
+ found = re.findall(r'(?s)<video[^<]*(?:>.*?<source[^>]*)?\s+src=
["\'](.*?)["\']
', webpage)
if not found:
found = re.search(
r'(?i)<meta\s+(?=(?:[a-z-]+="[^"]+"\s+)*http-equiv="refresh")'