emericg / OpenSubtitlesDownload

Automatically find and download the right subtitles for your favorite videos!
https://emeric.io/OpenSubtitlesDownload
GNU General Public License v3.0
579 stars 63 forks source link

Urllib Error #104

Closed KEM-Spain closed 3 months ago

KEM-Spain commented 6 months ago

Enter your choice (0-30): 6 Urllib error ( 400 ) Bad Request An error occurred while connecting to the OpenSubtitles.com server

Using: OpenSubtitlesDownload.py / Version 6.0

After selecting a file to download the error occurs.

qtaped commented 5 months ago

Same error here (even before choosing a file to dl), using last version (6.2) in CLI (macOS and debian).

KEM-Spain commented 5 months ago

Yeah. The site has messed things up. Fails from Kodi as well.

On Sun, Jan 21, 2024 at 2:43 PM Qntn @.***> wrote:

Same error here (even before choosing a file to dl), using last version (6.2) in CLI (macOS and debian).

— Reply to this email directly, view it on GitHub https://github.com/emericg/OpenSubtitlesDownload/issues/104#issuecomment-1902633832, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5YHVDEILX2XMRQ7YIR5B33YPULR5AVCNFSM6AAAAABBQQYSGSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBSGYZTGOBTGI . You are receiving this because you authored the thread.Message ID: @.***>

emericg commented 5 months ago

Urllib error ( 400 ) Bad Request

That's weird, do you have this error every time you use the script? I've never had this one, while testing on linux and macOS. Anything particular in your setups that could explain why it's behaving differently? VPN, weird Internet setup?

Yeah. The site has messed things up. Fails from Kodi as well.

Kodi is still using the "old" API so it will only work if you have a VIP account.

KEM-Spain commented 5 months ago

Nothing unorthodox. No intermediate apps or hardware. Python is up to date on Ubuntu 23.10. Used to work flawlessly. Cloudflare?

On Mon, Jan 22, 2024 at 4:30 PM Emeric @.***> wrote:

Urllib error ( 400 ) Bad Request

That's weird, do you have this error every time you use the script? I've never had this one, while testing on linux and macOS. Anything particular in your setups that could explain why it's behaving differently? VPN, weird Internet setup?

Yeah. The site has messed things up. Fails from Kodi as well.

Kodi is still using the "old" API so it will only work if you have a VIP account.

— Reply to this email directly, view it on GitHub https://github.com/emericg/OpenSubtitlesDownload/issues/104#issuecomment-1904249112, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5YHVDBJK3JC2EFWKQ73RC3YP2AZFAVCNFSM6AAAAABBQQYSGSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBUGI2DSMJRGI . You are receiving this because you authored the thread.Message ID: @.***>

qtaped commented 5 months ago

Tried from my laptop (macOS) or my server (debian), different locations, with or without custom dns, same error. VLC extension (VLSub) is working.

setaur commented 5 months ago

Same error, after choosing subtitles. Debian oldstable.

097115 commented 5 months ago

Same error, too.

Ubuntu 22.04.3 Python 3.10.12 urllib3 1.26.14

EDIT: And, BTW, it happens with this similar project, too.

pecosk commented 5 months ago

Same error, it seems it happens when trying to login via https://api.opensubtitles.com/api/v1/login The data that is being sent (username and pass) seem to be correct, they are wrapped in b'{"username:"my_username", "password": "my_password"}' Not sure if that is expected, i dont have any chars that seem like invalid in json, just alphanumeric with some !*

Arch linux (approximately current) python 3.11.6 urllib3 1.26.18

pecosk commented 5 months ago

Looks like for me i was able to debug it .. the issue was, that i was using my email as username. When i changed that to actual username, it worked.

Hope it helps

emericg commented 5 months ago

Looks like for me i was able to debug it .. the issue was, that i was using my email as username.

Yes it seems you are right, an invalid username/password causes that error. The GUI will output "login error" but the CLI will just output "Urllib error ( 400 ) Bad Request". I'll see if I can make the error message more helpful...

qtaped commented 4 months ago

Looks like for me i was able to debug it .. the issue was, that i was using my email as username. When i changed that to actual username, it worked.

Hope it helps

That was it! Working fine now, thanks!

@emericg and thanks for your work

KEM-Spain commented 4 months ago

Works for me as well! Thanks 🙏

On Sun, Feb 11, 2024 at 9:57 PM Qntn @.***> wrote:

Looks like for me i was able to debug it .. the issue was, that i was using my email as username. When i changed that to actual username, it worked.

Hope it helps

That was it! Working fine now, thanks!

@emericg https://github.com/emericg and thanks for your work

— Reply to this email directly, view it on GitHub https://github.com/emericg/OpenSubtitlesDownload/issues/104#issuecomment-1937867445, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5YHVDFADLJWXYZJDJ5PNWDYTEWEDAVCNFSM6AAAAABBQQYSGSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZXHA3DONBUGU . You are receiving this because you authored the thread.Message ID: @.***>