Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
test1
  • Loading branch information
wingeva1986 committed Oct 4, 2023
1 parent 951cd24 commit c28e6cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Jvav/jvav/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ def get_all_top_stars(self) -> typing.Tuple[int, list]:


class JavBusUtil(BaseUtil):
BASE_URL = "https://cors.hiker.eu.org/www.javbus.com"
BASE_URL = "https://www.javbus.com"
BASE_URL_SEARCH_BY_STAR_NAME = f"{BASE_URL}/search"
BASE_URL_SEARCH_BY_STAR_ID = f"{BASE_URL}/star"
BASE_URL_SEARCH_STAR = f"{BASE_URL}/searchstar"
Expand All @@ -802,15 +802,15 @@ def get_headers(self):
'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7',
'accept-language': 'zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6,zh-TW;q=0.5',
'cache-control': 'max-age=0',
'sec-ch-ua': '"Microsoft Edge";v="117", "Not;A=Brand";v="8", "Chromium";v="117"',
'sec-ch-ua': '"Not_A Brand";v="99", "Google Chrome";v="109", "Chromium";v="109"',
'sec-ch-ua-mobile': '?0',
'sec-ch-ua-platform': '"macOS"',
'sec-ch-ua-platform': '"Windows"',
'sec-fetch-dest': 'document',
'sec-fetch-mode': 'navigate',
'sec-fetch-site': 'none',
'sec-fetch-user': '?1',
'upgrade-insecure-requests': '1',
'user-agent': self.ua_desktop(),
'user-agent': "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36",
}

def __init__(
Expand Down

0 comments on commit c28e6cf

Please sign in to comment.