alphabetical leading characters after # for issue
This commit is contained in:
parent
3ce61254dc
commit
71dd1d3972
2
NEWS.md
2
NEWS.md
@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
- Titles are now parsed only if they occur after the series token AND after
|
- Titles are now parsed only if they occur after the series token AND after
|
||||||
either issue, year or volume.
|
either issue, year or volume.
|
||||||
|
- Issue numbers that start with a '#' character may contain alphabetical
|
||||||
|
characters.
|
||||||
|
|
||||||
## v0.1.4
|
## v0.1.4
|
||||||
|
|
||||||
|
@ -41,7 +41,6 @@ ORIGINAL_FORMAT_PATTERNS = (
|
|||||||
|
|
||||||
# CLEAN
|
# CLEAN
|
||||||
NON_SPACE_DIVIDER_RE = re_compile(r"[_\+]")
|
NON_SPACE_DIVIDER_RE = re_compile(r"[_\+]")
|
||||||
DASH_SPLIT_RE = re_compile(r"\s-\s")
|
|
||||||
EXTRA_SPACES_RE = re_compile(r"\s\s+")
|
EXTRA_SPACES_RE = re_compile(r"\s\s+")
|
||||||
|
|
||||||
# PAREN GROUPS
|
# PAREN GROUPS
|
||||||
@ -64,8 +63,9 @@ ORIGINAL_FORMAT_SCAN_INFO_RE = re_compile(
|
|||||||
|
|
||||||
# REGULAR TOKENS
|
# REGULAR TOKENS
|
||||||
VOLUME_RE = re_compile(r"((?:v(?:ol(?:ume)?)?\.?)\s*(?P<volume>\d+))")
|
VOLUME_RE = re_compile(r"((?:v(?:ol(?:ume)?)?\.?)\s*(?P<volume>\d+))")
|
||||||
|
_ISSUE_NUMBER_RE_EXP = r"(?P<issue>[\w½]+\.?\d*\w*)"
|
||||||
|
ISSUE_NUMBER_RE = re_compile(r"(#" + _ISSUE_NUMBER_RE_EXP + r")")
|
||||||
_ISSUE_RE_EXP = r"(?P<issue>[\d½]+\.?\d*\w*)"
|
_ISSUE_RE_EXP = r"(?P<issue>[\d½]+\.?\d*\w*)"
|
||||||
ISSUE_NUMBER_RE = re_compile(r"(#" + _ISSUE_RE_EXP + r")")
|
|
||||||
ISSUE_TOKEN_RE = re_compile(r"^(" + _ISSUE_RE_EXP + r")$")
|
ISSUE_TOKEN_RE = re_compile(r"^(" + _ISSUE_RE_EXP + r")$")
|
||||||
ISSUE_END_RE = re_compile(r"\b(" + _ISSUE_RE_EXP + r")$")
|
ISSUE_END_RE = re_compile(r"\b(" + _ISSUE_RE_EXP + r")$")
|
||||||
ISSUE_BEGIN_RE = re_compile(r"^(" + _ISSUE_RE_EXP + r")\b")
|
ISSUE_BEGIN_RE = re_compile(r"^(" + _ISSUE_RE_EXP + r")\b")
|
||||||
|
@ -251,18 +251,20 @@ FNS.update( # Newly fixed.
|
|||||||
"series": "Batman - Superman - World's Finest",
|
"series": "Batman - Superman - World's Finest",
|
||||||
"year": "2024",
|
"year": "2024",
|
||||||
},
|
},
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
||||||
FNS.update(
|
|
||||||
{
|
|
||||||
# Issue number starting with a letter requested in https://github.com/comictagger/comictagger/issues/543
|
# Issue number starting with a letter requested in https://github.com/comictagger/comictagger/issues/543
|
||||||
"batman #B01 title.cbz": {
|
"batman #B01 title.cbz": {
|
||||||
"ext": "cbz",
|
"ext": "cbz",
|
||||||
"issue": "B01",
|
"issue": "B01",
|
||||||
"series": "batman",
|
"series": "batman",
|
||||||
"title": "title",
|
"title": "title",
|
||||||
}, # Leading issue number is usually an alternate sequence number
|
},
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
FNS.update(
|
||||||
|
{
|
||||||
|
# Leading issue number is usually an alternate sequence number
|
||||||
"52 action comics #2024.cbz": {
|
"52 action comics #2024.cbz": {
|
||||||
"ext": "cbz",
|
"ext": "cbz",
|
||||||
"issue": "2024",
|
"issue": "2024",
|
||||||
|
Loading…
Reference in New Issue
Block a user