|
@ -200,6 +200,20 @@ sports_regexs = {'sports':[ |
|
|
-(?P<release_group>[^- ]+))?)?$ |
|
|
-(?P<release_group>[^- ]+))?)?$ |
|
|
''' |
|
|
''' |
|
|
), |
|
|
), |
|
|
|
|
|
|
|
|
|
|
|
('sports_bare', |
|
|
|
|
|
# Sports.Name.2010.11.23.Source.Quality.Etc-Group |
|
|
|
|
|
# Sports.Name.23rd.Nov.2010.Source.Quality.Etc-Group |
|
|
|
|
|
''' |
|
|
|
|
|
^(?P<series_name>.+?)[. _-]+ |
|
|
|
|
|
((?P<sports_event_id>\d{3})[. _-]+)? |
|
|
|
|
|
((?P<sports_event_name>\.+)[. _-]+)? |
|
|
|
|
|
(?P<sports_event_date>(\d{4}[. _-]+\d{1,2}[. _-]+\d{1,2})|(\d{1,2}\w{2}[. _-]+\w+[. _-]+\d{4})) |
|
|
|
|
|
[. _-]*((?P<extra_info>.+?)((?<![. _-])(?<!WEB) |
|
|
|
|
|
-(?P<release_group>[^- ]+))?)?$ |
|
|
|
|
|
''' |
|
|
|
|
|
), |
|
|
|
|
|
|
|
|
]} |
|
|
]} |
|
|
|
|
|
|
|
|
anime_regexes = {'anime':[ |
|
|
anime_regexes = {'anime':[ |
|
@ -208,7 +222,7 @@ anime_regexes = {'anime':[ |
|
|
""" |
|
|
""" |
|
|
^(?:\[(?P<release_group>.+?)\][ ._-]*) |
|
|
^(?:\[(?P<release_group>.+?)\][ ._-]*) |
|
|
(?P<series_name>.+?)[ ._-]+ |
|
|
(?P<series_name>.+?)[ ._-]+ |
|
|
(?P<ep_ab_num>\d{1,3}) |
|
|
(?P<ep_ab_num>(?!(1080|720)[pi])\d{1,3}) |
|
|
(-(?P<extra_ab_ep_num>\d{1,3}))?[ ._-]+? |
|
|
(-(?P<extra_ab_ep_num>\d{1,3}))?[ ._-]+? |
|
|
(?:v(?P<version>[0-9]))? |
|
|
(?:v(?P<version>[0-9]))? |
|
|
(?:[\w\.]*) |
|
|
(?:[\w\.]*) |
|
@ -227,7 +241,7 @@ anime_regexes = {'anime':[ |
|
|
''' |
|
|
''' |
|
|
^(\[(?P<release_group>.+?)\][ ._-]*)? # Release Group and separator |
|
|
^(\[(?P<release_group>.+?)\][ ._-]*)? # Release Group and separator |
|
|
(?P<series_name>.+?)[ ._-]+ # Show_Name and separator |
|
|
(?P<series_name>.+?)[ ._-]+ # Show_Name and separator |
|
|
(?P<ep_ab_num>\d{1,3}) # E01 |
|
|
(?P<ep_ab_num>(?!(1080|720)[pi])\d{1,3}) # E01 |
|
|
(-(?P<extra_ab_ep_num>\d{1,3}))? # E02 |
|
|
(-(?P<extra_ab_ep_num>\d{1,3}))? # E02 |
|
|
(v(?P<version>[0-9]))? # version |
|
|
(v(?P<version>[0-9]))? # version |
|
|
[ ._-]+\[(?P<extra_info>\d{3,4}[xp]?\d{0,4}[\.\w\s-]*)\] # Source_Quality_Etc- |
|
|
[ ._-]+\[(?P<extra_info>\d{3,4}[xp]?\d{0,4}[\.\w\s-]*)\] # Source_Quality_Etc- |
|
@ -242,7 +256,7 @@ anime_regexes = {'anime':[ |
|
|
''' |
|
|
''' |
|
|
^(\[(?P<release_group>.+?)\][ ._-]*)? # Release Group and separator |
|
|
^(\[(?P<release_group>.+?)\][ ._-]*)? # Release Group and separator |
|
|
(?P<series_name>.+?)[ ._-]+ # Show_Name and separator |
|
|
(?P<series_name>.+?)[ ._-]+ # Show_Name and separator |
|
|
(?P<ep_ab_num>\d{1,3}) # E01 |
|
|
(?P<ep_ab_num>(?!(1080|720)[pi])\d{1,3}) # E01 |
|
|
(-(?P<extra_ab_ep_num>\d{1,3}))? # E02 |
|
|
(-(?P<extra_ab_ep_num>\d{1,3}))? # E02 |
|
|
(v(?P<version>[0-9]))? # version |
|
|
(v(?P<version>[0-9]))? # version |
|
|
[ ._-]+\((?P<extra_info>(CX[ ._-]?)?\d{3,4}[xp]?\d{0,4}[\.\w\s-]*)\) # Source_Quality_Etc- |
|
|
[ ._-]+\((?P<extra_info>(CX[ ._-]?)?\d{3,4}[xp]?\d{0,4}[\.\w\s-]*)\) # Source_Quality_Etc- |
|
@ -255,7 +269,7 @@ anime_regexes = {'anime':[ |
|
|
''' |
|
|
''' |
|
|
^(\[(?P<release_group>.+?)\][ ._-]*)? # Release Group and separator |
|
|
^(\[(?P<release_group>.+?)\][ ._-]*)? # Release Group and separator |
|
|
(?P<series_name>.+?)[ ._-]+ # Show_Name and separator |
|
|
(?P<series_name>.+?)[ ._-]+ # Show_Name and separator |
|
|
(?P<ep_ab_num>\d{1,3}) # E01 |
|
|
(?P<ep_ab_num>(?!(1080|720)[pi])\d{1,3}) # E01 |
|
|
(-(?P<extra_ab_ep_num>\d{1,3}))? # E02 |
|
|
(-(?P<extra_ab_ep_num>\d{1,3}))? # E02 |
|
|
(v(?P<version>[0-9]))? # version |
|
|
(v(?P<version>[0-9]))? # version |
|
|
[ ._-]+\[(?P<extra_info>\d{3,4}p) # Source_Quality_Etc- |
|
|
[ ._-]+\[(?P<extra_info>\d{3,4}p) # Source_Quality_Etc- |
|
@ -271,7 +285,7 @@ anime_regexes = {'anime':[ |
|
|
^(\[(?P<release_group>.+?)\][ ._-]*)? # Release Group and separator |
|
|
^(\[(?P<release_group>.+?)\][ ._-]*)? # Release Group and separator |
|
|
(?P<series_name>.+?)[ ._]* # Show_Name and separator |
|
|
(?P<series_name>.+?)[ ._]* # Show_Name and separator |
|
|
([ ._-]+-[ ._-]+[A-Z]+[ ._-]+)?[ ._-]+ # funny stuff, this is sooo nuts ! this will kick me in the butt one day |
|
|
([ ._-]+-[ ._-]+[A-Z]+[ ._-]+)?[ ._-]+ # funny stuff, this is sooo nuts ! this will kick me in the butt one day |
|
|
(?P<ep_ab_num>\d{1,3}) # E01 |
|
|
(?P<ep_ab_num>(?!(1080|720)[pi])\d{1,3}) # E01 |
|
|
(-(?P<extra_ab_ep_num>\d{1,3}))? # E02 |
|
|
(-(?P<extra_ab_ep_num>\d{1,3}))? # E02 |
|
|
(v(?P<version>[0-9]))? # version |
|
|
(v(?P<version>[0-9]))? # version |
|
|
([ ._-](\[\w{1,2}\])?\[[a-z][.]?\w{2,4}\])? #codec |
|
|
([ ._-](\[\w{1,2}\])?\[[a-z][.]?\w{2,4}\])? #codec |
|
@ -301,13 +315,14 @@ anime_regexes = {'anime':[ |
|
|
(([. _-]*e|-) # linking e/- char |
|
|
(([. _-]*e|-) # linking e/- char |
|
|
(?P<extra_ep_num>\d+))* # additional E03/etc |
|
|
(?P<extra_ep_num>\d+))* # additional E03/etc |
|
|
([ ._-]{2,}|[ ._]+) # if "-" is used to separate at least something else has to be there(->{2,}) "s16e03-04-313-314" would make sens any way |
|
|
([ ._-]{2,}|[ ._]+) # if "-" is used to separate at least something else has to be there(->{2,}) "s16e03-04-313-314" would make sens any way |
|
|
(?P<ep_ab_num>\d{1,3}) # absolute number |
|
|
(?P<ep_ab_num>(?!(1080|720)[pi])\d{1,3}) # absolute number |
|
|
(-(?P<extra_ab_ep_num>\d{1,3}))? # "-" as separator and anditional absolute number, all optinal |
|
|
(-(?P<extra_ab_ep_num>\d{1,3}))? # "-" as separator and anditional absolute number, all optinal |
|
|
(v(?P<version>[0-9]))? # the version e.g. "v2" |
|
|
(v(?P<version>[0-9]))? # the version e.g. "v2" |
|
|
.*? |
|
|
.*? |
|
|
''' |
|
|
''' |
|
|
|
|
|
|
|
|
), |
|
|
), |
|
|
|
|
|
|
|
|
('anime_and_normal_x', |
|
|
('anime_and_normal_x', |
|
|
# Bleach - s16e03-04 - 313-314 |
|
|
# Bleach - s16e03-04 - 313-314 |
|
|
# Bleach.s16e03-04.313-314 |
|
|
# Bleach.s16e03-04.313-314 |
|
@ -319,7 +334,7 @@ anime_regexes = {'anime':[ |
|
|
(([. _-]*e|-) # linking e/- char |
|
|
(([. _-]*e|-) # linking e/- char |
|
|
(?P<extra_ep_num>\d+))* # additional E03/etc |
|
|
(?P<extra_ep_num>\d+))* # additional E03/etc |
|
|
([ ._-]{2,}|[ ._]+) # if "-" is used to separate at least something else has to be there(->{2,}) "s16e03-04-313-314" would make sens any way |
|
|
([ ._-]{2,}|[ ._]+) # if "-" is used to separate at least something else has to be there(->{2,}) "s16e03-04-313-314" would make sens any way |
|
|
(?P<ep_ab_num>\d{1,3}) # absolute number |
|
|
(?P<ep_ab_num>(?!(1080|720)[pi])\d{1,3}) # absolute number |
|
|
(-(?P<extra_ab_ep_num>\d{1,3}))? # "-" as separator and anditional absolute number, all optinal |
|
|
(-(?P<extra_ab_ep_num>\d{1,3}))? # "-" as separator and anditional absolute number, all optinal |
|
|
(v(?P<version>[0-9]))? # the version e.g. "v2" |
|
|
(v(?P<version>[0-9]))? # the version e.g. "v2" |
|
|
.*? |
|
|
.*? |
|
@ -331,7 +346,7 @@ anime_regexes = {'anime':[ |
|
|
# Bleach - 313-314 - s16e03-04 |
|
|
# Bleach - 313-314 - s16e03-04 |
|
|
''' |
|
|
''' |
|
|
^(?P<series_name>.+?)[ ._-]+ # start of string and series name and non optinal separator |
|
|
^(?P<series_name>.+?)[ ._-]+ # start of string and series name and non optinal separator |
|
|
(?P<ep_ab_num>\d{1,3}) # absolute number |
|
|
(?P<ep_ab_num>(?!(1080|720)[pi])\d{1,3}) # absolute number |
|
|
(-(?P<extra_ab_ep_num>\d{1,3}))? # "-" as separator and anditional absolute number, all optinal |
|
|
(-(?P<extra_ab_ep_num>\d{1,3}))? # "-" as separator and anditional absolute number, all optinal |
|
|
(v(?P<version>[0-9]))? # the version e.g. "v2" |
|
|
(v(?P<version>[0-9]))? # the version e.g. "v2" |
|
|
([ ._-]{2,}|[ ._]+) # if "-" is used to separate at least something else has to be there(->{2,}) "s16e03-04-313-314" would make sens any way |
|
|
([ ._-]{2,}|[ ._]+) # if "-" is used to separate at least something else has to be there(->{2,}) "s16e03-04-313-314" would make sens any way |
|
@ -346,7 +361,7 @@ anime_regexes = {'anime':[ |
|
|
('anime_and_normal_front', |
|
|
('anime_and_normal_front', |
|
|
# 165.Naruto Shippuuden.s08e014 |
|
|
# 165.Naruto Shippuuden.s08e014 |
|
|
''' |
|
|
''' |
|
|
^(?P<ep_ab_num>\d{1,3}) # start of string and absolute number |
|
|
^(?P<ep_ab_num>(?!(1080|720)[pi])\d{1,3}) # start of string and absolute number |
|
|
(-(?P<extra_ab_ep_num>\d{1,3}))? # "-" as separator and anditional absolute number, all optinal |
|
|
(-(?P<extra_ab_ep_num>\d{1,3}))? # "-" as separator and anditional absolute number, all optinal |
|
|
(v(?P<version>[0-9]))?[ ._-]+ # the version e.g. "v2" |
|
|
(v(?P<version>[0-9]))?[ ._-]+ # the version e.g. "v2" |
|
|
(?P<series_name>.+?)[ ._-]+ |
|
|
(?P<series_name>.+?)[ ._-]+ |
|
@ -357,18 +372,19 @@ anime_regexes = {'anime':[ |
|
|
.*? |
|
|
.*? |
|
|
''' |
|
|
''' |
|
|
), |
|
|
), |
|
|
|
|
|
|
|
|
('anime_ep_name', |
|
|
('anime_ep_name', |
|
|
""" |
|
|
''' |
|
|
^(?:\[(?P<release_group>.+?)\][ ._-]*) |
|
|
^(?:\[(?P<release_group>.+?)\][ ._-]*) |
|
|
(?P<series_name>.+?)[ ._-]+ |
|
|
(?P<series_name>.+?)[ ._-]+ |
|
|
(?P<ep_ab_num>\d{1,3}) |
|
|
(?P<ep_ab_num>(?!(1080|720)[pi])\d{1,3}) |
|
|
(-(?P<extra_ab_ep_num>\d{1,3}))?[ ._-]*? |
|
|
(-(?P<extra_ab_ep_num>\d{1,3}))?[ ._-]*? |
|
|
(?:v(?P<version>[0-9])[ ._-]+?)? |
|
|
(?:v(?P<version>[0-9])[ ._-]+?)? |
|
|
(?:.+?[ ._-]+?)? |
|
|
(?:.+?[ ._-]+?)? |
|
|
\[(?P<extra_info>\w+)\][ ._-]? |
|
|
\[(?P<extra_info>\w+)\][ ._-]? |
|
|
(?:\[(?P<crc>\w{8})\])? |
|
|
(?:\[(?P<crc>\w{8})\])? |
|
|
.*? |
|
|
.*? |
|
|
""" |
|
|
''' |
|
|
), |
|
|
), |
|
|
|
|
|
|
|
|
('anime_bare', |
|
|
('anime_bare', |
|
@ -377,7 +393,7 @@ anime_regexes = {'anime':[ |
|
|
''' |
|
|
''' |
|
|
^(\[(?P<release_group>.+?)\][ ._-]*)? |
|
|
^(\[(?P<release_group>.+?)\][ ._-]*)? |
|
|
(?P<series_name>.+?)[ ._-]+ # Show_Name and separator |
|
|
(?P<series_name>.+?)[ ._-]+ # Show_Name and separator |
|
|
(?P<ep_ab_num>\d{3}) # E01 |
|
|
(?P<ep_ab_num>(?!(1080|720)[pi])\d{1,3}) # E01 |
|
|
(-(?P<extra_ab_ep_num>\d{3}))? # E02 |
|
|
(-(?P<extra_ab_ep_num>\d{3}))? # E02 |
|
|
(v(?P<version>[0-9]))? # v2 |
|
|
(v(?P<version>[0-9]))? # v2 |
|
|
.*? # Separator and EOL |
|
|
.*? # Separator and EOL |
|
|