Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # same as current 'loose_comparator'
- a = StringComparator(cutoff=0.7, cleaner=title_cleaner)
- >>> a.set_seq1('your highness 2011 720p bluray')
- >>> a.matches('Your Highness (2011) [UNRATED] 720p BrRip x264 - 700MB - YIFY')
- False
- >>> a.ratio()
- 0.6923076923076923
- # new
- b = MovieComparator()
- >>> a.set_seq1('Your Highness 2011 720p bluray')
- >>> a.matches('Your Highness (2011) [UNRATED] 720p BrRip x264 - 700MB - YIFY')
- True
- >>> a.ratio()
- 1.0
Add Comment
Please, Sign In to add comment