<div dir="ltr"><div>Ok so I tried to change the subject with git send-mail but failed.</div><div><br></div><div>The last patch is an alternate version that would also fix my problem.<br></div></div><br><div class="gmail_quote"><div dir="ltr">Le sam. 3 mars 2018 à 03:04, Mathieu Velten <<a href="mailto:matmaul@gmail.com">matmaul@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">---<br>
share/lua/intf/http.lua | 8 ++++----<br>
1 file changed, 4 insertions(+), 4 deletions(-)<br>
<br>
diff --git a/share/lua/intf/http.lua b/share/lua/intf/http.lua<br>
index 1cf8946126..5367ea08c1 100644<br>
--- a/share/lua/intf/http.lua<br>
+++ b/share/lua/intf/http.lua<br>
@@ -93,9 +93,9 @@ function process(filename)<br>
local func = false -- process_raw(filename)<br>
return function(...)<br>
local new_mtime = vlc.net.stat(filename).modification_time<br>
- if new_mtime ~= mtime then<br>
+ if func == false or new_mtime ~= mtime then<br>
-- Re-read the file if it changed<br>
- if mtime == 0 then<br>
+ if func == false then<br>
vlc.msg.dbg("Loading `"..filename.."'")<br>
else<br>
vlc.msg.dbg("Reloading `"..filename.."'")<br>
@@ -229,9 +229,9 @@ function rawfile(h,path,url)<br>
local page = false -- io.open(filename):read("*a")<br>
local callback = function(data,request)<br>
local new_mtime = vlc.net.stat(filename).modification_time<br>
- if mtime ~= new_mtime then<br>
+ if page == false or new_mtime ~= mtime then<br>
-- Re-read the file if it changed<br>
- if mtime == 0 then<br>
+ if page == false then<br>
vlc.msg.dbg("Loading `"..filename.."'")<br>
else<br>
vlc.msg.dbg("Reloading `"..filename.."'")<br>
--<br>
2.14.3<br>
<br>
</blockquote></div>