]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[youtube] Support for embedded /p players (Fixes #3821)
authorPhilipp Hagemeister <phihag@phihag.de>
Wed, 24 Sep 2014 23:58:49 +0000 (01:58 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Wed, 24 Sep 2014 23:59:02 +0000 (01:59 +0200)
youtube_dl/extractor/generic.py
youtube_dl/extractor/youtube.py

index a3bfeb174dbb48c8b19621a68db41d4b4783d3dd..0dcbb39dbdeea5c69069cc4cde2c33e5167e577f 100644 (file)
@@ -631,7 +631,7 @@ class GenericIE(InfoExtractor):
             )
             (["\'])
                 (?P<url>(?:https?:)?//(?:www\.)?youtube(?:-nocookie)?\.com/
-                (?:embed|v)/.+?)
+                (?:embed|v|p)/.+?)
             \1''', webpage)
         if matches:
             return _playlist_from_matches(
index ae95648620614babdab843545927795f39f106e2..99198e38092a8ed507b8e44aae41677e7ce17e17 100644 (file)
@@ -1068,6 +1068,13 @@ class YoutubePlaylistIE(YoutubeBaseInfoExtractor):
         'info_dict': {
             'title': 'JODA15',
         }
+    }, {
+        'note': 'Embedded SWF player',
+        'url': 'http://www.youtube.com/p/YN5VISEtHet5D4NEvfTd0zcgFk84NqFZ?hl=en_US&fs=1&rel=0',
+        'playlist_count': 4,
+        'info_dict': {
+            'title': 'JODA7',
+        }
     }]
 
     def _real_initialize(self):