Ok, so I've got a plugin made that works great. But there's one problem that effects the whole purpose of me creating this plugin.
A little background: the purpose of my plugin is to create a easy way for xbox one owners to change backgrounds of their consoles through my website. I can accomplish this with serviio and a rss feed but it doesn't quite do what I want and the feed to the server doesn't update as quickly as I'd like, Plus plex is way more awesome!
Now, in order to set a background on the console the filesize needs to be less then 3mb. All the images hosted on my site are already less then 3mb but for some reason plex doesn't seem to send to the DLNA client the filesize so the media app (DLNA client) on the xbox one doesn't display the option to set it as the background since it has a unknown file size. Is there anyway to get plex to broadcast the file size, or manually force a filesize for the images. There isn't much documentation about the PhotoObject so I've tried to find what I could but have been left at a dead end.
You can see in the attached image what i mean when I say it doesn't show the filesize. It's a screenshot of the properties from a DLNA image.
Here's my code to show the images:
def GetPhotoDetails(url, title,desc):
oc = ObjectContainer(no_cache=True)
oc.add(PhotoObject(
key = Callback(GetPhotoDetails, url = url, title = title,desc=desc),
rating_key = url,
url = url,
title = title,
summary = title,
thumb = url,
items = [ MediaObject(parts = [ PartObject(key = url) ])]))
return oc