davidde / mpv-autosub

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

[question] multiple languages + opensubtitles user pass argument? #4

Closed tomeq82 closed 4 years ago

tomeq82 commented 4 years ago

Hi,

I'm not at all good at scripting/programming ;) maybe i'm missing something, but how can I use multiple languages in your script? I would like to have polish and english and script would download either or both. Then I would like to have it imported both or one.

Also, how to modify command line argument for subliminal to include --opensubtitles USER PASS ?

Thanks and sorry for n00bish questions....

davidde commented 4 years ago

Hi! I've personally had no need for those features, so I didn't bother. However, they are definitely useful and relatively minor additions, so I've now implemented them. Feel free to test things out, and let me know if it works for you.

davidde commented 4 years ago

@tomeq82
If possible, I would like to know whether the login functionality is working, since I can't test this myself. Thanks for your feedback.

tomeq82 commented 4 years ago

@DavidDeprost , I did some quick testing and it seems that the subliminal is not doing anything, not downloading subs or putting debug to the file.... please take a look at the logs https://pastebin.com/mAHjJspj

EDIT: disregard... I have missed the subliminal path at the top. Now it seems it works! https://pastebin.com/sZQx8gKf

davidde commented 4 years ago

Great. Good to see it works fine on Windows, since I haven't tested there yet ... Also, if you prefer Polish subtitles over the English ones, you can move { 'Polish', 'pl', 'pol' }, to the top of the languages table.

Thank you for your feedback.