I have a lot of different filenames of movies , sometimes recognize correct movie title is not possible.
How can i access to manually predefined title inside class Agent ?
It may be Start or search method.
I have a lot of different filenames of movies , sometimes recognize correct movie title is not possible.
How can i access to manually predefined title inside class Agent ?
It may be Start or search method.
It should be in media.name.
If you're still having trouble, can you give some more details about what you're trying to accomplish?
Why it must be in media.name ?
Can i access to MovieObject from agent using ID ?
ok , i have MyBigMoovie1.avi.
Here`s a part of most meta Agent
def search(self, results, media, lang):
title = media.name
if media.primary_metadata is not None:
title = media.primary_metadata.title
media.name filled "MyBigMoovie1" as result search query using wront title.
In plex interface i fill title of my movie as "My Big Moovie 1"
I just want ability to use manually entered title for a search.
In search(), media.name will have exactly what was entered in the custom search dialog.
What are you trying to do by checking 'primary_metadata' there?
In search(), media.name will have exactly what was entered in the custom search dialog.
What are you trying to do by checking 'primary_metadata' there?
"Custom search dialog" - do you mean web form with metadata of movie ?
I used plex about one day and perhaps it must be video file raw medatada.
Ok as i understand Media Naming Guide it is solution, but i cannot control naming video files/folders without loss torrent.
Okay, sorry, you've lost me.
I thought you were attempting to write a custom agent, but if you're just looking to use embedded metadata, then yes, your best bet is to just use the Local Media Assets in your agent hierarchy.
Okay, sorry, you've lost me.
I thought you were attempting to write a custom agent, but if you're just looking to use embedded metadata, then yes, your best bet is to just use the Local Media Assets in your agent hierarchy.
I lost too :)
By steps :
1. Change the title in the form for already added movie in library http://img160.imagevenue.com/img.php?image=90409_Selection_001_122_114lo.jpg
2. I Use refresh for initiate custom agent
3. My Custom agent using media.name contain string "MyBigMovie" builded by server and based on file/folder (MyBigMovie.avi) instead of using title field in embedded metadata that contains string "My Big Movie".
Class Media
name A string identifying the name of the item, extracted from its’ filename or embedded metadata.
What is priority for filename and embedded metadata ?
Why media.name does not based on embedded metadata ?
P.S.
Library use plex movie scanner and my custom agent
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.