Jelajahi Sumber

Fix replays not downloading when live equivalent exists

Cammy 5 tahun lalu
induk
melakukan
cb465bbcd1
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      pyinstalive/dlfuncs.py

+ 1 - 1
pyinstalive/dlfuncs.py

@@ -310,7 +310,7 @@ def download_replays():
                 logger.separator()
 
             for dl_path_file in dl_path_files:
-                if (str(replay_obj.get('id')) in dl_path_file) and ("_live_" not in dl_path_file) and (dl_path_file.endswith(".mp4")):
+                if (str(replay_obj.get('id')) in dl_path_file) and ("_replay" in dl_path_file) and (dl_path_file.endswith(".mp4")):
                     logger.binfo("Already downloaded a replay with ID '{:s}'.".format(str(replay_obj.get('id'))))
                     exists = True
             if not exists: