projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa8deaf
)
[generic] Require og:video URLs to contain a dot
author
Philipp Hagemeister
<phihag@phihag.de>
Sun, 24 Aug 2014 00:29:02 +0000
(
02:29
+0200)
committer
Philipp Hagemeister
<phihag@phihag.de>
Sun, 24 Aug 2014 00:29:56 +0000
(
02:29
+0200)
youtube_dl/extractor/generic.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/generic.py
b/youtube_dl/extractor/generic.py
index 5bd315051e7cfe2f003c675e0142fdf6234fc566..f05ac4d38d57ec70621625b0d1a052fa1400e5ea 100644
(file)
--- a/
youtube_dl/extractor/generic.py
+++ b/
youtube_dl/extractor/generic.py
@@
-833,7
+833,7
@@
class GenericIE(InfoExtractor):
if m_video_type is not None:
def check_video(vurl):
vpath = compat_urlparse.urlparse(vurl).path
- return not vpath.endswith('.swf')
+ return
'.' in vpath and
not vpath.endswith('.swf')
found = list(filter(
check_video,
re.findall(r'<meta.*?property="og:video".*?content="(.*?)"', webpage)))