Skip to content

Commit

Permalink
🐞 fix: 去除不必要的上传
Browse files Browse the repository at this point in the history
  • Loading branch information
nichuanfang committed Sep 19, 2023
1 parent 46bbf46 commit 44310b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,8 @@ def crawl_shows(ali_drive:Alidrive):

for sea_index in range(season_number):
ali_drive.aligo.upload_file(f'kodi-tmdb/shows/{show_folder.name}/season{str(sea_index+1).zfill(2)}-poster.jpg',show_folder.file_id,check_name_mode='refuse')
# 重命名show_folder
ali_drive.rename(show_folder.file_id,raw_show_folder_name.split(' ')[0]+' '+raw_show_folder_name.split(' ')[-1],check_name_mode='overwrite')

except Exception as e:
logger.error(f'剧集信息刮削失败: {e},请检查剧集名称!')
Expand Down

0 comments on commit 44310b4

Please sign in to comment.