Commit: 0b349d9d24a385a98339e8106dd34bcb2791f825
Parent: cdf837ab9966b9191a5fc1f23a9145345182859f
Author: Ren Tatsumoto
Date: Wed, 2 Sep 2020 01:17:00 +0300
shorten names
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/subs2srs.lua b/subs2srs.lua
@@ -294,9 +294,9 @@ ffmpeg.execute = function(args)
end
end
-ffmpeg.create_snapshot = function(timestamp, snapshot_filename)
+ffmpeg.create_snapshot = function(timestamp, filename)
local video_path = mp.get_property("path")
- local snapshot_path = config.collection_path .. snapshot_filename
+ local snapshot_path = config.collection_path .. filename
ffmpeg.execute{
'-an',
@@ -312,9 +312,9 @@ ffmpeg.create_snapshot = function(timestamp, snapshot_filename)
}
end
-ffmpeg.create_audio = function(start_timestamp, end_timestamp, audio_filename)
+ffmpeg.create_audio = function(start_timestamp, end_timestamp, filename)
local video_path = mp.get_property("path")
- local fragment_path = config.collection_path .. audio_filename
+ local fragment_path = config.collection_path .. filename
local track_number = get_audio_track_number()
ffmpeg.execute{