Skip to content

Commit

Permalink
Merge pull request #57 from 10SecondsToWaste/master
Browse files Browse the repository at this point in the history
Avoid false positive if a chapter is named "One shot" or similar
  • Loading branch information
hurlenko authored Jun 18, 2024
2 parents 9267bc7 + 7242bfb commit 75bbe51
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mloader/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@


def is_oneshot(chapter_name: str, chapter_subtitle: str) -> bool:
chapter_number = chapter_name_to_int(chapter_name)

if chapter_number is not None:
return False

for name in (chapter_name, chapter_subtitle):
name = name.lower()
if "one" in name and "shot" in name:
Expand Down

0 comments on commit 75bbe51

Please sign in to comment.