diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index a84af4f..a5aa8f9 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -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: . diff --git a/download_manager.py b/download_manager.py index 2ef8e11..bf05da1 100644 --- a/download_manager.py +++ b/download_manager.py @@ -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 diff --git a/params/postprocessor_hooks.py b/params/postprocessor_hooks.py index d2aeea3..d99b34f 100644 --- a/params/postprocessor_hooks.py +++ b/params/postprocessor_hooks.py @@ -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): diff --git a/params/progress_hooks.py b/params/progress_hooks.py index 4b0ac1b..a836f29 100644 --- a/params/progress_hooks.py +++ b/params/progress_hooks.py @@ -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): diff --git a/process_utils.py b/process_utils.py index 7ff4c39..ecd0149 100644 --- a/process_utils.py +++ b/process_utils.py @@ -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: