I am currently working on a plugin/channel. When populating a directoryobject I am trying to use an image that via the SMB share. The image/thumb never shows up. Is this supported or am I doing it wrong. Below is a sample format of what I have it do. The object builds fine and functions as designed. I just can't get it to pull the thumb image from a smb share.
Will not use SMB as I don't think Plex will work with it. My only other option would be UNC paths. Is there a way to pass unc paths for the thumb images and fanart?
For the thumb image I pass file://server/public/images/image.png and it works on the Server. When the channel is accessed from a client it makes the request look like :
This returns a 404 error obviously but when it is accessed from the server it makes a call like this:
file://server/Users/Public/images/image.png
and this works. I can access it from the client with the above path so my question is, what triggers plex to add http://127.0.0.1:32400/ in front when accessed from the client? Can this be removed or triggered to not happen?
Even when the URL wouldn't include the 127.0.0.1 part, it still wouldn't work, because file:// always refers to the a local resource and the image is not available on the clients. For thumbs, the only way to get it working is to have the images available over http.
I have another option but I am not sure if this one is possible. Is it possible to write and delete to the resource folder from within the plugin? If so, I can receive the file via the socket connection I am making to the backend source and feed the images that way.