Ver Fonte

Fix not working replay by indentation

Cammy há 7 anos atrás
pai
commit
ceaa22cd08
1 ficheiros alterados com 2 adições e 4 exclusões
  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")