Advertisement
svenhoefer

Untitled

Feb 10th, 2018
365
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.63 KB | None | 0 0
  1. diff --git a/src/xupnpd_http.lua b/src/xupnpd_http.lua
  2. index cfe7f76..3599971 100644
  3. --- a/src/xupnpd_http.lua
  4. +++ b/src/xupnpd_http.lua
  5. @@ -520,9 +520,11 @@ function http_handler(what,from,port,msg)
  6.      -- Subtitle
  7.      elseif url=='sub' then
  8.  
  9. -        local srt = "%s.srt":format(object)
  10. +       local fmt = "%s.srt"
  11. +       local srt = fmt:format(object)
  12.         local pls=nil
  13. -       object = "%s_":format(object)
  14. +       fmt = "%s_"
  15. +       object = fmt:format(object)
  16.         while object:len() > 0 and (not pls or not pls.path) do
  17.             object = object:gsub("_[^_]*$", "")
  18.             pls=find_playlist_object(object)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement