File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 21
21
path = " subliminal" , -- absolute path to subliminal if not on PATH
22
22
languages = " en,pt-PT" , -- list of IETF languages to search
23
23
forceutf8 = true , -- Force subtitles to be saved as utf-8
24
+ forcedownload = false , -- Force download of all languages requested
24
25
25
26
-- Some providers need credentials to be used.
26
27
-- This isn't necessary unless you want these providers.
@@ -98,6 +99,12 @@ function main()
98
99
table.insert (t .args , " utf-8" )
99
100
end
100
101
102
+ if o .forcedownload then
103
+ -- (if false, won't download English subs if subtitles
104
+ -- are already embedded in the container or present in the dir)
105
+ table.insert (t .args , " -f" )
106
+ end
107
+
101
108
table.insert (t .args , path )
102
109
msg .debug (string.format (" Running: \" %s\" " , table.concat (t .args ,' " "' )))
103
110
local res = utils .subprocess (t )
You can’t perform that action at this time.
0 commit comments