dependabot[bot] on npm_and_yarn
Bump file-type from 16.5.2 to 1… (compare)
twiddli on dev
implement download queue ui; add collections; notifications; grouping; improv… and 26 more (compare)
twiddli on dev
implement page navigation; add … add reader end content; minor f… add states; and 28 more (compare)
import __hpx__ as hpx
GalleryProgress = hpx.command.GetDatabaseModel("GalleryProgress")
def update_gallery_progress(gallery, page = "last"):
"""
Update a GalleryProgress
Args:
gallery: gallery object
page: "first", "last" or int
"""
gallery_id = gallery.id
page_id = gallery.last_page.id
if page == 'first':
page_id = gallery.first_page.id
elif isinstance(page, int):
page_id = gallery.pages[page].id
GalleryProgress.update_progress(gallery_id, page_id)
sorry, I haven't tested it, but this should work
Jan-01 01:47:43--INFO [plugin].context.file-metadata.main: Attempting with DataType.eze
Jan-01 01:47:43--INFO [plugin].context.file-metadata.main: DataType.eze matched!
Jan-01 01:47:43--WARNING [plugin].context.file-metadata: An unhandled exception 'AttributeError' was raised by plugin handler on command 'GalleryFS.parse_metadata_file'
Jan-01 01:47:43--WARNING [plugin].context.file-metadata: An unhandled exception 'AttributeError' was raised by plugin handler on command 'GalleryFS.parse_metadata_file' by file-metadata:e38e24e4...c75510097653
if data.get('times_read'):
gdata.times_read = SetValue(data['times_read'])
log.debug("applied times_read")
if data['times_read'] > 0:
gallery_id = gallery.id
page_id = gallery.last_page.id
GalleryProgress.update_progress(gallery_id, page_id)
error.log
@twiddli The message I sent here contains the whole plugin.log file, do you want some other log as well?