[vlc-commits] VLSub: minor fixes

Jean-Baptiste Kempf git at videolan.org
Wed Dec 3 16:15:04 CET 2014


vlc/vlc-2.2 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Dec  2 17:43:28 2014 +0100| [036010eecf5eac929e2e6f1a73bb926d01ef703d] | committer: Jean-Baptiste Kempf

VLSub: minor fixes

(cherry picked from commit 0e2d8cd6f687004c4a53ec66b14992e2e0fea76c)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=036010eecf5eac929e2e6f1a73bb926d01ef703d
---

 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 1820efd..62de54a 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