From 6a27d0ec323153b1d43f4899f5b361d872facbec Mon Sep 17 00:00:00 2001 From: Audionut Date: Wed, 30 Oct 2024 00:55:46 +1000 Subject: [PATCH] More languages --- src/trackers/COMMON.py | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/src/trackers/COMMON.py b/src/trackers/COMMON.py index 3a8008d1d..46c7c5aa3 100644 --- a/src/trackers/COMMON.py +++ b/src/trackers/COMMON.py @@ -759,32 +759,42 @@ async def filter_dupes(self, dupes, meta): class MediaInfoParser: # Language to ISO country code mapping LANGUAGE_CODE_MAP = { - "english": "us", - "german": "de", - "french": "fr", - "spanish": "es", - "italian": "it", - "portuguese": "pt", - "dutch": "nl", - "japanese": "jp", "arabic": "ae", + "bulgarian": "bg", + "chinese": "cn", + "croatian": "hr", "czech": "cz", "danish": "dk", - "greek": "gr", + "dutch": "nl", + "english": "us", + "estonian": "ee", "finnish": "fi", + "french": "fr", + "german": "de", + "greek": "gr", "hebrew": "il", "hungarian": "hu", + "icelandic": "is", "indonesian": "id", + "italian": "it", + "japanese": "jp", "korean": "kr", + "latvian": "lv", + "lithuanian": "lt", "norwegian bokmal": "no", "polish": "pl", + "portuguese": "pt", "romanian": "ro", "russian": "ru", + "serbian": "rs", + "slovak": "sk", + "slovenian": "si", + "spanish": "es", "swedish": "se", "thai": "th", "turkish": "tr", - "vietnamese": "vn", - "chinese": "cn", + "ukrainian": "ua", + "vietnamese": "vn" # Add more mappings as needed }