summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar GammaC0de <GammaC0de@users.noreply.github.com> 2015-10-26 00:59:45 +0100
committerGravatar GammaC0de <GammaC0de@users.noreply.github.com> 2015-10-26 00:59:45 +0100
commit772551763b1018258599956f434f53c39fa634da (patch)
tree90f0c5a35b472fb33bc59c9599999a1a726d1b70 /module
parentMerge pull request #2111 from GammaC0de/patch-7 (diff)
downloadpyload-772551763b1018258599956f434f53c39fa634da.tar.xz
Update YoutubeComFolder.py
Diffstat (limited to 'module')
-rw-r--r--module/plugins/crypter/YoutubeComFolder.py7
1 files changed, 5 insertions, 2 deletions
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/(?P<TYPE>user|playlist|view_play_list)(/|.*?[?&](?:list|p)=)(?P<ID>[\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"