PhotoObject crashing in Plex on Amazon Fire

For some reason when I click on a photo, it just crashes the system.

I have version 4.5.9.372.

The photo object is setup like this:

po = PhotoObject(
     key =  Callback(PhotoLookup, id = obj['_id']),
     rating_key = obj['_id'], 
     title = obj['name'],
     thumb = API + 'view/thumb/' + obj['_id']
 )

def PhotoLookup(id):
  url = API + 'view/thumb/' + id + '/940'
  return Redirect(url)

Any ideas if I’m doing something wrong here?

Thanks

Another thing I noticed is that if only 1 image is available, it’s saying 2 of 2, but there’s no other photo. I’ve added in logs and the PhotoObject is only getting instantiated one time…

EDIT: Just to update, this ‘2 or 2’ only seems to appear on the second instantiation of an ObjectContainer, in other words, within a folder.

Looks like it’s not isolated to my code, the dropbox plugin (https://github.com/realriot/Dropbox.bundle) is doing it for me also, when I click on an image, crashes.

@dmstv said:
For some reason when I click on a photo, it just crashes the system.

I have version 4.5.9.372.

The photo object is setup like this:

po = PhotoObject(
     key =  Callback(PhotoLookup, id = obj['_id']),
     rating_key = obj['_id'], 
     title = obj['name'],
     thumb = API + 'view/thumb/' + obj['_id']
 )

def PhotoLookup(id):
  url = API + 'view/thumb/' + id + '/940'
  return Redirect(url)

Any ideas if I’m doing something wrong here?

Thanks

Have you tried removing the Callback, i.e. "key = API + ‘view/thumb/’ + id + ‘/940’

If that doesn’t work, try adding the photos to a PhotoAlbumObject

https://github.com/plexinc-plugins/Services.bundle/blob/master/Contents/Service%20Sets/com.plexapp.plugins.internetarchive/URL/Internet%20Archive/ServiceCode.pys#L122

https://github.com/plexinc-plugins/Services.bundle/blob/master/Contents/Service%20Sets/com.plexapp.plugins.internetarchive/URL/Internet%20Archive/ServiceCode.pys#L308

Thanks, Yeah I tried using the url directly as the key, same thing. I’ll try the PhotoAlbumObject and post back.