1
0
Fork 0
mirror of https://github.com/Findus23/cr-search.git synced 2024-09-19 15:23:44 +02:00

fix importing (right timestamp for lines)

This commit is contained in:
Lukas Winkler 2021-10-26 15:28:54 +02:00
parent fb7a8e246f
commit 9e9348fa69
Signed by: lukas
GPG key ID: 54DE4D798D244853

View file

@ -161,10 +161,10 @@ def main() -> None:
formatted_name = ", ".join(people)
person, created = Person.get_or_create(name=formatted_name, series=series)
text = add_to_text(text, resttext.strip())
if text:
dblines.append(insert_subtitle(text, person, subline, episode, order=i))
text = ""
i += 1
if text:
dblines.append(insert_subtitle(text, person, subline, episode, order=i))
text = ""
i += 1
if not series.single_speaker:
dblines = group_lines(dblines)
@ -180,5 +180,6 @@ def main() -> None:
episode.save()
clear_cache()
if __name__ == '__main__':
main()