mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 03:03:01 +00:00
[generic] Require og:video URLs to contain a dot
This commit is contained in:
parent
fa8deaf38b
commit
10eaeb20c5
1 changed files with 1 additions and 1 deletions
|
@ -833,7 +833,7 @@ def _playlist_from_matches(matches, getter, ie=None):
|
|||
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)))
|
||||
|
|
Loading…
Reference in a new issue