mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-04-13 18:11:03 +08:00
fix bugs
This commit is contained in:
@@ -74,8 +74,9 @@ class QbittorrentRename:
|
||||
self.new_name = None
|
||||
|
||||
def print_result(self):
|
||||
sys.stdout.write(f"-----已完成对{self.torrent_count}个文件的检查,已对其中{self.count}个文件进行重命名-----" + '\n')
|
||||
sys.stdout.write("------------------------完成------------------------" + '\n')
|
||||
sys.stdout.write(f"[{time.strftime('%X')}] 已完成对{self.torrent_count}个文件的检查" + '\n')
|
||||
sys.stdout.write(f"[{time.strftime('%X')}] 已对其中{self.count}个文件进行重命名" + '\n')
|
||||
sys.stdout.write(f"[{time.strftime('%X')}] 完成" + '\n')
|
||||
sys.stdout.flush()
|
||||
|
||||
def rename_app(self):
|
||||
@@ -100,7 +101,7 @@ class QbittorrentRename:
|
||||
|
||||
|
||||
def rename_main():
|
||||
sys.stdout.write('Program start.' + '\n')
|
||||
sys.stdout.write(f"[{time.strftime('%X')}] Program start." + '\n')
|
||||
sys.stdout.flush()
|
||||
while True:
|
||||
rename = QbittorrentRename(method)
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
# 全自动追番方案
|
||||
## 全自动追番机
|
||||
|
||||
目前代码已经写完,正在进行测试项目ing
|
||||
|
||||
## 说明
|
||||
本项目根据 qBittorrent, Plex 以及 infuse 搭建
|
||||

|
||||
|
||||
@@ -2,6 +2,8 @@ import re
|
||||
import io
|
||||
import sys
|
||||
import os.path as op
|
||||
import time
|
||||
|
||||
import qbittorrentapi
|
||||
import json
|
||||
|
||||
@@ -75,8 +77,9 @@ class QbittorrentRename:
|
||||
self.new_name = None
|
||||
|
||||
def print_result(self):
|
||||
print(f"-----已完成对{self.torrent_count}个文件的检查,已对其中{self.count}个文件进行重命名-----")
|
||||
print("------------------------完成------------------------")
|
||||
print(f"[{time.strftime('%X')}] 已完成对{self.torrent_count}个文件的检查")
|
||||
print(f"[{time.strftime('%X')}] 已对其中{self.count}个文件进行重命名")
|
||||
print(f"[{time.strftime('%X')}] 完成")
|
||||
|
||||
def rename_app(self):
|
||||
if self.method not in ['pn', 'normal']:
|
||||
|
||||
Reference in New Issue
Block a user