setnicka / ulozto-downloader

EOL - end of life | Uloz.to quick multiple sessions downloader
MIT License
280 stars 46 forks source link

Problem with new version #156

Open Fikus25 opened 1 year ago

Fikus25 commented 1 year ago

Hello, I've just downloaded the new version of ulozto downloader and right after the program drops many errors.

First error I met is this: image Previous version worked well for me, just didn't support the password arguments, but now I can't download anything. I've updated all required modules to make sure that everything is up to date, but it didnt solve the issues.

Next error: C:\Windows\System32>ulozto-downloader "https://ulozto.cz/file/TKvQVDFBEhtL/debia n-9-6-0-amd64-netinst-iso" [Autodetect] tflite_runtime available, using --auto-captcha Starting downloading for url 'https://ulozto.cz/file/TKvQVDFBEhtL/debian-9-6-0-a md64-netinst-iso' Getting info (filename, filesize, ) ←[34m[TOR] ←[0mTOR started Downloading into: './debian-9.6.0-amd64-netinst.iso' CAPTCHA protected download - CAPTCHA challenges will be displayed ←[33mTerminating download. Please wait for stopping all threads.←[0m ←[33mDownload terminated.←[0m Traceback (most recent call last): File "C:\Users\XXX\AppData\Local\Programs\Python\Python38\lib\runpy.py", lin e 194, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\XXX\AppData\Local\Programs\Python\Python38\lib\runpy.py", lin e 87, in _run_code exec(code, run_globals) File "C:\Users\XXX\AppData\Local\Programs\Python\Python38\Scripts\ulozto-dow nloader.exe__main__.py", line 7, in File "C:\Users\XXX\AppData\Local\Programs\Python\Python38\lib\site-packages\ uldlib\cmd.py", line 135, in run d.download(url, args.parts, args.password, args.output, args.temp, args.yes, args.conn_timeout) File "C:\Users\XXX\AppData\Local\Programs\Python\Python38\lib\site-packages\ uldlib\downloader.py", line 276, in download download_url = next(self.captcha_download_links_generator) File "C:\Users\XXX\AppData\Local\Programs\Python\Python38\lib\site-packages\ uldlib\page.py", line 230, in captcha_download_links_generator cached = self.linkCache.get_all_valid_links() File "C:\Users\XXX\AppData\Local\Programs\Python\Python38\lib\site-packages\ uldlib\linkcache.py", line 56, in get_all_valid_links return [link for link in cache_content if self._is_link_valid(link)] File "C:\Users\XXX\AppData\Local\Programs\Python\Python38\lib\site-packages\ uldlib\linkcache.py", line 56, in return [link for link in cache_content if self._is_link_valid(link)] File "C:\Users\XXX\AppData\Local\Programs\Python\Python38\lib\site-packages\ uldlib\linkcache.py", line 62, in _is_link_valid query_string = parse_qs(link, separator=';') TypeError: parse_qs() got an unexpected keyword argument 'separator'

Used command: ulozto-downloader "https://ulozto.cz/file/TKvQVDFBEhtL/debian-9-6-0-amd64-netinst-iso"

mrdevolver commented 1 year ago

Just guessing here, but Ulozto recently changed the design of their website slightly, if parsing relies on the old design, it may be broken in both old and new version of the downloader until it's fixed on the downloader's side.

juwala63 commented 1 year ago

I confirmed this behaviour on Ubuntu too. The url is usually parsed only the second time. The download finally works, but: Too many "net errors" (approx. 150 - 200 on 30 parts) Download takes twice as long compared to v. 3.3.1. I rolled back to version 3.3.1 which works fine...