channel_page, 'channel id', default=None)
if channel_playlist_id and channel_playlist_id.startswith('UC'):
playlist_id = 'UU' + channel_playlist_id[2:]
- channel_playlist = unescapeHTML(self._search_regex(
- r'href="/?(watch\?v=[0-9A-Za-z_-]{11}&list=%s)"' % playlist_id,
- channel_page, 'channel playlist URL', default=None))
- if channel_playlist:
- return self.url_result(
- compat_urlparse.urljoin(url, '/%s' % channel_playlist), 'YoutubePlaylist')
+ return self.url_result(
+ compat_urlparse.urljoin(url, '/playlist?list=%s' % playlist_id), 'YoutubePlaylist')
channel_page = self._download_webpage(url, channel_id, 'Downloading page #1')
autogenerated = re.search(r'''(?x)