mirror of
https://gitea.phreedom.club/localhost_frssoft/FMN_bot
synced 2024-11-22 00:19:20 +02:00
Documentary movies will be dropped (Special for FMN, we not canceling this!)
This commit is contained in:
parent
47f20fe4e8
commit
eaf57df418
|
@ -27,6 +27,7 @@ def convert_tsv_to_db(title_basics_tsv):
|
|||
original_name = line[3]
|
||||
ru_name = None
|
||||
year = line[5]
|
||||
genres = line[-1].strip().split(',')
|
||||
if year.startswith(r"\N"):
|
||||
year = None
|
||||
else:
|
||||
|
@ -35,7 +36,11 @@ def convert_tsv_to_db(title_basics_tsv):
|
|||
if tt_type not in ("movie", "tvMovie", "video"):
|
||||
original_name = None
|
||||
year = None
|
||||
|
||||
if "Documentary" in genres:
|
||||
logger.debug(f'Документальный {original_name} отсеян')
|
||||
original_name = None
|
||||
year = None
|
||||
tt_type = "doc"
|
||||
write_dataset.append((tt_id, tt_type, original_name, ru_name, year))
|
||||
counter += 1
|
||||
if counter >= chunk:
|
||||
|
|
Loading…
Reference in New Issue