From 0e58232d1c99f9bda74cde823ec96fd0be322ea7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 15 Apr 2024 20:59:11 +0000 Subject: [PATCH] chore: [pre-commit.ci] automatic fixes --- proxima/app/link.py | 2 +- proxima/celery/tasks.py | 14 ++++++++------ proxima/settings/manager.py | 2 +- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/proxima/app/link.py b/proxima/app/link.py index 328530b..217b366 100644 --- a/proxima/app/link.py +++ b/proxima/app/link.py @@ -140,7 +140,7 @@ def batch_link(self): logger.critical( "[red bold]Oh dear. All the proxies failed to link.[/]\n" "[red]Resolve might not like your encoding settings or something else is wrong.[/]\n", - exc_info=True + exc_info=True, # TODO: Add troubleshooting wiki link here # Like so: `"[cyan]See [troubleshooting](link)"` # labels: enhancement diff --git a/proxima/celery/tasks.py b/proxima/celery/tasks.py index bb2e3f5..e2ea0b2 100644 --- a/proxima/celery/tasks.py +++ b/proxima/celery/tasks.py @@ -170,12 +170,14 @@ def encode_proxy(self, job_dict: dict) -> str: # labels: enhancement # VIDEO FILTERS "-vf", - f"scale=-2:{ps.vertical_res}," - f"scale={job.input_level}:out_range=limited, " - f"{ffmpeg_video_flip(job)}" - f"format={ps.pix_fmt}" - if ps.pix_fmt - else "", + ( + f"scale=-2:{ps.vertical_res}," + f"scale={job.input_level}:out_range=limited, " + f"{ffmpeg_video_flip(job)}" + f"format={ps.pix_fmt}" + if ps.pix_fmt + else "" + ), # AUDIO "-c:a", ps.audio_codec, diff --git a/proxima/settings/manager.py b/proxima/settings/manager.py index e697f11..53bd6d6 100644 --- a/proxima/settings/manager.py +++ b/proxima/settings/manager.py @@ -19,7 +19,7 @@ from rich import print from rich.panel import Panel -from proxima.app.core import setup_rich_logging, app_exit +from proxima.app.core import app_exit, setup_rich_logging from proxima.settings import dotenv_settings_file, user_settings_file setup_rich_logging()