Skip to content

Commit

Permalink
More languages
Browse files Browse the repository at this point in the history
  • Loading branch information
Audionut committed Oct 29, 2024
1 parent ff0badb commit 6a27d0e
Showing 1 changed file with 21 additions and 11 deletions.
32 changes: 21 additions & 11 deletions src/trackers/COMMON.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 6a27d0e

Please sign in to comment.