We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb1621d commit 9d74117Copy full SHA for 9d74117
1 file changed
main.py
@@ -1,7 +1,7 @@
1
'''
2
Date: 2023-10-23 18:24:31
3
LastEditors: Kumo
4
-LastEditTime: 2024-06-21 23:23:30
+LastEditTime: 2024-06-22 17:06:56
5
Description:
6
7
from bili_backup.cloudreve import Cloudreve
@@ -152,7 +152,13 @@ def main(strategy):
152
continue
153
154
#### get info first (currently use bilix api)
155
- video_info_fetched = downloader.get_video_metadata(video_meta.link)
+ try:
156
+ video_info_fetched = downloader.get_video_metadata(video_meta.link)
157
+ except Exception as e:
158
+ logger.error(f"Failed to get video metadata for video [{video_meta.title}]: {str(e)}")
159
+ all_eps_ok = False
160
+ all_tasks_success = False
161
+ continue
162
163
#### skip videos with many eps
164
num_eps = len(video_info_fetched.pages)
0 commit comments