Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ async def get_fuckingfast_link(session, download_url):
async def get_datanodes_link(session, download_url):
parsed_url = urlparse(download_url)
path_segments = parsed_url.path.split("/")
if len(path_segments) < 2 or not path_segments[1]:
return None
file_code = path_segments[1].encode("latin-1", "ignore").decode("latin-1")
file_name = path_segments[-1].encode("latin-1", "ignore").decode("latin-1")
headers = {
Expand Down