vlc | branch: master | Hugo Beauzée-Luyssen <h...@beauzee.fr> | Thu Apr  5 
10:56:12 2018 +0200| [a3f0523b76d9be3a75dd31b5d9a05cd3128f7568] | committer: 
Hugo Beauzée-Luyssen

VLSub: Display a user visible error when the hash can't be generated

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

 share/lua/extensions/VLSub.lua | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/share/lua/extensions/VLSub.lua b/share/lua/extensions/VLSub.lua
index f1fe662026..c1ae5a606c 100644
--- a/share/lua/extensions/VLSub.lua
+++ b/share/lua/extensions/VLSub.lua
@@ -181,7 +181,8 @@ local options = {
     mess_err_conf_access ='Can\'t find a suitable path to save'..
       'config, please set it manually',
     mess_err_wrong_path ='the path contains illegal character, '..
-      'please correct it'
+      'please correct it',
+    mess_err_hash = 'Failed to generate hash'
   }
 }
 
@@ -1462,6 +1463,8 @@ function searchHash()
     openSub.checkSession()
     openSub.request("SearchSubtitlesByHash")
     display_subtitles()
+  else
+    setError(lang["mess_err_hash"])
   end
 end
 

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to