Skip to content

Commit

Permalink
增加刮削等待时间
Browse files Browse the repository at this point in the history
  • Loading branch information
todoXu committed Dec 19, 2023
1 parent 4376c76 commit e72b489
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions JavSP.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,10 @@ def check_step(result, msg='步骤错误'):
check_step(True)

logger.info(f'整理完成,相关文件已保存到: {movie.save_dir}\n')

if movie.dvdid != all_movies[-1].dvdid and int(cfg.Other.sleep) != 0:
time.sleep(int(cfg.Other.sleep))

except Exception as e:
logger.debug(e, exc_info=True)
logger.error(f'整理失败: {e}')
Expand Down
2 changes: 2 additions & 0 deletions core/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,5 @@ add_genre_to_tag = yes
check_update = yes
# 是否允许检查到新版本时自动下载
auto_update = yes
# 刮削一部电影后的等待时间(秒)
sleep = 1

0 comments on commit e72b489

Please sign in to comment.