mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-05-04 21:03:31 +08:00
20 lines
543 B
Python
20 lines
543 B
Python
import os
|
|
import time
|
|
from collect_bangumi_info import CollectRSS
|
|
from auto_set_rule import SetRule
|
|
from rename_qb import QbittorrentRename
|
|
import json
|
|
|
|
sleep_time = os.environ["TIME"]
|
|
|
|
if __name__ == "__main__":
|
|
while True:
|
|
with open("/config/config.json") as f:
|
|
config = json.load(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(float(sleep_time))
|