Skip to content

Commit

Permalink
improve vanilla S03E01 regex to accept lowercase s03e01 too
Browse files Browse the repository at this point in the history
  • Loading branch information
dularion committed Apr 12, 2019
1 parent 0f72b1a commit 7e8b8c6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions docs/sample_application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ streama:
regex:
movies: ^(?<Name>.*)[._ ]\(\d{4}\).*
shows:
- ^(?<Name>.+)[._ ]S(?<Season>\d{2})E(?<Episode>\d{2,3}).* # example: "House.MD.S03E04.h264.mp4"
- ^(?<Name>.+)[._ ](?<Season>\d{1,2})x(?<Episode>\d{2,3}).* # example: "House.MD.03x04.h264.mp4"
- ^(?<Season>\d{2})-(?<Episode>\d{2,3})-(?<Name>.*?)-.* # example: "02-05-Dr. House-Tanz_ums_Feuer-cineonws.mp4"
- ^(?<Name>.*?)(?<Episode>\d{1,3})x(?<Season>\d{2}).* # example: "Castle4x06DaemonsWebdl480pOktober242011rC.mkv(jkuzt).mp4"
- ^(?<Name>.+)[._ ][Ss](?<Season>\d{2})[Ee](?<Episode>\d{2,3}).* # example: "House.MD.S03E04.h264.mp4"
- ^(?<Name>.+)[._ ](?<Season>\d{1,2})x(?<Episode>\d{2,3}).* # example: "House.MD.03x04.h264.mp4"
- ^(?<Season>\d{2})-(?<Episode>\d{2,3})-(?<Name>.*?)-.* # example: "02-05-Dr. House-Tanz_ums_Feuer-cineonws.mp4"
- ^(?<Name>.*?)(?<Episode>\d{1,3})x(?<Season>\d{2}).* # example: "Castle4x06DaemonsWebdl480pOktober242011rC.mkv(jkuzt).mp4"

8 changes: 4 additions & 4 deletions grails-app/conf/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,10 @@ streama:
regex:
movies: ^(?<Name>.*)[._ ]\(\d{4}\).*
shows:
- ^(?<Name>.+)[._ ]S(?<Season>\d{2})E(?<Episode>\d{2,3}).* # example: "House.MD.S03E04.h264.mp4"
- ^(?<Name>.+)[._ ](?<Season>\d{1,2})x(?<Episode>\d{2,3}).* # example: "House.MD.03x04.h264.mp4"
- ^(?<Season>\d{2})-(?<Episode>\d{2,3})-(?<Name>.*?)-.* # example: "02-05-Dr. House-Tanz_ums_Feuer-cineonws.mp4"
- ^(?<Name>.*?)(?<Episode>\d{1,3})x(?<Season>\d{2}).* # example: "Castle4x06DaemonsWebdl480pOktober242011rC.mkv(jkuzt).mp4"
- ^(?<Name>.+)[._ ][Ss](?<Season>\d{2})[Ee](?<Episode>\d{2,3}).* # example: "House.MD.S03E04.h264.mp4"
- ^(?<Name>.+)[._ ](?<Season>\d{1,2})x(?<Episode>\d{2,3}).* # example: "House.MD.03x04.h264.mp4"
- ^(?<Season>\d{2})-(?<Episode>\d{2,3})-(?<Name>.*?)-.* # example: "02-05-Dr. House-Tanz_ums_Feuer-cineonws.mp4"
- ^(?<Name>.*?)(?<Episode>\d{1,3})x(?<Season>\d{2}).* # example: "Castle4x06DaemonsWebdl480pOktober242011rC.mkv(jkuzt).mp4"

uploadtypes: ['video/h264', 'video/mp4', 'video/mpeg', 'video/quicktime', 'video/webm', 'video/x-ms-wm', 'video/x-ms-wmv',
'video/x-msvideo', 'image/bmp', 'image/gif', 'image/jpeg', 'image/pjpeg', 'image/png', 'image/svg+xml',
Expand Down

0 comments on commit 7e8b8c6

Please sign in to comment.