diff --git a/analyzeReplays.py b/analyzeReplays.py index c0ea76f..b0ec21b 100644 --- a/analyzeReplays.py +++ b/analyzeReplays.py @@ -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): diff --git a/wotbreplay_uploader.py b/wotbreplay_uploader.py index 02a064d..ea5ec55 100644 --- a/wotbreplay_uploader.py +++ b/wotbreplay_uploader.py @@ -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))