EDIT: Solved, got it working 100% now.
Ok so, I'm new to plex and python but I'm developing a channel for my website. Everything is running smooth and no errors. I can pull the images from my site and see them no problem in the web interface and any plex app that I use. But, when it comes to any dlna client be it windows itself, xbox 360/one etc. The images will not appear.
This is the error that always appear in the DLNA log when I go into where the photos should appear: ERROR - Unable to find title for item of type 7
I get no errors in my plugin log when accessing via DLNA just the error in the DLNA server log.
Is there not a way to view photos from channels over DLNA, or am I doing something wrong here. This is the code I have that adds the photo:
def getImage(requesturl,title):
Log("Requesting images from category: " + title)
try:
body = urllib2.urlopen(
urllib2.Request(
requesturl)
).read()
except urllib2.HTTPError, e:
return "Error reading from website", {}
except urllib2.URLError, e:
return e.reason[1], {}
result = JSON.ObjectFromString(body)
oc = MediaContainer(title2=title,viewGroup="ImageStream")
for i in result:
imageUrl = BASE_URL + i['url']
description = i["desc"]
oc.Append(PhotoItem(imageUrl, i['title'], subtitle='', thumb=imageUrl, summary=description))
return oc
The target audience for my plugin and website will need the DLNA to work and not so much through the plex apps. I've tried looking at some other photo channels as well but they all do the same thing, they work in apps/web interface but not DLNA.
Any help would be appreciated.
EDIT: I've managed to do away with the "ERROR - Unable to find title for item of type 7" error, it was a typo in the web server file that wasn't ffeding it a proper title. But I'm still unable to get them to be visible under DLNA. This is what the log says now:
Nov 29, 2014 06:55:51 [0x809aee000] WARN - Unable to make media decision for item http://www.mysite.com/uploads/1417250765-oGVqV0O.jpg
Nov 29, 2014 06:55:51 [0x809aee000] WARN - generateForContainer - unable to generate DLNA items for item http://www.mysite.com/uploads/1417250765-oGVqV0O.jpg