Skip to content

Commit

Permalink
Guess film number only if less than 100
Browse files Browse the repository at this point in the history
Close #245
  • Loading branch information
Toilal committed Jan 18, 2016
1 parent 57c18a5 commit a693b69
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion guessit/rules/properties/film.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def film():
"""
rebulk = Rebulk().regex_defaults(flags=re.IGNORECASE)

rebulk.regex(r'f(\d+)', name='film', private_parent=True, children=True, formatter=int)
rebulk.regex(r'f(\d{1,2})', name='film', private_parent=True, children=True, formatter=int)

rebulk.rules(FilmTitleRule)

Expand Down
12 changes: 11 additions & 1 deletion guessit/test/episodes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1717,4 +1717,14 @@
season: 6
title: Scrubs
type: episode
video_codec: XviD
video_codec: XviD

? '[PuyaSubs!] Digimon Adventure tri - 01 [720p][F9967949].mkv'
: container: mkv
crc32: F9967949
episode: 1
mimetype: video/x-matroska
release_group: PuyaSubs!
screen_size: 720p
title: Digimon Adventure tri
type: episode

0 comments on commit a693b69

Please sign in to comment.