This commit is contained in:
EstrellaXD
2022-05-17 09:27:25 +08:00
parent 774f4083e8
commit 5d370638c7
3 changed files with 13 additions and 5 deletions

View File

@@ -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)

View File

@@ -1,4 +1,8 @@
# 全自动追番方案
## 全自动追番机
目前代码已经写完正在进行测试项目ing
## 说明
本项目根据 qBittorrent, Plex 以及 infuse 搭建
![Image](https://cdn.sspai.com/2022/02/09/d94ec60db1c136f6b12ba3dca31e5f5f.png?imageView2/2/w/1120/q/90/interlace/1/ignore-error/1)

View File

@@ -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']: