davidde / mpv-autosub

Fully automatic subtitle downloading for the MPV media player
https://mpv.io/
MIT License
295 stars 42 forks source link

No subtitles found #16

Closed shirobachi closed 3 years ago

shirobachi commented 3 years ago

I cannot download any subtitles ;/ Everytime is no English subtitles found,

my config file: https://pastebin.com/8xcC4ngp Debug: https://pastebin.com/W7bdRyeh

davidde commented 3 years ago

Here's a few quick ideas:

shirobachi commented 3 years ago

What I changed?

My conf: https://pastebin.com/pCAgdYER Debug output: https://pastebin.com/c9XCXtm8 Debug after uncomment provider: https://pastebin.com/R8vQSZKM

Thanks for help! <3

davidde commented 3 years ago

Remove the log(a) you added on line 102.

a is a table data structure, and cannot be passed to a function that requires a string.

shirobachi commented 3 years ago

Oh right, I forgot ;/

Debug: https://pastebin.com/RNNSuTx3 conf: https://pastebin.com/U0f0w88K

davidde commented 3 years ago

The script is working as it should now. As you can see in the debug output, the problem lies with subliminal.

Like I suggested before, try different setups, e.g. without the provider line, with other video files, etc. And stop vim from creating swap files where mpv will try to pick them up.

I recommend fixing subliminal first by running without the autosub script, and reaching out to the subliminal folks if you can't get it to work.

shirobachi commented 3 years ago

Okay, thank you so much <3

shirobachi commented 3 years ago

Just wanted to inform that I resolved problem, it was my password with some illegal characters. Now I using only chars a-Z0-9 and it work perfectlly :)

davidde commented 3 years ago

Glad you got it working. This is exactly why I suggested running without the provider line; a less frequently used feature like this is the more obvious place where things could go wrong.

Out of curiosity, did this password work on the Opensubtitles website itself? Do they allow some rather uncommon Unicode characters in their password field?

shirobachi commented 3 years ago

Yes I logged in to Opensubtitles by browser. At first I tried with no providers but it didn't work probably by my fault :D

Anyway thanks for your work <3

davidde commented 3 years ago

Happy to help.

Anyways, if you can confirm there are specific passwords that do not work with this script, but do work with the subliminal command line tool (without script), I can consider passing the password as unicode to subliminal. Since this is very much an edge case, I won't bother doing this unless someone specifically requests it.

shirobachi commented 3 years ago

TBH I cannot confirm for sure, but while I was struggling with the script you suggested to try use it with no script first because debug was saying it's problem on subliminal site. That time I had problem until I changed password that's why I think that problem with reading password is on subminal site or even provider. But you know I can be wrong

akash-258 commented 2 years ago

This worked for me https://github.com/Diaoul/subliminal/issues/1044#issuecomment-1015226261