Skip to content

Commit

Permalink
Move date-stamp format lower in list, so it doesn't catch show.s01e01…
Browse files Browse the repository at this point in the history
….2009.01.02.avi
  • Loading branch information
dbr committed Apr 28, 2010
1 parent b6b6047 commit ebf2e69
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions tvnamer/config_defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,16 +98,6 @@
[ ]?[-_][ ]?(?P<episodenumber>\d+)
[^\/]*$''',

# foo.2010.01.02.etc
'''
^((?P<seriesname>.+?)[ \._\-])? # show name
(?P<date>\d{4} # year
[ \._\-] # separator
\d{2} # month
[ \._\-] # separator
\d{2}) # day
[^\/]*$''',

# foo s01e23 s01e24 s01e25 *
'''
^((?P<seriesname>.+?)[ \._\-])? # show name
Expand Down Expand Up @@ -257,7 +247,18 @@
[ \._\-] # Padding
[Ee](?P<episodenumber>[0-9]+) # E123
[\._ -][^\\/]*$ # More padding, then anything
''',

# foo.2010.01.02.etc
'''
^((?P<seriesname>.+?)[ \._\-])? # show name
(?P<date>\d{4} # year
[ \._\-] # separator
\d{2} # month
[ \._\-] # separator
\d{2}) # day
[^\/]*$''',

],

# Format to parse date with
Expand Down

0 comments on commit ebf2e69

Please sign in to comment.