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
+2 -2

No files matched your search

+1 -1
View File
@@ -455,7 +455,7 @@ async def mkReplayQ(queue : asyncio.Queue, files : list):
await queue.put(await mkReaderQitem(line)) await queue.put(await mkReaderQitem(line))
else: else:
for fn in files: for fn in files:
if fn.endswith(os.sep): if fn.endswith('"'):
fn = fn[:-1] fn = fn[:-1]
if os.path.isfile(fn) and (p_replayfile.match(fn) != None): if os.path.isfile(fn) and (p_replayfile.match(fn) != None):
await queue.put(await mkReaderQitem(fn)) await queue.put(await mkReaderQitem(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)) await queue.put(await mkQueueItem(line, title))
else: else:
for fn in files: for fn in files:
if fn.endswith(os.sep): if fn.endswith('"'):
fn = fn[:-1] fn = fn[:-1]
if os.path.isfile(fn) and (p_replayfile.match(fn) != None): if os.path.isfile(fn) and (p_replayfile.match(fn) != None):
await queue.put(await mkQueueItem(fn, title)) await queue.put(await mkQueueItem(fn, title))