From 3fed7f960549cb0043e5b3a0e4ee575aa449c3d0 Mon Sep 17 00:00:00 2001 From: Freddd13 <50367552+Freddd13@users.noreply.github.com> Date: Sat, 22 Jun 2024 17:37:21 +0800 Subject: [PATCH] fix: local variable 'video_info_fetched' referenced before assignment --- README.md | 1 + main.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2004357..b3e64d2 100644 --- a/README.md +++ b/README.md @@ -149,6 +149,7 @@ The onedrive needs a login for the first time, after that the token will be save - [x] rclone for docker - [ ] rclone for github action - [ ] download with cookie +- [ ] record failed videos - [ ] add retry history failed videos - [ ] config from gist - [ ] backup summary diff --git a/main.py b/main.py index e9263c6..88f79bd 100644 --- a/main.py +++ b/main.py @@ -158,8 +158,8 @@ def main(strategy): logger.error(f"Failed to get video metadata for video [{video_meta.title}]: {str(e)}") all_eps_ok = False all_tasks_success = False - # continue - # 有时似乎返回视频信息失效,但实际并未失效 + continue + # FIXME:有时似乎返回视频信息失效,但实际并未失效 #### skip videos with many eps num_eps = len(video_info_fetched.pages)