Skip to content
This repository was archived by the owner on Jun 14, 2026. It is now read-only.
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion src/trackers/AITHER.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,22 @@ async def get_name(self, meta: dict[str, Any]):
video_encode: str = meta.get("video_encode", "")
name_type: str = meta.get("type", "")
source: str = meta.get("source", "")
alt_title = meta.get("aka", "") if not meta.get("no_aka", False) else ""

year = str(meta.get("year", "")) if not meta.get("no_year", False) else ""
if meta["category"] == "TV":
year = meta["year"] if meta["search_year"] != "" else ""
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
manual_year_value = str(meta.get("manual_year", ""))
if manual_year_value and int(manual_year_value) > 0:
year = manual_year_value
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated

if not meta.get('language_checked', False):
await languages_manager.process_desc_language(meta, tracker=self.tracker)
audio_languages: list[str] = meta['audio_languages']
if audio_languages and not await languages_manager.has_english_language(audio_languages):
foreign_lang = audio_languages[0].upper()
if (name_type == "REMUX" and source in ("PAL DVD", "NTSC DVD", "DVD")):
aither_name = aither_name.replace(str(meta['year']), f"{meta['year']} {foreign_lang}", 1)
aither_name = aither_name.replace(year, f"{year} {foreign_lang}", 1)
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
elif meta.get('is_disc') != "BDMV":
aither_name = aither_name.replace(meta['resolution'], f"{foreign_lang} {meta['resolution']}", 1)

Expand All @@ -86,4 +94,7 @@ async def get_name(self, meta: dict[str, Any]):
if meta.get('trump_reason') == 'exact_match':
aither_name = aither_name + " - TRUMP"

if alt_title:
aither_name = aither_name.replace(f"{year} {alt_title}", f"{alt_title} {year}", 1)

return {'name': aither_name}
Loading