mirror of
https://github.com/hyugogirubato/cbz.git
synced 2026-09-26 13:31:00 +00:00
New information fields in the XML
This commit is contained in:
+16
-8
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user