Commit: 28918684f39c0efede68f1f5e10fb05bf61c69a5 Parent: ea058a2fd6ded95ce7e64dc4e7455f35555533b2 Author: Ren Tatsumoto Date: Tue, 17 Nov 2020 13:34:03 +0000 Merge pull request #11 from true-zero/master Avoid concatenation with nil Diffstat:
M | subs2srs.lua | | | 6 | ++++-- |
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/subs2srs.lua b/subs2srs.lua @@ -403,11 +403,13 @@ end local function join_media_fields(note1, note2) if note2[config.audio_field] then - note1[config.audio_field] = note2[config.audio_field] .. note1[config.audio_field] + note1[config.audio_field] = note2[config.audio_field] .. (note1[config.audio_field] == nil and "" or note1[config.audio_field]) end + if note2[config.image_field] then - note1[config.image_field] = note2[config.image_field] .. note1[config.image_field] + note1[config.image_field] = note2[config.image_field] .. (note1[config.image_field] == nil and "" or note1[config.image_field]) end + return note1 end