From e5170687b1ba28629574ba9496ba50f849b7242e Mon Sep 17 00:00:00 2001 From: EstrellaXD Date: Sat, 14 May 2022 11:03:04 +0800 Subject: [PATCH] renew git --- rename_hash.py | 10 +++++++--- rename_qb.py | 9 ++++++--- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/rename_hash.py b/rename_hash.py index 08c6f6d2..004b1680 100644 --- a/rename_hash.py +++ b/rename_hash.py @@ -4,12 +4,16 @@ import sys import os.path as op import argparse import qbittorrentapi +import json + +f = open("config.json") +server_info = json.load(f) +host_ip = "http://"+server_info['host_ip'] +user_name = server_info['username'] +password = server_info['password'] -host_ip = '192.168.31.10:8181' -user_name = 'admin' -password = 'adminadmin' log_name=op.join(op.dirname(op.realpath(__file__)), 'log.txt') # Episode Regular Expression Matching Rules diff --git a/rename_qb.py b/rename_qb.py index 2fc6b893..aea3db75 100644 --- a/rename_qb.py +++ b/rename_qb.py @@ -3,10 +3,13 @@ import io import sys import os.path as op import qbittorrentapi +import json -host_ip = '192.168.31.10:8181' -user_name = 'admin' -password = 'adminadmin' +f = open("config.json") +server_info = json.load(f) +host_ip = "http://"+server_info['host_ip'] +user_name = server_info['username'] +password = server_info['password'] log_name = op.join(op.dirname(op.realpath(__file__)), 'log.txt') # Episode Regular Expression Matching Rules