Commit 036010ee authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

VLSub: minor fixes

(cherry picked from commit 0e2d8cd6f687004c4a53ec66b14992e2e0fea76c)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent ad137637
...@@ -1668,7 +1668,7 @@ function download_subtitles() ...@@ -1668,7 +1668,7 @@ function download_subtitles()
local item = openSub.itemStore[index] local item = openSub.itemStore[index]
if openSub.option.downloadBehaviour == 'manual' if openSub.option.downloadBehaviour == 'manual'
or not subfileName then or not openSub.file.hasInput then
local link = "<span style='color:#181'>" local link = "<span style='color:#181'>"
link = link.."<b>"..lang["mess_dowload_link"]..":</b>" link = link.."<b>"..lang["mess_dowload_link"]..":</b>"
link = link.."</span> &nbsp;" link = link.."</span> &nbsp;"
...@@ -1681,7 +1681,7 @@ function download_subtitles() ...@@ -1681,7 +1681,7 @@ function download_subtitles()
end end
local message = "" local message = ""
local subfileName = openSub.file.name local subfileName = openSub.file.name or ""
if openSub.option.langExt then if openSub.option.langExt then
subfileName = subfileName.."."..item.SubLanguageID subfileName = subfileName.."."..item.SubLanguageID
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment