Skip to content
Browse files

Make the length of cache filename a bit shorter

  • Loading branch information...
1 parent 9de2109 commit e6f06fbd1776e6fc6876d923a848b053725eaf05 @amit committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 planet/spider.py
View
4 planet/spider.py
@@ -45,10 +45,10 @@ def filename(directory, filename):
filename = re_final_cruft.sub("", filename)
# limit length of filename
- if len(filename)>250:
+ if len(filename)>230:
parts=filename.split(',')
for i in range(len(parts),0,-1):
- if len(','.join(parts[:i])) < 220:
+ if len(','.join(parts[:i])) < 200:
filename = ','.join(parts[:i]) + ',' + \
md5(','.join(parts[i:])).hexdigest()
break

0 comments on commit e6f06fb

Please sign in to comment.
Something went wrong with that request. Please try again.