diff options
Diffstat (limited to 'libs/guessit/rules/common/date.py')
-rw-r--r-- | libs/guessit/rules/common/date.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/guessit/rules/common/date.py b/libs/guessit/rules/common/date.py index 1e114569d..5850e9d4e 100644 --- a/libs/guessit/rules/common/date.py +++ b/libs/guessit/rules/common/date.py @@ -34,6 +34,11 @@ def valid_year(year): return 1920 <= year < 2030 +def valid_week(week): + """Check if number is a valid week""" + return 1 <= week < 53 + + def _is_int(string): """ Check if the input string is an integer |