From 69028588b3b029a089c11de270d3711799de44f7 Mon Sep 17 00:00:00 2001 From: msramalho <19508417+msramalho@users.noreply.github.com> Date: Mon, 2 Jun 2025 20:04:34 +0100 Subject: [PATCH] linting --- .../modules/generic_extractor/generic_extractor.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/auto_archiver/modules/generic_extractor/generic_extractor.py b/src/auto_archiver/modules/generic_extractor/generic_extractor.py index 9a75352..8e7da8b 100644 --- a/src/auto_archiver/modules/generic_extractor/generic_extractor.py +++ b/src/auto_archiver/modules/generic_extractor/generic_extractor.py @@ -387,7 +387,11 @@ class GenericExtractor(Extractor): directory = os.path.dirname(base_filename) # '/get/path/to' basename = os.path.basename(base_filename) # 'file' for f in os.listdir(directory): - if f.startswith(basename) or (entry_url and os.path.splitext(f)[0] in entry_url) and "video/" in (mimetypes.guess_type(f)[0] or ""): + if ( + f.startswith(basename) + or (entry_url and os.path.splitext(f)[0] in entry_url) + and "video/" in (mimetypes.guess_type(f)[0] or "") + ): return os.path.join(directory, f) return False @@ -552,7 +556,8 @@ class GenericExtractor(Extractor): "--write-subs" if self.subtitles else "--no-write-subs", "--write-auto-subs" if self.subtitles else "--no-write-auto-subs", "--live-from-start" if self.live_from_start else "--no-live-from-start", - "--postprocessor-args", "ffmpeg:-bitexact" # ensure bitexact output to avoid mismatching hashes for same video + "--postprocessor-args", + "ffmpeg:-bitexact", # ensure bitexact output to avoid mismatching hashes for same video ] # proxy handling