summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-26 13:11:54 +0100
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-26 13:11:54 +0100
commite6197af3a449e4a9352938bd9fda159d3f385ce5 (patch)
tree092e7be322140b2bed8fe574e753749245698904
parentMerge pull request #2116 from GammaC0de/patch-7 (diff)
parentUpdate YoutubeComFolder.py (diff)
downloadpyload-e6197af3a449e4a9352938bd9fda159d3f385ce5.tar.xz
Merge pull request #2115 from GammaC0de/patch-6
[YoutubeComFolder] update
-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"