Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception Unknow Encoding error #19

Open
whiteangel123 opened this issue Jun 5, 2024 · 7 comments
Open

Exception Unknow Encoding error #19

whiteangel123 opened this issue Jun 5, 2024 · 7 comments

Comments

@whiteangel123
Copy link

This is not working anymore, I keep getting "Exception Unknow Encoding" error message in the command window

@caomeijiangmei
Copy link

caomeijiangmei commented Jun 5, 2024

Same here, sobs.
@nutritionalyeest Need help~

@nutritionalyeest
Copy link

@whiteangel123 I've found that error can occur if your cookie has expired, or if it's typed in in wrong. also make sure you have this bit of code after your cookie: .encode('utf-8')
(so your main.py line 16 should look like this, except where you insert the cookie text string ofc: )
image

@caomeijiangmei I think it may be broken for you because the changes I had you make before are no longer needed. I recommend changing the code in main.py back to how it is in this repo. That's what worked for me!

Hope this helps!

@whiteangel123
Copy link
Author

@nutritionalyeest Maybe I'm entering the wrong cookie or wrong URL because this is the traceback error that I got:

Traceback (most recent call last): File "F:\Renta_Downloader-master\main.py", line 308, in <module> start_download(url) File "F:\Renta_Downloader-master\main.py", line 98, in start_download download_info = get_download_info(url) ^^^^^^^^^^^^^^^^^^^^^^ File "F:\Renta_Downloader-master\main.py", line 131, in get_download_info raise Exception('Unknow encoding.') Exception: Unknow encoding.

The format seems to have changed since so maybe I clicked on the wrong item and it's showing me the wrong URL/cookie??

@caomeijiangmei
Copy link

caomeijiangmei commented Jun 7, 2024

@whiteangel123 I've found that error can occur if your cookie has expired, or if it's typed in in wrong. also make sure you have this bit of code after your cookie: .encode('utf-8') (so your main.py line 16 should look like this, except where you insert the cookie text string ofc: ) image

@caomeijiangmei I think it may be broken for you because the changes I had you make before are no longer needed. I recommend changing the code in main.py back to how it is in this repo. That's what worked for me!

Hope this helps!

It works!! Thx~
When you're typing the manga URL, just remember to add /index.view?ver=new instead of /index.view,
and keep in mind to set your cookie to Medusa_set_version=new.

@nutritionalyeest
Copy link

@nutritionalyeest Maybe I'm entering the wrong cookie or wrong URL because this is the traceback error that I got:

Traceback (most recent call last): File "F:\Renta_Downloader-master\main.py", line 308, in <module> start_download(url) File "F:\Renta_Downloader-master\main.py", line 98, in start_download download_info = get_download_info(url) ^^^^^^^^^^^^^^^^^^^^^^ File "F:\Renta_Downloader-master\main.py", line 131, in get_download_info raise Exception('Unknow encoding.') Exception: Unknow encoding.

The format seems to have changed since so maybe I clicked on the wrong item and it's showing me the wrong URL/cookie??

@whiteangel123 For me, the url that works is the one from the viewer window, it looks like this:
image

The cookie is in the developer tools Network tab, index.view:
image

Sorry if this wasn't what you were asking!

@whiteangel123
Copy link
Author

whiteangel123 commented Sep 18, 2024

I now have a different error:

`File "F:\Renta_Downloader-master\main.py", line 159, in get_download_info
sum_page = int(re_max_page.findall(data)[0])
~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "F:\Renta_Downloader-master\main.py", line 308, in
start_download(url)
File "F:\Renta_Downloader-master\main.py", line 98, in start_download
download_info = get_download_info(url)
^^^^^^^^^^^^^^^^^^^^^^
File "F:\Renta_Downloader-master\main.py", line 161, in get_download_info
raise Exception('Can not find sum_page on the page')
Exception: Can not find sum_page on the page`

@caomeijiangmei
Copy link

I now have a different error:

`File "F:\Renta_Downloader-master\main.py", line 159, in get_download_info sum_page = int(re_max_page.findall(data)[0]) ~~~~~~~~~~~~~~~~~~~~~~~~~^^^ IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "F:\Renta_Downloader-master\main.py", line 308, in start_download(url) File "F:\Renta_Downloader-master\main.py", line 98, in start_download download_info = get_download_info(url) ^^^^^^^^^^^^^^^^^^^^^^ File "F:\Renta_Downloader-master\main.py", line 161, in get_download_info raise Exception('Can not find sum_page on the page') Exception: Can not find sum_page on the page`

Same here. Need ur help.Thx!!@nutritionalyeest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants