Parcourir la source

Fix not working replay by indentation

Cammy il y a 7 ans
Parent
commit
ceaa22cd08
1 fichiers modifiés avec 2 ajouts et 4 suppressions
  1. 2 4
      pyinstalive/downloader.py

+ 2 - 4
pyinstalive/downloader.py

@@ -117,13 +117,11 @@ def get_replays(user_id):
 		else:
 			for index, broadcast in enumerate(broadcasts):
 				exists = False
-				print(save_path)
 				for directory in (os.walk(save_path).next()[1]):
-					print(directory)
 					if (str(broadcast['id']) in directory) and ("_live_" not in directory):
 						logger.log("[W] Already downloaded a replay with ID '" + str(broadcast['id']) + "', skipping...", "GREEN")
-					exists = True
-					return
+						exists = True
+						return
 				if exists is False:
 					current = index + 1
 					logger.log("[I] Starting replay download " + str(current) + " of "  + str(len(broadcasts)) + "...", "GREEN")