try another domain name

This commit is contained in:
lededev
2021-07-15 12:34:21 +08:00
parent d771b4e985
commit f51d91b227

View File

@@ -216,7 +216,7 @@ def main(number):
# number = number.upper() # number = number.upper()
number = number.upper() number = number.upper()
cookie_json = './' + javdb_site + '.json' cookie_json = './' + javdb_site + '.json'
javdb_cookies = {'over18':'1', 'theme': 'auto', 'locale': 'zh'} javdb_cookies = {'over18':'1', 'theme':'auto', 'locale':'zh'}
# 不加载过期的cookiejavdb登录界面显示为7天免登录故假定cookie有效期为7天 # 不加载过期的cookiejavdb登录界面显示为7天免登录故假定cookie有效期为7天
cdays = file_modification_days(cookie_json) cdays = file_modification_days(cookie_json)
if cdays < 7: if cdays < 7:
@@ -251,7 +251,7 @@ def main(number):
javdb_detail_url = 'https://' + javdb_site + '.com' + correct_url javdb_detail_url = 'https://' + javdb_site + '.com' + correct_url
detail_page = get_html(javdb_detail_url, cookies=javdb_cookies) detail_page = get_html(javdb_detail_url, cookies=javdb_cookies)
except: except:
detail_page = get_html('https://' + javdb_site + '.com' + correct_url, cookies=javdb_cookies) detail_page = get_html('https://javdb.com' + correct_url, cookies=javdb_cookies)
# no cut image by default # no cut image by default
imagecut = 3 imagecut = 3