update syncplay.lua - do not switch slashes
This commit is contained in:
parent
4ceecf1bbf
commit
cc1ed35a9f
@ -4,13 +4,13 @@
|
|||||||
|
|
||||||
Author: Etoh
|
Author: Etoh
|
||||||
Project: http://syncplay.pl/
|
Project: http://syncplay.pl/
|
||||||
Version: 0.0.4
|
Version: 0.0.5
|
||||||
|
|
||||||
--[==========================================================================[
|
--[==========================================================================[
|
||||||
|
|
||||||
=== Installation instructions ===
|
=== Installation instructions ===
|
||||||
|
|
||||||
Place the files in one of the VLC /lua/intf sub-directories. By default this should be:
|
Place the files in the VLC /lua/intf sub-directories. By default this should be:
|
||||||
* Windows (all users): %ProgramFiles%\VideoLAN\VLC\lua\intf\
|
* Windows (all users): %ProgramFiles%\VideoLAN\VLC\lua\intf\
|
||||||
* Windows (current user): %APPDATA%\VLC\lua\intf\
|
* Windows (current user): %APPDATA%\VLC\lua\intf\
|
||||||
* Linux (all users): /usr/share/vlc/lua/intf/
|
* Linux (all users): /usr/share/vlc/lua/intf/
|
||||||
@ -65,7 +65,7 @@ If a directory does not exist then you may have to create it.
|
|||||||
require "common"
|
require "common"
|
||||||
require "host"
|
require "host"
|
||||||
|
|
||||||
local connectorversion = "0.0.4"
|
local connectorversion = "0.0.5"
|
||||||
|
|
||||||
local port
|
local port
|
||||||
|
|
||||||
@ -227,7 +227,6 @@ function get_filepath ()
|
|||||||
|
|
||||||
if (string.sub(response, 1, 8) == "file:///") then
|
if (string.sub(response, 1, 8) == "file:///") then
|
||||||
response = string.gsub(response, "file:///","")
|
response = string.gsub(response, "file:///","")
|
||||||
response = string.gsub(response, "/","\\")
|
|
||||||
else
|
else
|
||||||
response = ""
|
response = ""
|
||||||
errormsg = noinput
|
errormsg = noinput
|
||||||
@ -251,7 +250,7 @@ function get_filename ()
|
|||||||
filename = errormerge(get_filepath())
|
filename = errormerge(get_filepath())
|
||||||
|
|
||||||
if(filename ~= nil) and (filename ~= "") and (filename ~= noinput) then
|
if(filename ~= nil) and (filename ~= "") and (filename ~= noinput) then
|
||||||
index = string.len(tostring(string.match(filename, ".*\\")))
|
index = string.len(tostring(string.match(filename, ".*/")))
|
||||||
if index then
|
if index then
|
||||||
response = string.sub(tostring(filename), index+1)
|
response = string.sub(tostring(filename), index+1)
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user