Fixed weird error on (Windows)

This commit is contained in:
Jylpah committed 2018-11-05 18:15:51 +02:00
1 parent a36079e9d3
commit af3c46208e
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -455,8 +455,8 @@ async def mkReplayQ(queue : asyncio.Queue, files : list):
await queue.put(await mkReaderQitem(line))
else:
for fn in files:
if fn.endswith(os.sep):
fn = fn[:-1]
if fn.endswith('"'):
fn = fn[:-1]
if os.path.isfile(fn) and (p_replayfile.match(fn) != None):
await queue.put(await mkReaderQitem(fn))
elif os.path.isdir(fn):
+1 -1
View File
@@ -105,7 +105,7 @@ async def mkReplayQ(queue : asyncio.Queue, files : list, title : str):
await queue.put(await mkQueueItem(line, title))
else:
for fn in files:
if fn.endswith(os.sep):
if fn.endswith('"'):
fn = fn[:-1]
if os.path.isfile(fn) and (p_replayfile.match(fn) != None):
await queue.put(await mkQueueItem(fn, title))