Make syncplay.lua use spaces not \t
This commit is contained in:
parent
af3bf66499
commit
95338a70a7
@ -118,17 +118,17 @@ function mightbewindows()
|
|||||||
sysos = os.getenv("OS")
|
sysos = os.getenv("OS")
|
||||||
if sysos == nil then
|
if sysos == nil then
|
||||||
return false
|
return false
|
||||||
elseif sysos == "" or string.match(sysos:lower(), "windows") then
|
elseif sysos == "" or string.match(sysos:lower(), "windows") then
|
||||||
return true
|
return true
|
||||||
else
|
else
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if mightbewindows() == true and string.sub(vlc.misc.version(),1,4) ~= "2.0." then
|
if mightbewindows() == true and string.sub(vlc.misc.version(),1,4) ~= "2.0." then
|
||||||
vlc.msg.err("This version of VLC is not known to support version " .. connectorversion .. " of the Syncplay interface module on Windows. Please use VLC 2.0.* rather than 2.1.* or 2.2.*.")
|
vlc.msg.err("This version of VLC is not known to support version " .. connectorversion .. " of the Syncplay interface module on Windows. Please use VLC 2.0.* rather than 2.1.* or 2.2.*.")
|
||||||
quit_vlc()
|
quit_vlc()
|
||||||
else
|
else
|
||||||
h = host.host()
|
h = host.host()
|
||||||
end
|
end
|
||||||
@ -261,16 +261,16 @@ function get_filepath ()
|
|||||||
if input then
|
if input then
|
||||||
local item = vlc.input.item()
|
local item = vlc.input.item()
|
||||||
if item then
|
if item then
|
||||||
if string.find(item:uri(),"file://") then
|
if string.find(item:uri(),"file://") then
|
||||||
response = vlc.strings.decode_uri(item:uri())
|
response = vlc.strings.decode_uri(item:uri())
|
||||||
else
|
else
|
||||||
local metas = item:metas()
|
local metas = item:metas()
|
||||||
if metas and metas["title"] and string.len(metas["title"]) > 0 then
|
if metas and metas["title"] and string.len(metas["title"]) > 0 then
|
||||||
response = ":::(Stream: "..metas["title"]..")"
|
response = ":::(Stream: "..metas["title"]..")"
|
||||||
else
|
else
|
||||||
response = unknownstream
|
response = unknownstream
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
errormsg = noinput
|
errormsg = noinput
|
||||||
end
|
end
|
||||||
@ -349,7 +349,7 @@ end
|
|||||||
|
|
||||||
function load_file (filepath)
|
function load_file (filepath)
|
||||||
-- [Used by load-file command]
|
-- [Used by load-file command]
|
||||||
|
|
||||||
local uri = vlc.strings.make_uri(filepath)
|
local uri = vlc.strings.make_uri(filepath)
|
||||||
vlc.playlist.add({{path=uri}})
|
vlc.playlist.add({{path=uri}})
|
||||||
return "load-file-attempted\n"
|
return "load-file-attempted\n"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user