update syncplay.lua - do not switch slashes

This commit is contained in:
Etoh 2013-01-25 21:32:28 +00:00
parent 4ceecf1bbf
commit cc1ed35a9f
1 changed files with 4 additions and 5 deletions

View File

@ -4,13 +4,13 @@
Author: Etoh
Project: http://syncplay.pl/
Version: 0.0.4
Version: 0.0.5
--[==========================================================================[
=== 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 (current user): %APPDATA%\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 "host"
local connectorversion = "0.0.4"
local connectorversion = "0.0.5"
local port
@ -227,7 +227,6 @@ function get_filepath ()
if (string.sub(response, 1, 8) == "file:///") then
response = string.gsub(response, "file:///","")
response = string.gsub(response, "/","\\")
else
response = ""
errormsg = noinput
@ -251,7 +250,7 @@ function get_filename ()
filename = errormerge(get_filepath())
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
response = string.sub(tostring(filename), index+1)
end