mirror of
https://gitea.phreedom.club/localhost_frssoft/FMN_bot.git
synced 2024-12-23 20:29:48 +00:00
Correct method select
This commit is contained in:
parent
f6b7d41df5
commit
40f88d4e7e
@ -62,7 +62,7 @@ def extract_ru_locale_from_tsv(title_akas_tsv):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
tt_id = int(line[0].split("tt")[1])
|
tt_id = int(line[0].split("tt")[1])
|
||||||
tt_type = c.execute(f"SELECT type FROM titles WHERE tt_id={tt_id}").fetchone()[0]
|
tt_type = c.execute("SELECT type FROM titles WHERE tt_id = (?)", (tt_id, )).fetchone()[0]
|
||||||
if tt_type not in ("movie", "tvMovie", "video"):
|
if tt_type not in ("movie", "tvMovie", "video"):
|
||||||
continue
|
continue
|
||||||
ru_name = line[2]
|
ru_name = line[2]
|
||||||
|
Loading…
Reference in New Issue
Block a user