Twoure / KissNetwork.bundle

Plex Channel to view Anime, Asian Drama, Cartoons, Manga & Comics from KissAnime, KissAsian, KissCartoon, KissManga & ReadComicOnline
94 stars 20 forks source link

Cached images for bookmarks never get displayed #24

Closed rmiller14 closed 8 years ago

rmiller14 commented 8 years ago

Hello,

I've added a bunch of anime bookmarks to KissNetwork, and I enabled the option to cache the bookmark covers locally (I left the Cache All Covers Locally option disabled). I've verified that the covers have gotten cached under Contents/Resources, and I can see the entries for those jpgs in the dict ("Plug-in Support/Data/com.plexapp.plugins.kissnetwork"). However, I can't get those covers to show up on any of the Plex web pages; instead they all have the "Caching cover" icon.

I've toggled the settings a bunch and restarted the server a few times in different combinations to try to get it to work, but I haven't had any success. I don't know if it'll be helpful, but here's the log from the initial download. Occasionally, I'll see a few more entries where some threads try to run again, and they successfully detect that the images already exist.

I'm happy to test any intermediate solutions you may have, provided you tell me how :)

Thanks!

2016-08-05 18:01:04,848 (4804) : DEBUG (runtime:1156) - Starting timed thread named 'BackgroundAutoCache' 2016-08-05 18:01:04,849 (4804) : DEBUG (logkit:13) - **** 2016-08-05 18:01:04,849 (4804) : DEBUG (logkit:13) - * Running Background Auto-Cache 2016-08-05 18:01:04,849 (4804) : DEBUG (logkit:13) - * Header Dictionary already found, writing new Headers to old Dictionary 2016-08-05 18:01:04,854 (4804) : DEBUG (logkit:13) - * header dict file location >> 2016-08-05 18:01:04,854 (4804) : DEBUG (logkit:13) - * \AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.plugins.kissnetwork\Header_Dict 2016-08-05 18:01:04,854 (4804) : DEBUG (logkit:13) - * loading header dict in json format 2016-08-05 18:01:04,855 (4804) : DEBUG (logkit:13) - * Time left until Anime cookies need to be updated = 23:36:09 2016-08-05 18:01:04,857 (4804) : DEBUG (logkit:13) - * header dict file location >> 2016-08-05 18:01:04,857 (4804) : DEBUG (logkit:13) - * \AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.plugins.kissnetwork\Header_Dict 2016-08-05 18:01:04,857 (4804) : DEBUG (logkit:13) - * loading header dict in json format 2016-08-05 18:01:04,858 (4804) : DEBUG (logkit:13) - * Time left until Drama cookies need to be updated = 0:21:48 2016-08-05 18:01:04,859 (4804) : DEBUG (logkit:13) - * header dict file location >> 2016-08-05 18:01:04,859 (4804) : DEBUG (logkit:13) - * \AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.plugins.kissnetwork\Header_Dict 2016-08-05 18:01:04,859 (4804) : DEBUG (logkit:13) - * loading header dict in json format 2016-08-05 18:01:04,861 (4804) : DEBUG (logkit:13) - * Time left until Cartoon cookies need to be updated = 5 days, 22:40:34 2016-08-05 18:01:04,862 (4804) : DEBUG (logkit:13) - * header dict file location >> 2016-08-05 18:01:04,862 (4804) : DEBUG (logkit:13) - * \AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.plugins.kissnetwork\Header_Dict 2016-08-05 18:01:04,862 (4804) : DEBUG (logkit:13) - * loading header dict in json format 2016-08-05 18:01:04,864 (4804) : DEBUG (logkit:13) - * Time left until Manga cookies need to be updated = 23:51:53 2016-08-05 18:01:04,865 (4804) : DEBUG (logkit:13) - * header dict file location >> 2016-08-05 18:01:04,865 (4804) : DEBUG (logkit:13) - * \AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.plugins.kissnetwork\Header_Dict 2016-08-05 18:01:04,865 (4804) : DEBUG (logkit:13) - * loading header dict in json format 2016-08-05 18:01:04,867 (4804) : DEBUG (logkit:13) - * Time left until Comic cookies need to be updated = 0:21:59 2016-08-05 18:01:04,867 (4804) : DEBUG (logkit:13) - * All cookies 2016-08-05 18:01:04,867 (4804) : DEBUG (logkit:13) - * header dict file location >> 2016-08-05 18:01:04,867 (4804) : DEBUG (logkit:13) - * \AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.plugins.kissnetwork\Header_Dict 2016-08-05 18:01:04,868 (4804) : DEBUG (logkit:13) - * loading header dict in json format 2016-08-05 18:01:04,868 (4804) : DEBUG (logkit:13) - * {u'Drama': {u'referer': u'http://kissasian.com', u'expire': u'1470446572', u'cookie': u'cf_clearance=422e95e03f614ffeeb2723fa827ba7dd13d58fc4-1470444772-1800; cfduid=df933e3fe4aae3172f61d3eeb34795e141470444766', u'user-agent': u'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36'}, u'Comic': {u'referer': u'http://readcomiconline.to', u'expire': u'1470446583', u'cookie': u'cf_clearance=0124dda05111208449ac0ae0efe2e54a18ef24fc-1470444783-1800; __cfduid=db4edeecb1a5b494f0723db99e0abbd4a1470444778', u'user-agent': u'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36'}, u'Manga': {u'referer': u'http://kissmanga.com', u'expire': u'1470531177', u'cookie': u'cf_clearance=eaab6d609e10c0484eb6af29bc881301c2b74274-1470444777-86400; cfduid=d7d0620775f8a544eae40e8f61672a0c71470444772', u'user-agent': u'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36'}, u'Anime': {u'referer': u'http://kissanime.to', u'expire': u'1470530233', u'cookie': u'cf_clearance=03373967609c43ba2be844960fd59107c95b4a59-1470443833-86400; __cfduid=d1f80ee53d75b641417de2505930d7fe21470443828', u'user-agent': u'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36'}, u'Cartoon': {u'referer': u'http://kisscartoon.me', u'expire': u'1470958898', u'cookie': u'cf_clearance=af8d461fece66068954281d145d79300780b88f9-1470354098-604800; __cfduid=dfdbabb02645c94290ae8bf63b7452b381470354093', u'user-agent': u'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36'}} 2016-08-05 18:01:04,875 (4804) : INFO (datakit:131) - Saved the dictionary file 2016-08-05 18:01:04,875 (4804) : DEBUG (logkit:13) - **** 2016-08-05 18:01:04,875 (4804) : INFO (logkit:16) - Dict['s_opt'] = 2016-08-05 18:01:04,881 (4804) : INFO (datakit:131) - Saved the dictionary file 2016-08-05 18:01:04,881 (4804) : DEBUG (runtime:1117) - Created a thread named 'CacheCovers' 2016-08-05 18:01:04,881 (2f38) : DEBUG (logkit:13) - **** 2016-08-05 18:01:04,885 (2f38) : DEBUG (runtime:1117) - Created a thread named 'SaveCoverImage' 2016-08-05 18:01:04,888 (404c) : DEBUG (logkit:13) - image file path = \AppData\Local\Plex Media Server\Plug-ins\KissNetwork.bundle\Contents\Resources\51415554514521l.jpg 2016-08-05 18:01:04,888 (2f38) : DEBUG (runtime:1117) - Created a thread named 'SaveCoverImage' 2016-08-05 18:01:04,892 (404c) : DEBUG (logkit:13) - * header dict file location >> 2016-08-05 18:01:04,892 (47d8) : DEBUG (logkit:13) - image file path = \AppData\Local\Plex Media Server\Plug-ins\KissNetwork.bundle\Contents\Resources\52253654572690.jpg 2016-08-05 18:01:04,894 (404c) : DEBUG (logkit:13) - * \AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.plugins.kissnetwork\Header_Dict 2016-08-05 18:01:04,894 (2f38) : DEBUG (runtime:1117) - Created a thread named 'SaveCoverImage' 2016-08-05 18:01:04,894 (404c) : DEBUG (logkit:13) - * loading header dict in json format 2016-08-05 18:01:04,897 (404c) : DEBUG (logkit:13) - * Time left until Anime cookies need to be updated = 23:36:09 2016-08-05 18:01:04,901 (47d8) : DEBUG (logkit:13) - * header dict file location >> 2016-08-05 18:01:04,903 (3fe0) : DEBUG (logkit:13) - image file path = \AppData\Local\Plex Media Server\Plug-ins\KissNetwork.bundle\Contents\Resources\4611155458710l.jpg 2016-08-05 18:01:04,905 (47d8) : DEBUG (logkit:13) - * \AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.plugins.kissnetwork\Header_Dict 2016-08-05 18:01:04,907 (2f38) : DEBUG (runtime:1117) - Created a thread named 'SaveCoverImage' 2016-08-05 18:01:04,907 (47d8) : DEBUG (logkit:13) - * loading header dict in json format 2016-08-05 18:01:04,913 (47d8) : DEBUG (logkit:13) - * Time left until Anime cookies need to be updated = 23:36:09 2016-08-05 18:01:04,917 (3fe0) : DEBUG (logkit:13) - * header dict file location >> 2016-08-05 18:01:04,917 (398c) : DEBUG (logkit:13) - image file path = \AppData\Local\Plex Media Server\Plug-ins\KissNetwork.bundle\Contents\Resources\449345149743l.jpg 2016-08-05 18:01:04,917 (2f38) : DEBUG (runtime:1117) - Created a thread named 'SaveCoverImage' 2016-08-05 18:01:04,917 (3fe0) : DEBUG (logkit:13) - * \AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.plugins.kissnetwork\Header_Dict 2016-08-05 18:01:04,920 (3fe0) : DEBUG (logkit:13) - * loading header dict in json format 2016-08-05 18:01:04,923 (3fe0) : DEBUG (logkit:13) - * Time left until Anime cookies need to be updated = 23:36:09 ......... 2016-08-05 18:01:05,188 (3c94) : DEBUG (logkit:13) - * header dict file location >> 2016-08-05 18:01:05,190 (3c94) : DEBUG (logkit:13) - * \AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.plugins.kissnetwork\Header_Dict 2016-08-05 18:01:05,190 (3a0c) : DEBUG (logkit:13) - image file path = \AppData\Local\Plex Media Server\Plug-ins\KissNetwork.bundle\Contents\Resources\4492023ram.jpg 2016-08-05 18:01:05,190 (3c94) : DEBUG (logkit:13) - * loading header dict in json format 2016-08-05 18:01:05,191 (2f38) : DEBUG (runtime:1117) - Created a thread named 'SaveCoverImage' 2016-08-05 18:01:05,191 (44a4) : DEBUG (logkit:13) - * saved image 982251430699l.jpg 2016-08-05 18:01:05,194 (3c94) : DEBUG (logkit:13) - * Time left until Anime cookies need to be updated = 23:36:08 2016-08-05 18:01:05,194 (2f38) : INFO (logkit:16) - * Loaded 0 Bookmark Covers from cache 2016-08-05 18:01:05,196 (2f38) : DEBUG (logkit:13) - **** 2016-08-05 18:01:05,197 (3a0c) : DEBUG (logkit:13) - * header dict file location >> 2016-08-05 18:01:05,198 (14a8) : DEBUG (logkit:13) - image file path = \AppData\Local\Plex Media Server\Plug-ins\KissNetwork.bundle\Contents\Resources\27703224553Rick-and-Morty.jpg 2016-08-05 18:01:05,198 (3a0c) : DEBUG (logkit:13) - * \AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.plugins.kissnetwork\Header_Dict 2016-08-05 18:01:05,200 (3a0c) : DEBUG (logkit:13) - * loading header dict in json format 2016-08-05 18:01:05,203 (3a0c) : DEBUG (logkit:13) - * Time left until Cartoon cookies need to be updated = 5 days, 22:40:33 2016-08-05 18:01:05,203 (4494) : DEBUG (logkit:13) - * saved image 59190354554267l.jpg 2016-08-05 18:01:05,204 (14a8) : DEBUG (logkit:13) - * header dict file location >> 2016-08-05 18:01:05,206 (14a8) : DEBUG (logkit:13) - * \AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.plugins.kissnetwork\Header_Dict 2016-08-05 18:01:05,207 (14a8) : DEBUG (logkit:13) - * loading header dict in json format 2016-08-05 18:01:05,207 (14a8) : DEBUG (logkit:13) - * Time left until Cartoon cookies need to be updated = 5 days, 22:40:33 2016-08-05 18:01:05,213 (2ea0) : DEBUG (logkit:13) - * saved image 80971554568097l.jpg 2016-08-05 18:01:05,214 (2f38) : INFO (datakit:131) - Saved the dictionary file 2016-08-05 18:01:05,220 (23ac) : DEBUG (logkit:13) - * saved image 8029621437573.jpg 2016-08-05 18:01:05,226 (34ec) : DEBUG (logkit:13) - * saved image 476181413225l.jpg 2016-08-05 18:01:05,236 (261c) : DEBUG (logkit:13) - * saved image 6638021414333l.jpg 2016-08-05 18:01:05,243 (3c94) : DEBUG (logkit:13) - * saved image 365894545160005.jpg 2016-08-05 18:01:05,272 (3a0c) : DEBUG (logkit:13) - * saved image 4492023ram.jpg 2016-08-05 18:01:05,272 (14a8) : DEBUG (logkit:13) - * saved image 27703224553Rick-and-Morty.jpg 2016-08-05 18:01:05,414 (41e8) : DEBUG (logkit:13) - * saved image 96179954556607l.jpg 2016-08-05 18:01:05,456 (5d4) : DEBUG (logkit:13) - * saved image 9500951419870l.jpg 2016-08-05 18:01:05,526 (3764) : DEBUG (logkit:13) - * saved image 93043454515142l.jpg 2016-08-05 18:01:05,697 (321c) : DEBUG (logkit:13) - * saved image 33697054563993l.jpg 2016-08-05 18:01:05,747 (4ac4) : DEBUG (logkit:13) - * saved image 6504281424096l.jpg 2016-08-05 18:01:05,815 (2ffc) : DEBUG (runtime:717) - Handling request GET /video/kissnetwork 2016-08-05 18:01:05,815 (2ffc) : DEBUG (runtime:814) - Found route matching /video/kissnetwork 2016-08-05 18:01:05,815 (2ffc) : DEBUG (logkit:13) - **** 2016-08-05 18:01:05,815 (2ffc) : DEBUG (logkit:13) - * Client.Product = Plex Web 2016-08-05 18:01:05,816 (2ffc) : DEBUG (logkit:13) - * Client.Platform = Chrome 2016-08-05 18:01:05,816 (2ffc) : DEBUG (logkit:13) - * Client.Version = 2.7.4 2016-08-05 18:01:05,816 (2ffc) : DEBUG (logkit:13) - * CFTest Previously Passed, not running again. 2016-08-05 18:01:05,816 (2ffc) : DEBUG (logkit:13) - **** 2016-08-05 18:01:05,816 (2ffc) : DEBUG (logkit:13) - * Checking if user is Admin 2016-08-05 18:01:05,816 (2ffc) : DEBUG (logkit:13) - * Auth URL = http://127.0.0.1:32400/myplex/account 2016-08-05 18:01:05,816 (2ffc) : ERROR (logkit:22) - * NO Plex Token available for validation 2016-08-05 18:01:05,818 (2ffc) : DEBUG (logkit:13) - * Assuming current user is Admin 2016-08-05 18:01:05,818 (2ffc) : DEBUG (logkit:13) - **** 2016-08-05 18:01:05,825 (2ffc) : INFO (datakit:131) - Saved the dictionary file ...........

Twoure commented 8 years ago

Next release will no longer have options to choose cover caching. Instead I've found a better way to handle covers and URL caching. You may try the dev branch (dev zip download link) and see how it goes. I've not fully tested the code for upgrade compatibility from v1.2.4 yet, so there may be some bugs. Hopefully next week, or the one after, I'll be finished with the next release and workout any upgrade bugs.

Before trying the dev branch, I suggest you backup your bookmarks with the channel's Bookmark Tools.

For future reference, please upload logs as an attachment or host them somewhere else and provide a link.

rmiller14 commented 8 years ago

Sure, will do in the future (that was my first post). I'll try out the dev branch and let you know what issues I have if any come up.

rmiller14 commented 8 years ago

The zip from the dev branch that you linked did the trick. Thanks for your time!