Browse Source

[youtube] Support for embedded /p players (Fixes #3821)

totalwebcasting
Philipp Hagemeister 10 years ago
parent
commit
6b08cdf626
2 changed files with 8 additions and 1 deletions
  1. +1
    -1
      youtube_dl/extractor/generic.py
  2. +7
    -0
      youtube_dl/extractor/youtube.py

+ 1
- 1
youtube_dl/extractor/generic.py View 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(


+ 7
- 0
youtube_dl/extractor/youtube.py View 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):


Loading…
Cancel
Save