forked from mirrors/cbz
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),
|
||||
'review': ('Review', str),
|
||||
'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 = {
|
||||
'type': ('Type', PageType),
|
||||
'double': ('DoublePage', bool),
|
||||
'key': ('Key', str),
|
||||
'bookmark': ('Bookmark', str),
|
||||
'image_size': ('ImageSize', int),
|
||||
'image_width': ('ImageWidth', int),
|
||||
'image_height': ('ImageHeight', int)
|
||||
'image': ('@Image', int),
|
||||
'type': ('@Type', PageType),
|
||||
'double': ('@DoublePage', bool),
|
||||
'key': ('@Key', str),
|
||||
'bookmark': ('@Bookmark', str),
|
||||
'image_size': ('@ImageSize', int),
|
||||
'image_width': ('@ImageWidth', int),
|
||||
'image_height': ('@ImageHeight', int)
|
||||
}
|
||||
|
||||
@@ -102,6 +102,13 @@ class ComicModel(BaseModel):
|
||||
review: str
|
||||
language_iso: LanguageISO
|
||||
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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user