Hi there,
I'd like to add content of picture albums to my channel. But I cannot find any objecttype which holds this kind of media. Isn't the channel concept designed to hold pictures as media? Only video and music stuff?
Greets
Sascha
Hi there,
I'd like to add content of picture albums to my channel. But I cannot find any objecttype which holds this kind of media. Isn't the channel concept designed to hold pictures as media? Only video and music stuff?
Greets
Sascha
Try looking at a channel that uses these (and the matching URL service):
https://github.com/plexinc-plugins/AnnaKimPhotography.bundle
Hm, seems that the api documentation of plex is outdated... Within your given plugin an objecttype "PhotoAlbumObject" is used... Nice! Thanks...
Yep there are some things missing. I’ve added this to the document where we are collecting the missing bits that is sticked at the top of this forum. This is why I pointed you at a working Photo channel.
https://forums.plex.tv/topic/87324-missing-from-the-official-plugin-documentation/
Hm, trying to add a PhotoObject with a Callback for an URL. Cannot get it work...
def createPhotoObject(item):
po = PhotoObject(
key = Callback(getPhotoObjectUrl, item = item),
rating_key = item['key'],
title = item['title'],
items = []
)
return po
def getPhotoObjectUrl(item):
# Code to fetch url
return url
Entering a valid url at the key fields shows me the picture, working with a Callback shows the loading spinner in an endless loop.
Any hints?
Hi!
Use Redirect to make that work:
def getPhotoObjectUrl(item): # Code to fetch url return Redirect(url)
*baam* works! :-) Thanks...
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.