update bots

This commit is contained in:
2026-05-18 14:15:59 +07:00
parent b0ce866a2f
commit b9054d178e
5775 changed files with 832577 additions and 38 deletions

View File

@@ -0,0 +1,35 @@
from .. import Provider as ISBNProvider
class Provider(ISBNProvider):
rules = {
# EAN prefix
"978": {
# Registration group
"0": [
# Registrant rule (min, max, registrant length)
("0000000", "1999999", 2),
("2000000", "2279999", 3),
("2280000", "2289999", 4),
("2290000", "6479999", 3),
("6480000", "6489999", 7),
("6490000", "6999999", 3),
("7000000", "8499999", 4),
("8500000", "8999999", 5),
("9000000", "9499999", 6),
("9500000", "9999999", 7),
],
"1": [
("0000000", "0999999", 2),
("1000000", "3999999", 3),
("4000000", "5499999", 4),
("5500000", "7319999", 5),
("7320000", "7399999", 7),
("7400000", "8697999", 5),
("8698000", "9729999", 6),
("9730000", "9877999", 4),
("9878000", "9989999", 6),
("9990000", "9999999", 7),
],
},
}