-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This also enhance some rules in season/episodes handling
- Loading branch information
Showing
13 changed files
with
210 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ python: | |
- 3.5 | ||
- 3.6 | ||
- pypy | ||
- pypy3 | ||
# - pypy3 | ||
matrix: | ||
include: | ||
- python: 3.7 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
""" | ||
Match processors | ||
""" | ||
from guessit.rules.common import seps | ||
|
||
|
||
def strip(match, chars=seps): | ||
""" | ||
Strip given characters from match. | ||
:param chars: | ||
:param match: | ||
:return: | ||
""" | ||
while match.input_string[match.start] in chars: | ||
match.start += 1 | ||
while match.input_string[match.end - 1] in chars: | ||
match.end -= 1 | ||
if not match: | ||
return False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.