]> git.sesse.net Git - vlc/commitdiff
VLSub: minor fixes
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 2 Dec 2014 16:43:28 +0000 (17:43 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 2 Dec 2014 16:43:28 +0000 (17:43 +0100)
share/lua/extensions/VLSub.lua

index 213e34df9b59491c9a6b8f09b23c81e062862dba..33bdfea892c33512d99d253630fd541a9a5a9212 100644 (file)
@@ -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> &nbsp;"
@@ -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