Exemple #1
0
 def _generate_cache(manga_list):
     process_list = []
     for manga in manga_list:
         if not manga.cover:
             logger.warning('manga {} has no cover'.format(manga.id))
             continue
         process_list.append((manga.cover.path, ImageKeyType.MANGA_COVER, manga.id))
     process_image_list(process_list)
Exemple #2
0
 def _generate_cache(manga_page_list):
     process_list = []
     for mp in manga_page_list:
         if not mp.image:
             logger.warning('manga page {} has no image'.format(mp.id))
             continue
         image_key_type = mp.double and ImageKeyType.MANGA_PAGE_DOUBLE or ImageKeyType.MANGA_PAGE
         process_list.append((mp.image.path, image_key_type, mp.id))
         process_list.append((mp.image.path, ImageKeyType.MANGA_THUMB, mp.id))
     process_image_list(process_list)