cookie fix

pull/1/head
DiMartinoXBMC 2015-12-20 02:35:06 +03:00
parent 3bcb12f282
commit 7f85f5eb37
1 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ class SearcherABC:
return True
def load_cookie(self):
cookie=os.path.join(self.tempdir(),'cookie.txt')
cookie=os.path.join(self.tempdir(), self.__class__.__name__+'.txt')
self.cookieJar = cookielib.MozillaCookieJar(cookie)
try:
if os.path.exists(cookie): self.cookieJar.load(ignore_discard=True)
@ -102,7 +102,7 @@ class SearcherABC:
self.cookieJar = cookielib.MozillaCookieJar(cookie)
def clear_cookie(self, domain):
cookie=os.path.join(self.tempdir(),'cookie.txt')
cookie=os.path.join(self.tempdir(),self.__class__.__name__+'.txt')
self.cookieJar = cookielib.MozillaCookieJar(cookie)
if os.path.exists(cookie):
try: