MediaContainer Art and Plugin Icon

Hello,



I’m having some trouble with my plugin’s background art and default icon.



I Currently use this code (Framework v1)



def Start():

Plugin.AddPrefixHandler(PLUGIN_PREFIX, TopMenu, “Web Gallery Of Art”, “icon-default.png”, “art-default.jpg”)

Plugin.AddViewGroup(“Details”, viewMode=“InfoList”, mediaType=“items”)

MediaContainer.title1 = “Web Gallery Of Art”

MediaContainer.content = “Items”

MediaContainer.art = R(“art-default.jpg”)



But it doesn’t show up. While the icon shows up, it’s the older version and the default art doesn’t show up at all.

In my menu functions I make simple calls to dir = MediaContainer("")

Maybe I should not set the art in Start and instead define each menu function?



Any thoughts?



Thanks in advance



JP

I can’t see anything wrong with the code you’ve posted - it should be working. I assume the filename’s correct? (The thumb is a PNG file whereas the art is a JPEG). If you zip & upload the plug-in bundle I’ll take a closer look at it.



The problem with the thumbnail not changing is due to limitations in Plex - the image is stored in Plex’s thumbnail cache when the plug-in is first accessed, and retrieved from the cache when it’s needed again rather than being requested from the plug-in. There’s currently no way of telling Plex to expire the cached image. This will be fixed in a future version; at the moment you need to hunt down the thumbnail within the cache folder & delete it manually (far from ideal, we know - we’re working on it :)).

Thanks Jam!



Here’s the http://cloud.github.com/downloads/jdevoo/W…bundle-0.2.zip I passed to Isaac.



I have tried wiping the programs folder under thumbnails without luck. I could wipe the whole thing but then I have to redo my movies and all…



I had updated the art and the icon on the second release along with some other requests.



In any case, it’s fun to contribute to this project which has tremendous educational potential.


This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.