diff options
author | Philipp Hagemeister <[email protected]> | 2014-09-25 01:58:49 +0200 |
---|---|---|
committer | Philipp Hagemeister <[email protected]> | 2014-09-25 01:59:02 +0200 |
commit | 6b08cdf626afc71740e539a83ef570999df2c50b (patch) | |
tree | 012760e53b4b0215a7cecc70c4e6381c669d9cdd | |
parent | b686fc18dacaa6994c646c171368b99e168b619a (diff) | |
download | youtube-dl-6b08cdf626afc71740e539a83ef570999df2c50b.tar.gz youtube-dl-6b08cdf626afc71740e539a83ef570999df2c50b.zip |
[youtube] Support for embedded /p players (Fixes #3821)
-rw-r--r-- | youtube_dl/extractor/generic.py | 2 | ||||
-rw-r--r-- | youtube_dl/extractor/youtube.py | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index a3bfeb174..0dcbb39db 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -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( diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index ae9564862..99198e380 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -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): |