-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an actor to a movie/video with role and thumb #462
Comments
You and me both. Creating an actor also creates the actor in the DB where I assume you could add the missing thumb and role but I haven't tried that yet. I'd prefer to do it all with API commands. |
@JonnyWong16 found how to add a thumb. edits = {
'actor[0].tag.tag': 'Mom',
'actor[0].locked': 1,
'actor[0].tag.thumb': 'https://nickelodeonuniverse.com/wp-content/uploads/Spongebob.png'
}
movie = plex.library.section('Movies').get('Title')
movie.edit(**edits) Still trying to find role. |
Need a addActor or add additional kwargs if it already exists. |
Imo we should support objects. So Role.create() and allow that to be passed to edit that serialize this to a url. |
Agreed. |
While you're at it, there's a bug if you use |
It only retrieves 3 as this only what re xml includes. If we want more the user has to movie.reload() is the fourth item overwritten? |
From my tests it looks like it's inserted and not overwritten. Needs more testing though. |
@Hellowlol I don't think we can use the Some findings in case they are relevant: Actor's thumb follows the name of the actor across libraries and videos. |
Refreshing an item removes all added actors from the item. This makes sense for known movies and shows where metadata is available as refreshing wipes the previous metadata values and updates. However, for Home Videos adding an actor named |
It shouldn’t be deleted as long as the item is locked. |
Locked attribute doesn't exist for the tag/field and adding the usual locked str doesn't make a difference. I've created a Plex Feature Request. But I'm not sure that we are really supposed to be allowed to edit actors like this. |
With |
So far I have created a little script to add an specific actor to a search result:
It work's fine. An actor appears on that particular video(s) in the collection.
Now, I just don't want to add the actor, I also want to add the role and a thumb (photo URL), but so far I could not find anything in the documentation and in the source code. (might be it's quite late and I am tired), but I would be thankful if someone could help me with it or make it possible.
The text was updated successfully, but these errors were encountered: