浏览代码

Fixed seperator not being printed after finishing comment saving

Cammy 7 年之前
父节点
当前提交
323a318313
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      pyinstalive/downloader.py

+ 4 - 1
pyinstalive/downloader.py

@@ -361,9 +361,11 @@ def get_replay_comments(instagram_api, broadcast, comments_json_file, broadcast_
 					comments_delay=0)
 				if len(comments_downloader.comments) == 1:
 					log("[I] Successfully saved 1 comment to logfile.", "GREEN")
+					seperator("GREEN")
 					return True
 				else:
 					log("[I] Successfully saved {} comments to logfile.".format(len(comments_downloader.comments)), "GREEN")
+					seperator("GREEN")
 					return True
 			else:
 				log("[I] There are no available comments to save.", "GREEN")
@@ -402,11 +404,12 @@ def get_live_comments(instagram_api, broadcast, comments_json_file, broadcast_do
 					comments_delay=broadcast_downloader.initial_buffered_duration)
 				if len(comments_downloader.comments) == 1:
 					log("[I] Successfully saved 1 comment to logfile.", "GREEN")
+					seperator("GREEN")
 					return True
 				else:
 					log("[I] Successfully saved {} comments to logfile.".format(len(comments_downloader.comments)), "GREEN")
+					seperator("GREEN")
 					return True
-				seperator("GREEN")
 			else:
 				log("[I] There are no available comments to save.", "GREEN")
 				return False