modify files.
This commit is contained in:
@ -20,8 +20,9 @@ scan_mode = 0
|
|||||||
update_mode = 0
|
update_mode = 0
|
||||||
|
|
||||||
current_date_str = datetime.now().strftime("%Y-%m-%d")
|
current_date_str = datetime.now().strftime("%Y-%m-%d")
|
||||||
target_csv = f"{config.global_share_data_dir}/u3c3.csv"
|
docs_dir = f"{config.global_share_data_dir}/docs"
|
||||||
target_torrent_dir = f"{config.global_share_data_dir}/u3c3_torrents"
|
target_csv = f"{docs_dir}/u3c3.csv"
|
||||||
|
target_torrent_dir = f"{docs_dir}/u3c3_torrents"
|
||||||
|
|
||||||
# 获取演员列表
|
# 获取演员列表
|
||||||
def fetch_list(start_p=1):
|
def fetch_list(start_p=1):
|
||||||
@ -191,7 +192,7 @@ def fetch_sis_all():
|
|||||||
url = item['url']
|
url = item['url']
|
||||||
logging.info(f"---------------start fetching {section}, begin url: {url}")
|
logging.info(f"---------------start fetching {section}, begin url: {url}")
|
||||||
#csv_file = f"{config.global_share_data_dir}/{section}.csv"
|
#csv_file = f"{config.global_share_data_dir}/{section}.csv"
|
||||||
csv_file = f"{config.global_share_data_dir}/sis.csv"
|
csv_file = f"{docs_dir}/sis.csv"
|
||||||
# 备份已有文件
|
# 备份已有文件
|
||||||
utils.backup_existing_file(csv_file)
|
utils.backup_existing_file(csv_file)
|
||||||
fetch_sis_list(url=url, target_csv_sis=csv_file, ident=item['ident'])
|
fetch_sis_list(url=url, target_csv_sis=csv_file, ident=item['ident'])
|
||||||
@ -271,5 +272,6 @@ if __name__ == "__main__":
|
|||||||
parser.add_argument('--debug', action='store_true', help='Enable debug mode (limit records)')
|
parser.add_argument('--debug', action='store_true', help='Enable debug mode (limit records)')
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
os.makedirs(docs_dir, exist_ok=True)
|
||||||
set_env(args)
|
set_env(args)
|
||||||
main(args.cmd, args)
|
main(args.cmd, args)
|
||||||
Reference in New Issue
Block a user