Agent not showing in list

I’m trying to build a more complete photo agent. I did the info.plist file and the init.py files, copied them to the \AppData\Local\Plex Media Server\Plug-ins\ folder and restarted the PMS but when I look at the Agents list in preferences, I can’t see it.



For now, I simply recopied code from the actual photo agent.



Here is the code

info.plist


<?xml version="1.0" encoding="UTF-8"?><br />
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><br />
<plist version="1.0"><br />
	<dict><br />
		<key>CFBundleIdentifier</key><br />
		<string>org.dyndns.bkcorp.plex.AdvancedPhotos</string><br />
<br />
		<key>PlexFrameworkVersion</key><br />
		<string>2</string><br />
		<br />
		<key>PlexPluginClass</key><br />
		<string>Agent</string><br />
		<br />
		<key>PlexClientPlatforms</key><br />
		<string>ClientPlatform.Windows,ClientPlatform.LGTV</string><br />
	</dict><br />
</plist>



__init__.py

class AdvancedPhotos(Agent.Photos):<br />
  name = 'AdvancedPhotos'<br />
  primary_provider = True<br />
  languages = [Locale.Language.NoLanguage]<br />
  accepts_from = ['com.plexapp.agents.none']<br />
<br />
  def search(self, results, media, lang):<br />
    results.Append(MetadataSearchResult(id=media.id, name=media.title, year=None, lang=lang, score=100))<br />
<br />
  def update(self, metadata, media, lang):<br />
    metadata.title = media.title



Can you see something wrong?

We are actually moving away from using photo agents, given the performance and disk space requirements involved. It’s much faster to read in the metadata from EXIF during media analysis, so that’s what we’re doing starting in 0.9.7.0.

That’s goog news! Will you also support XML? WLPG now store people information in the XMP tag and being able to browse by it would be, I think, more than a nice to have. It we be even better if we could select multiple people by digging in the tree. I simply don’t know how we could to AND and OR operators this way.



Also, by having people information, it could be used during a slideshow to do “directed” pan scan .



But to go back to my original question, is it why I didn’t see it in the drop down list or if there was something wrong? Just in case I would like to make another one someday :stuck_out_tongue:




is year=None allowed?

is None a string?



if the framework see a problem in theplugin it will log it in the plugin logs on startup, might want to check there.



None is not a string, it's a type named NoneType... None is the only NoneType. It's basicly what other languages call Null. And while I dont know if None is allowed as year, you dont actually have to add information to that field at all.

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