diff options
author | 2015-07-25 09:42:49 +0200 | |
---|---|---|
committer | 2015-07-25 09:42:49 +0200 | |
commit | 952001324e1faf584b1adcb01c4a0406a3722932 (patch) | |
tree | ed87ade69e207e677d1144147b381bcd508ab25d /module/plugins/crypter | |
parent | Account rewritten (2) (diff) | |
download | pyload-952001324e1faf584b1adcb01c4a0406a3722932.tar.xz |
Don't user dictionary’s iterator methods
Diffstat (limited to 'module/plugins/crypter')
-rw-r--r-- | module/plugins/crypter/ShareLinksBiz.py | 2 | ||||
-rw-r--r-- | module/plugins/crypter/YoutubeComFolder.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/crypter/ShareLinksBiz.py b/module/plugins/crypter/ShareLinksBiz.py index d9c31dc5b..b9ddd953f 100644 --- a/module/plugins/crypter/ShareLinksBiz.py +++ b/module/plugins/crypter/ShareLinksBiz.py @@ -140,7 +140,7 @@ class ShareLinksBiz(Crypter): def _resolve_coords(self, coords, captchaMap): x, y = coords - for rect, href in captchaMap.iteritems(): + for rect, href in captchaMap.items(): x1, y1, x2, y2 = rect if (x >= x1 and x <= x2) and (y >= y1 and y <= y2): return href diff --git a/module/plugins/crypter/YoutubeComFolder.py b/module/plugins/crypter/YoutubeComFolder.py index 463e48c2d..ea09c63f9 100644 --- a/module/plugins/crypter/YoutubeComFolder.py +++ b/module/plugins/crypter/YoutubeComFolder.py @@ -108,13 +108,13 @@ 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'].iteritems()} + relatedplaylist = {p_name: self.get_playlist(p_id) for p_name, p_id in channel['relatedPlaylists'].items()} self.log_debug("Channel's related playlists found = %s" % relatedplaylist.keys()) relatedplaylist['uploads']['title'] = "Unplaylisted videos" relatedplaylist['uploads']['checkDups'] = True #: checkDups flag - for p_name, p_data in relatedplaylist.iteritems(): + for p_name, p_data in relatedplaylist.items(): if self.get_config(p_name): p_data['title'] += " of " + user playlists.append(p_data) |