New information fields in the XML

This commit is contained in:
hyugogirubato
2024-07-18 22:10:26 +02:00
parent 04b77d5ff9
commit 188b2e0164
2 changed files with 23 additions and 8 deletions
+16 -8
View File
@@ -169,15 +169,23 @@ COMIC_FIELDS = {
'main_character_or_team': ('MainCharacterOrTeam', str), 'main_character_or_team': ('MainCharacterOrTeam', str),
'review': ('Review', str), 'review': ('Review', str),
'language_iso': ('LanguageISO', LanguageISO), 'language_iso': ('LanguageISO', LanguageISO),
'community_rating': ('CommunityRating', Rating) 'community_rating': ('CommunityRating', Rating),
'added': ('Added', str),
'released': ('Released', str),
'file_size': ('FileSize', int),
'file_modified_time': ('FileModifiedTime', str),
'file_creation_time': ('FileCreationTime', str),
'book_price': ('BookPrice', str),
'custom_values_store': ('CustomValuesStore', str)
} }
PAGE_FIELDS = { PAGE_FIELDS = {
'type': ('Type', PageType), 'image': ('@Image', int),
'double': ('DoublePage', bool), 'type': ('@Type', PageType),
'key': ('Key', str), 'double': ('@DoublePage', bool),
'bookmark': ('Bookmark', str), 'key': ('@Key', str),
'image_size': ('ImageSize', int), 'bookmark': ('@Bookmark', str),
'image_width': ('ImageWidth', int), 'image_size': ('@ImageSize', int),
'image_height': ('ImageHeight', int) 'image_width': ('@ImageWidth', int),
'image_height': ('@ImageHeight', int)
} }
+7
View File
@@ -102,6 +102,13 @@ class ComicModel(BaseModel):
review: str review: str
language_iso: LanguageISO language_iso: LanguageISO
community_rating: Rating community_rating: Rating
added: str
released: str
file_size: int
file_modified_time: str
file_creation_time: str
book_price: str
custom_values_store: str
def __init__(self, **kwargs): def __init__(self, **kwargs):
""" """