mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-05-08 21:11:59 +02:00
Slightly better that hard coding ffnet domain in.
This commit is contained in:
parent
3ee144475c
commit
6cfc27cb87
1 changed files with 9 additions and 1 deletions
|
|
@ -22,5 +22,13 @@ class BrowserCache(object):
|
|||
## newer browser caches separate by calling domain to not
|
||||
## leak information about past visited pages by showing
|
||||
## quick retrieval.
|
||||
d = self.browser_cache.get_data("_dk_https://fanfiction.net https://fanfiction.net "+url)
|
||||
|
||||
## There has to be a better way to do this...
|
||||
## Or parse the whole cache for proper URLs.
|
||||
# protocol & domain only.
|
||||
prefix = ('/'.join(url.split('/')[:3])).replace('www.','')
|
||||
key = "_dk_"+prefix+" "+prefix+" "+url
|
||||
# print(key)
|
||||
# print("_dk_https://fanfiction.net https://fanfiction.net "+url)
|
||||
d = self.browser_cache.get_data(key)
|
||||
return d
|
||||
|
|
|
|||
Loading…
Reference in a new issue