premium-only cache crashes free-account user
Closed this issue · 0 comments
aapo commented
Cachedownloader VERSION = 35 ('2013-08-27')
With free-account downloading premium-only cache causes several out-of-bounds exceptions.
This workaround just skips premium caches for free-account.
--- cachedownloader.py 2013-08-28 00:21:02.000000000 +0300
+++ fixed.py 2013-09-13 21:36:29.000000000 +0300
@@ -365,6 +365,14 @@
# Basename - Image name without path and extension
def basename(url):
return url.split('/')[-1].split('.')[0]
+
+ #check for premium only cache
+ try:
+ doc.get_element_by_id('ctl00_ContentBody_basicMemberMsg')
+ print "PREMIUM ONLY, skip"
+ return
+ except Exception, e:
+ print "normal cache, can continue"
# Title
try: