Browse Source

[youtube] Extend _VALID_URL (Closes #7694)

totalwebcasting
Sergey M․ 9 years ago
parent
commit
040ac68679
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      youtube_dl/extractor/youtube.py

+ 5
- 1
youtube_dl/extractor/youtube.py View File

@ -258,7 +258,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|(?: # or the v= param in all its forms
(?:(?:watch|movie)(?:_popup)?(?:\.php)?/?)? # preceding watch(_popup|.php) or nothing (like /?v=xxxx)
(?:\?|\#!?) # the params delimiter ? or # or #!
(?:.*?&)?? # any other preceding param (like /?s=tuff&v=xxxx)
(?:.*?[&;])?? # any other preceding param (like /?s=tuff&v=xxxx or ?s=tuff&v=V36LpHqtcDY)
v=
)
))
@ -730,6 +730,10 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
'skip_download': True,
},
},
{
'url': 'https://www.youtube.com/watch?feature=player_embedded&v=V36LpHqtcDY',
'only_matching': True,
}
]
def __init__(self, *args, **kwargs):


Loading…
Cancel
Save