DLNA and photos from a web source

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
 

BUMP Anybody with a solution?

Been almost a month since i asked about this and I'm still struggling to find anything. So I'm bumping it again as I'm still looking for a answer to this.

EDIT: I finally found a plugin with a working example and my images now show up in the dlna client :)

Another edit, While I've gotten my images to show up in the DLNA clients selecting them does nothing. On windows I get unsupported file type and on the xbox just a blank screen.

The plex log states this: 

Dec 20, 2014 11:21:38 [0x80973ec00] DEBUG - Mapped client to generic profile: Accept: */*; User-Agent: NSPlayer/12.00.9879.0000 WMFSDK/12.00.9879.0000; Icy-Metadata: 1; UA-CPU: AMD64; Accept-Encoding: gzip, deflate; Host: 192.168.1.5:32469; Connection: Keep-Alive
Dec 20, 2014 11:21:38 [0x80973ec00] DEBUG - Mapped object 76e59cba9bbc2e2b1d07 to /photos/myplugin/photoUrl?url=http%3A%2F%2Fwww.mysite.com%2Fuploads%2F1416930589-NW7PsD3.png part 0 on server 
Dec 20, 2014 11:21:38 [0x80973ec00] ERROR - ProcessFileRequest - unable to get container for path /photos/myplugin/photoUrl?url=http%3A%2F%2Fwww.mysite.com%2Fuploads%2F1416930589-NW7PsD3.png
 

And my new code is as follows:

        for i in result['images']:
            imageUrl = BASE_URL + i['url']
            description = i["desc"]
            oc.add(PhotoObject(
                key = Callback(getPhotoObjectUrl, url = imageUrl),
                rating_key = imageUrl,
                url = imageUrl,
                title = i["title"],
                summary = description,
                thumb = imageUrl,
                items = [ MediaObject(parts = [ PartObject(key = imageUrl) ]) ]))
        return oc

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