Skip to content

Commit

Permalink
Fix img cachedfetch for referer.
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmXinu committed May 20, 2017
1 parent 826f0f6 commit ce0b25c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fanficfare/adapters/base_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,11 +466,11 @@ def make_soup(self,data):
def normalize_chapterurl(self,url):
return url

def cachedfetch(realfetch,cache,url):
def cachedfetch(realfetch,cache,url,referer=None):
if url in cache:
return cache[url]
else:
return realfetch(url)
return realfetch(url,referer=referer)

fullmon = {u"January":u"01", u"February":u"02", u"March":u"03", u"April":u"04", u"May":u"05",
u"June":u"06","July":u"07", u"August":u"08", u"September":u"09", u"October":u"10",
Expand Down

0 comments on commit ce0b25c

Please sign in to comment.