Add log message for hooks import errors
This commit is contained in:
parent
7302cb4df6
commit
a443ebe728
|
|
@ -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: .
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue