From aa11a8225949e3fcd5149744fed9df50519e969e Mon Sep 17 00:00:00 2001 From: holwell Date: Fri, 14 Feb 2025 17:24:47 +0800 Subject: [PATCH] Fix bugs --- .gitignore | 3 +-- main.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 203732c..94d36da 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ __pycache__/ .history/ neteasecloudmusicapi/ -cookies.txt -failed_ids.txt +*.txt *.json \ No newline at end of file diff --git a/main.py b/main.py index 36fed8c..92c0695 100644 --- a/main.py +++ b/main.py @@ -176,7 +176,7 @@ def get_resume_song_info_list(song_info_list) -> list: last_failed_id = get_last_failed_id() if last_failed_id is None: print("暂无上传失败记录,从头开始上传") - return + return song_info_list for index, song_info in enumerate(song_info_list): if int(song_info['id']) == last_failed_id: print(f"当前已上传: {index + 1},最后上传失败的 id: {song_info['id']}")