1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[generic] Require og:video URLs to contain a dot

This commit is contained in:
Philipp Hagemeister 2014-08-24 02:29:02 +02:00
parent fa8deaf38b
commit 10eaeb20c5

View file

@ -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)))