Skip to content

Commit

Permalink
🐞 fix: 剧集刮削失败
Browse files Browse the repository at this point in the history
  • Loading branch information
nichuanfang committed Sep 13, 2023
1 parent 22280fa commit 3c0b1ed
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,9 +322,15 @@ def crawl_shows(ali_drive:Alidrive):
# 将fanart.jpg poster.jpg tvshow.nfo 上传到show_folder中
sleep(3)
try:
ali_drive.aligo.upload_file(f'kodi-tmdb/shows/{show_folder.name}/fanart.jpg',show_folder.file_id,check_name_mode='refuse')
ali_drive.aligo.upload_file(f'kodi-tmdb/shows/{show_folder.name}/poster.jpg',show_folder.file_id,check_name_mode='refuse')
ali_drive.aligo.upload_file(f'kodi-tmdb/shows/{show_folder.name}/tvshow.nfo',show_folder.file_id,check_name_mode='refuse')
try:
ali_drive.aligo.upload_file(f'kodi-tmdb/shows/{show_folder.name}/poster.jpg',show_folder.file_id,check_name_mode='refuse')
except:
continue
try:
ali_drive.aligo.upload_file(f'kodi-tmdb/shows/{show_folder.name}/fanart.jpg',show_folder.file_id,check_name_mode='refuse')
except:
continue
logger.info(f'剧集: {show_folder.name}同人画,海报,nfo抓取成功')

# 修改剧集文件夹名 根据tv.json生成季海报图
Expand Down

0 comments on commit 3c0b1ed

Please sign in to comment.