Add log message for hooks import errors

This commit is contained in:
Totonyus 2025-08-23 18:16:02 +02:00
parent 7302cb4df6
commit a443ebe728
5 changed files with 11 additions and 7 deletions

View File

@ -2,7 +2,7 @@ version: "3.1"
services:
ydl_api_ng:
container_name: ydl_api_ng
image: ydl_api_ng
# image: ydl_api_ng
restart: unless-stopped
build:
context: .

View File

@ -15,17 +15,20 @@ import config_manager
try:
from params import progress_hooks
except ImportError:
except ImportError as e:
logging.warning(e)
from setup import progress_hooks
try:
from params import postprocessor_hooks
except ImportError:
except ImportError as e:
logging.warning(e)
from setup import postprocessor_hooks
try:
from params import ydl_api_hooks
except ImportError:
except ImportError as e:
logging.warning(e)
from setup import ydl_api_hooks
from rq import get_current_job

View File

@ -7,7 +7,7 @@ sys.path.insert(1, 'params/hooks_utils/')
# ydl_opts contains all the informations of the selected preset
# download_manager contains all the processed informations about the download
# config_manager contains all the parameters of the application
# download contains the standart youtube-dlp object for postprocessor hooks
# download contains the standard youtube-dlp object for postprocessor hooks
###
def handler(ydl_opts, download_manager, config_manager, download, **kwargs):

View File

@ -10,7 +10,7 @@ sys.path.insert(1, 'params/hooks_utils/')
# ydl_opts contains all the informations of the selected preset
# download_manager contains all the processed informations about the download
# config_manager contains all the parameters of the application
# download contains the standart youtube-dlp object for progress hooks
# download contains the standard youtube-dlp object for progress hooks
###
def handler(ydl_opts, download_manager, config_manager, download, **kwargs):

View File

@ -16,7 +16,8 @@ import download_manager
try:
from params import ydl_api_hooks
except ImportError:
except ImportError as e:
logging.warning(e)
from setup import ydl_api_hooks
class ProcessUtils: