mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-25 11:41:52 +00:00
Fix possible missing parameter in playlist url extraction
The "playlist_prefix" parameter was missing when parsing playlist urls that match the recently added format, e.g.: http://www.youtube.com/user/stanforduniversity#g/c/9D558D49CA734A02 For these URLs (basically, for every playlist type so far, except the artist list) playlist_prefix has to be equal to "p" for correct exctraction.
This commit is contained in:
parent
d119b54df6
commit
7cc3c6fd62
1 changed files with 1 additions and 0 deletions
|
@ -2135,6 +2135,7 @@ class YoutubePlaylistIE(InfoExtractor):
|
||||||
if playlist_prefix == 'a':
|
if playlist_prefix == 'a':
|
||||||
playlist_access = 'artist'
|
playlist_access = 'artist'
|
||||||
else:
|
else:
|
||||||
|
playlist_prefix = 'p'
|
||||||
playlist_access = 'view_play_list'
|
playlist_access = 'view_play_list'
|
||||||
playlist_id = mobj.group(2)
|
playlist_id = mobj.group(2)
|
||||||
video_ids = []
|
video_ids = []
|
||||||
|
|
Loading…
Reference in a new issue