try another domain name
This commit is contained in:
@@ -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'}
|
||||||
# 不加载过期的cookie,javdb登录界面显示为7天免登录,故假定cookie有效期为7天
|
# 不加载过期的cookie,javdb登录界面显示为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
|
||||||
|
|||||||
Reference in New Issue
Block a user