[vlc-commits] VLSub: minor fixes
Jean-Baptiste Kempf
git at videolan.org
Tue Dec 2 17:43:36 CET 2014
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Dec 2 17:43:28 2014 +0100| [0e2d8cd6f687004c4a53ec66b14992e2e0fea76c] | committer: Jean-Baptiste Kempf
VLSub: minor fixes
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0e2d8cd6f687004c4a53ec66b14992e2e0fea76c
---
share/lua/extensions/VLSub.lua | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/share/lua/extensions/VLSub.lua b/share/lua/extensions/VLSub.lua
index 213e34d..33bdfea 100644
--- a/share/lua/extensions/VLSub.lua
+++ b/share/lua/extensions/VLSub.lua
@@ -1668,7 +1668,7 @@ function download_subtitles()
local item = openSub.itemStore[index]
if openSub.option.downloadBehaviour == 'manual'
- or not subfileName then
+ or not openSub.file.hasInput then
local link = "<span style='color:#181'>"
link = link.."<b>"..lang["mess_dowload_link"]..":</b>"
link = link.."</span> "
@@ -1681,7 +1681,7 @@ function download_subtitles()
end
local message = ""
- local subfileName = openSub.file.name
+ local subfileName = openSub.file.name or ""
if openSub.option.langExt then
subfileName = subfileName.."."..item.SubLanguageID
More information about the vlc-commits
mailing list