Skip to content

Commit

Permalink
Added indian (and various indian local languages) and russian
Browse files Browse the repository at this point in the history
  • Loading branch information
aymene69 committed Feb 23, 2024
1 parent 9dfaf65 commit adf99fd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion utils/parse_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ def get_emoji(language):
"de": "🇩🇪",
"it": "🇮🇹",
"pt": "🇵🇹",
"ru": "🇷🇺",
"in": "🇮🇳",
"multi": "🌍"
}
return emoji_dict.get(language, "🇬🇧")
Expand All @@ -64,7 +66,9 @@ def detect_language(torrent_name):
"es": r'\b(SPANISH|ES|ESP)\b',
"de": r'\b(GERMAN|DE|GER)\b',
"it": r'\b(ITALIAN|IT|ITA)\b',
"pt": r'\b(PORTUGUESE|PT|POR)\b'
"pt": r'\b(PORTUGUESE|PT|POR)\b',
"ru": r'\b(RUSSIAN|RU|RUS)\b',
"in": r'\b(INDIAN|IN|HINDI|TELUGU|TAMIL|KANNADA|MALAYALAM|PUNJABI|MARATHI|BENGALI|GUJARATI|URDU|ODIA|ASSAMESE|KONKANI|MANIPURI|NEPALI|SANSKRIT|SINHALA|SINDHI|TIBETAN|BHOJPURI|DHIVEHI|KASHMIRI|KURUKH|MAITHILI|NEWARI|RAJASTHANI|SANTALI|SINDHI|TULU)\b'
}

for language, pattern in language_patterns.items():
Expand Down
2 changes: 2 additions & 0 deletions utils/process_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ def get_emoji(language):
"de": "🇩🇪",
"it": "🇮🇹",
"pt": "🇵🇹",
"ru": "🇷🇺",
"in": "🇮🇳",
"multi": "🌍"
}
return emoji_dict.get(language, "🇬🇧")
Expand Down

0 comments on commit adf99fd

Please sign in to comment.