davidde / mpv-autosub

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

Adding a download option #15

Closed ghost closed 3 years ago

ghost commented 3 years ago

How do I add -m to the script?

davidde commented 3 years ago

You'll need to add it to the subliminal command table, e.g.:

-- ...

a[#a + 1] = '-l'
a[#a + 1] = language[2]
a[#a + 1] = '-d'
a[#a + 1] = directory -- <- line 99

-- Add `-m` flag:
a[#a + 1] = '-m'
a[#a + 1] = '50' 

a[#a + 1] = filename --> Subliminal command ends with the movie filename.

-- ...