If you have not already, we suggest setting your Plex username to something else rather than email which is displayed on your posts in forum. You can change the username at https://app.plex.tv/desktop#!/account
Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

dir.AppendItem LINK to picture on the net

rniornio Posts: 162Members
edited April 2009 in Channel Plugin Development
Quick Q:

I wanto add DIR-ITEMS not using "hard-coded" thumbs located in the plug-in resource directory ... but rather from another web page.
The pictures are likely to change and thus the need / request for this.


In Apple Trailer Plug-In there is a STATIC version of this:

dir.AppendItem(DirectoryItem("just_hd", "Just HD", Plugin.ExposedResourcePath("thumb-just_hd.png")))

I would rather use something like this:

dir.AppendItem(DirectoryItem("just_hd", "Just HD", "htttp://www.testsite.com/thumb-just_hd.png")))

Any ideas?



And the ANSWER is ... very simple :-)

Just add the complete URL as the third parameter when adding new items to the Media container:

dir.AppendItem(DirectoryItem("just_hd", "Just HD", "htttp://www.testsite.com/thumb-just_hd.png")))
Sign In or Register to comment.