mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-04-23 06:08:00 -04:00
Fix for french not recognized anymore #109
This commit is contained in:
parent
c164939520
commit
12d8e8b840
1 changed files with 4 additions and 0 deletions
|
@ -33,6 +33,8 @@ def language_from_alpha2(lang):
|
|||
return result
|
||||
|
||||
def language_from_alpha3(lang):
|
||||
if lang == 'fre':
|
||||
lang = 'fra'
|
||||
db = sqlite3.connect(os.path.join(os.path.dirname(__file__), 'data/db/bazarr.db'), timeout=30)
|
||||
c = db.cursor()
|
||||
try:
|
||||
|
@ -43,6 +45,8 @@ def language_from_alpha3(lang):
|
|||
return result
|
||||
|
||||
def alpha2_from_alpha3(lang):
|
||||
if lang == 'fre':
|
||||
lang = 'fra'
|
||||
db = sqlite3.connect(os.path.join(os.path.dirname(__file__), 'data/db/bazarr.db'), timeout=30)
|
||||
c = db.cursor()
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue