hevc+重下模板

This commit is contained in:
2025-08-05 12:22:47 +08:00
parent bf912037d1
commit 2f694da5fd
7 changed files with 36 additions and 8 deletions

View File

@@ -1,15 +1,25 @@
from time import sleep
import sys
import config
import biz.task
from telemetry import init_opentelemetry
from template import load_local_template
from template import load_local_template, download_template, TEMPLATES
from util import api
import os
import glob
load_local_template()
# Check for redownload parameter
if 'redownload' in sys.argv:
print("Redownloading all templates...")
for template_name in TEMPLATES.keys():
print(f"Redownloading template: {template_name}")
download_template(template_name)
print("All templates redownloaded successfully!")
sys.exit(0)
import logging
LOGGER = logging.getLogger(__name__)