summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nitzo <nitzo2001@yahoo.com> 2016-06-21 19:30:21 +0200
committerGravatar Nitzo <nitzo2001@yahoo.com> 2016-06-21 19:30:21 +0200
commit8d7fb9b791276d7d638a88d472122e25d7e89e74 (patch)
treed86c08c30e4df85670de56499b90845dc3240b61
parent[NitroflareCom] Remove unused import (diff)
downloadpyload-8d7fb9b791276d7d638a88d472122e25d7e89e74.tar.xz
[YoutubeCom] fix #2515
-rw-r--r--module/plugins/hoster/YoutubeCom.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/hoster/YoutubeCom.py b/module/plugins/hoster/YoutubeCom.py
index 5706512b9..b48af028e 100644
--- a/module/plugins/hoster/YoutubeCom.py
+++ b/module/plugins/hoster/YoutubeCom.py
@@ -40,7 +40,7 @@ class BIGHTTPRequest(HTTPRequest):
class YoutubeCom(Hoster):
__name__ = "YoutubeCom"
__type__ = "hoster"
- __version__ = "0.52"
+ __version__ = "0.53"
__status__ = "testing"
__pattern__ = r'https?://(?:[^/]*\.)?(youtu\.be/|youtube\.com/watch\?(?:.*&)?v=)\w+'
@@ -140,9 +140,9 @@ class YoutubeCom(Hoster):
self.fail(e.message)
#: Remove old records from cache
- for _c in cache_info['cache'].iterkeys():
- if time.time() >= cache_info['cache'][_c]['time'] + 24 * 60 * 60:
- cache_info['cache'].pop(_c, None)
+ for _k in list(cache_info['cache'].iterkeys()):
+ if time.time() >= cache_info['cache'][_k]['time'] + 24 * 60 * 60:
+ cache_info['cache'].pop(_k, None)
cache_dirty = True
if cache_dirty: