Skip to content

Commit

Permalink
Merge pull request #177 from Night-stars-1/master
Browse files Browse the repository at this point in the history
fix: Request URL is missing an 'http://'
  • Loading branch information
Night-stars-1 authored May 14, 2023
2 parents b38ce0e + 8ad006b commit 0e66c21
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/update_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ async def update_file(url_proxy: str="",
"""
global tmp_dir

url_version = f'{raw_proxy}https://raw.githubusercontent.com/Starry-Wind/Honkai-Star-Rail/{version}/version.json' if 'http' in raw_proxy else f'https://raw.githubusercontent.com/Starry-Wind/Honkai-Star-Rail/{version}/version.json'.replace('raw.githubusercontent.com', raw_proxy)
url_zip = url_proxy+url_zip if 'http' in url_proxy else url_zip.replace('github.com', url_proxy)
url_list = f'{raw_proxy}https://raw.githubusercontent.com/Starry-Wind/Honkai-Star-Rail/{version}/{type}_list.json' if 'http' in raw_proxy else f'https://raw.githubusercontent.com/Starry-Wind/Honkai-Star-Rail/{version}/{type}_list.json'.replace('raw.githubusercontent.com', raw_proxy)
url_version = f'{raw_proxy}https://raw.githubusercontent.com/Starry-Wind/Honkai-Star-Rail/{version}/version.json' if 'http' in raw_proxy or raw_proxy == '' else f'https://raw.githubusercontent.com/Starry-Wind/Honkai-Star-Rail/{version}/version.json'.replace('raw.githubusercontent.com', raw_proxy)
url_zip = url_proxy+url_zip if 'http' in url_proxy or url_proxy == '' else url_zip.replace('github.com', url_proxy)
url_list = f'{raw_proxy}https://raw.githubusercontent.com/Starry-Wind/Honkai-Star-Rail/{version}/{type}_list.json' if 'http' in raw_proxy or raw_proxy == '' else f'https://raw.githubusercontent.com/Starry-Wind/Honkai-Star-Rail/{version}/{type}_list.json'.replace('raw.githubusercontent.com', raw_proxy)

#tmp_zip = os.path.join(tmp_dir, f'{type}.zip')
tmp_zip = Path() / tmp_dir / f'{type}.zip'
Expand Down

0 comments on commit 0e66c21

Please sign in to comment.