diff --git a/syncplay/players/vlc.py b/syncplay/players/vlc.py index edf5f67..edcb214 100644 --- a/syncplay/players/vlc.py +++ b/syncplay/players/vlc.py @@ -18,7 +18,7 @@ class VlcPlayer(BasePlayer): SLAVE_ARGS = ['--extraintf=luaintf','--lua-intf=syncplay'] random.seed() - vlcport = random.randrange(VLC_MIN_PORT, VLC_MAX_PORT) + vlcport = random.randrange(VLC_MIN_PORT, VLC_MAX_PORT) if (VLC_MIN_PORT < VLC_MAX_PORT) else VLC_MIN_PORT SLAVE_ARGS.append('--lua-config=syncplay={{port=\"{}\"}}'.format(str(vlcport))) def __init__(self, client, playerPath, filePath, args): @@ -213,4 +213,4 @@ class VlcPlayer(BasePlayer): def sendLine(self, line): if(self.connected): # print "send: {}".format(line) - self.push(line + "\n") \ No newline at end of file + self.push(line + "\n")