jwray
May 20, 2009, 4:45am
1
Hi,
Making progress on my plugin but hitting a snag that looks (to the naive eye) like it’s something to do with images and caching.
I’m creating a list of directory items by, in a loop, calling
dir.Append(Function(DirectoryItem(Channel, title=title), breadcrumb=title, url=url))
which works fine. However, when I attempt to add a thumbnail image to the item with
dir.Append(Function(DirectoryItem(Channel, title=title, thumb=thumb), breadcrumb=title, url=url))
where thumb is a url to an image on the web site I’m parsing.
I’m seeing a couple of odd things:
First, all my directory items have the same image, rather than their specific thumb. The parsed urls are different.
If I remove the thumb=thumb to attempt to remove the thumbnail the image remains in the info list.
Again, I’m sure it’s something obvious so pointers would be great.
Also, I can’t get rid of the background art I tried once by specifying in the AddPrefixHandler. Similar issue/misunderstanding?
thanks
Jonny
elan
May 20, 2009, 7:33am
2
First, all my directory items have the same image, rather than their specific thumb. The parsed urls are different.
The thumbs are computed and stored based on the URL of the each item itself (the key) rather than the thumb URLs themselves. It's possible that you had incorrect data and they got cached incorrectly. Try clearing out ~/Library/Application Support/Plex/userdata/Thumbnails/Video (assuming it's a video plug-in) and restart Plex.
If I remove the thumb=thumb to attempt to remove the thumbnail the image remains in the info list.
That points to it having been incorrectly cached.
It could be, yeah; the backgrounds live in the ...thumbnails/Programs/Fanart directory, you can clear them out.
Sorry for the trouble :)
jwray
May 20, 2009, 3:33pm
3
Thanks for the reply. Not so much trouble as me not understanding the caching mechanism or how to clear it out. That should be enough to get me over this hump.
Thanks,
Jonny.
The thumbs are computed and stored based on the URL of the each item itself (the key) rather than the thumb URLs themselves. It’s possible that you had incorrect data and they got cached incorrectly. Try clearing out ~/Library/Application Support/Plex/userdata/Thumbnails/Video (assuming it’s a video plug-in) and restart Plex.
That points to it having been incorrectly cached.
It could be, yeah; the backgrounds live in the …thumbnails/Programs/Fanart directory, you can clear them out.
Sorry for the trouble
system
Closed
December 20, 2019, 8:26pm
4
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.