mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-12-01 00:38:13 +08:00
2.0beta 开发完成
This commit is contained in:
@@ -5,7 +5,5 @@ COPY requirements.txt .
|
||||
RUN pip3 install -r requirements.txt
|
||||
|
||||
COPY ./app /app
|
||||
COPY ./config /config
|
||||
|
||||
|
||||
CMD [ "python3", "/app/docker_main.py"]
|
||||
@@ -1,10 +1,11 @@
|
||||
# -*- coding: UTF-8 -*-
|
||||
import os
|
||||
|
||||
import requests
|
||||
from bs4 import BeautifulSoup
|
||||
import json
|
||||
import re
|
||||
|
||||
|
||||
class CollectRSS:
|
||||
def __init__(self, config, info):
|
||||
self.info = info
|
||||
@@ -58,7 +59,7 @@ class CollectRSS:
|
||||
})
|
||||
print(f"add {title} {season}")
|
||||
# 写入数据
|
||||
with open("../config/bangumi.json", 'w', encoding='utf8') as f:
|
||||
with open("/config/bangumi.json", 'w', encoding='utf8') as f:
|
||||
json.dump(bangumi_info, f, indent=4, separators=(',', ': '), ensure_ascii=False)
|
||||
|
||||
def run(self):
|
||||
|
||||
@@ -5,15 +5,15 @@ from auto_set_rule import SetRule
|
||||
from rename_qb import QbittorrentRename
|
||||
import json
|
||||
|
||||
#sleep_time = os.environ["TIME"]
|
||||
sleep_time = os.environ["TIME"]
|
||||
|
||||
if __name__ == "__main__":
|
||||
while True:
|
||||
with open("../config/config.json") as f:
|
||||
with open("/config/config.json") as f:
|
||||
config = json.load(f)
|
||||
with open("../config/bangumi.json") as f:
|
||||
with open("/config/bangumi.json") as f:
|
||||
info = json.load(f)
|
||||
CollectRSS(config, info).run()
|
||||
SetRule(config, info).run()
|
||||
QbittorrentRename(config).run()
|
||||
time.sleep(1800)
|
||||
time.sleep(float(sleep_time))
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
# 全自动追番方案
|
||||
## 全自动追番机
|
||||
|
||||
目前代码已经写完,正在进行测试项目ing
|
||||
V2.0 Beta 已经完成
|
||||
[AutoBangumi V2 简易说明](https://www.craft.do/s/4viN6M3tBqigLp)
|
||||
测试请进群:
|
||||
[Telegram](t.me/autobangumi)
|
||||
|
||||
<img src="https://github.com/EstrellaXD/Bangumi_Auto_Collector/blob/main/image/workthrough-1.0.png?raw=true" alt="drawing" width="350"/><img src="https://github.com/EstrellaXD/Bangumi_Auto_Collector/blob/main/image/workthrough-2.0.png?raw=true" alt="drawing" width="350"/>
|
||||
## 说明
|
||||
|
||||
Reference in New Issue
Block a user