From 772551763b1018258599956f434f53c39fa634da Mon Sep 17 00:00:00 2001 From: GammaC0de Date: Mon, 26 Oct 2015 01:59:45 +0200 Subject: Update YoutubeComFolder.py --- module/plugins/crypter/YoutubeComFolder.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'module') diff --git a/module/plugins/crypter/YoutubeComFolder.py b/module/plugins/crypter/YoutubeComFolder.py index ad8721af6..22430e388 100644 --- a/module/plugins/crypter/YoutubeComFolder.py +++ b/module/plugins/crypter/YoutubeComFolder.py @@ -10,7 +10,7 @@ from module.plugins.internal.utils import fs_join, json class YoutubeComFolder(Crypter): __name__ = "YoutubeComFolder" __type__ = "crypter" - __version__ = "1.05" + __version__ = "1.06" __status__ = "testing" __pattern__ = r'https?://(?:www\.|m\.)?youtube\.com/(?Puser|playlist|view_play_list)(/|.*?[?&](?:list|p)=)(?P[\w\-]+)' @@ -108,7 +108,10 @@ class YoutubeComFolder(Crypter): playlists = self.get_playlists(channel['id']) self.log_debug("%s playlist\s found on channel \"%s\"" % (len(playlists), channel['title'])) - relatedplaylist = {p_name: self.get_playlist(p_id) for p_name, p_id in channel['relatedPlaylists'].items()} + relatedplaylist = dict() + for p_name, p_id in channel['relatedPlaylists'].items(): + relatedplaylist.update({p_name: self.get_playlist(p_id)}) + self.log_debug("Channel's related playlists found = %s" % relatedplaylist.keys()) relatedplaylist['uploads']['title'] = "Unplaylisted videos" -- cgit v1.2.3