You've already forked FrameTour-RenderWorker
hevc+重下模板
This commit is contained in:
12
index.py
12
index.py
@@ -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__)
|
||||
|
Reference in New Issue
Block a user