[youtube] Extend _VALID_URL (Closes #7694)
authorSergey M․ <dstftw@gmail.com>
Sun, 29 Nov 2015 15:01:59 +0000 (21:01 +0600)
committerSergey M․ <dstftw@gmail.com>
Sun, 29 Nov 2015 15:01:59 +0000 (21:01 +0600)
youtube_dl/extractor/youtube.py

index 4f375e2c8f217210da842893a4119b33d3911297..55a06eb686c706ed26ec9a6f9869a91bc40ea27a 100644 (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&amp;v=V36LpHqtcDY)
                                  v=
                              )
                          ))
@@ -730,6 +730,10 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
                 'skip_download': True,
             },
         },
+        {
+            'url': 'https://www.youtube.com/watch?feature=player_embedded&amp;amp;v=V36LpHqtcDY',
+            'only_matching': True,
+        }
     ]
 
     def __init__(self, *args, **kwargs):