Documentary movies will be dropped (Special for FMN, we not canceling this!)

This commit is contained in:
localhost_frssoft 2022-11-16 20:59:20 +03:00
parent 47f20fe4e8
commit eaf57df418

View File

@ -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: