From 97eafcd2eada43a17c38f1ab8bb40d89204c9f29 Mon Sep 17 00:00:00 2001 From: Audionut Date: Thu, 5 Sep 2024 09:30:19 +1000 Subject: [PATCH] Lint --- src/trackers/AITHER.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/trackers/AITHER.py b/src/trackers/AITHER.py index a329cd582..18304a23c 100644 --- a/src/trackers/AITHER.py +++ b/src/trackers/AITHER.py @@ -104,7 +104,7 @@ async def upload(self, meta): async def edit_name(self, meta): aither_name = meta['name'] - + # Helper function to check if English audio is present def has_english_audio(tracks, is_bdmv=False): for track in tracks: @@ -115,7 +115,7 @@ def has_english_audio(tracks, is_bdmv=False): if isinstance(track.get('Language'), str) and track.get('Language').startswith('en'): return True return False - + # Helper function to get audio language def get_audio_lang(tracks, is_bdmv=False): if is_bdmv: @@ -126,7 +126,7 @@ def get_audio_lang(tracks, is_bdmv=False): try: with open(f"{meta.get('base_dir')}/tmp/{meta.get('uuid')}/MediaInfo.json", 'r', encoding='utf-8') as f: mi = json.load(f) - + audio_tracks = mi['media']['track'] has_eng_audio = has_english_audio(audio_tracks) if not has_eng_audio: