What attributes does an agent have access to on the media object?

I can access media.name, media.year, and media.filename...

 

But it blows up any time I reference media.source. I've finally figured out that this has to do with restricted python, but is there any work around? My scanner needed to stuff some extra metadata somewhere, and I opted for moive.source. I even see it that this is somehow passed into the agent from the error messages in the log:

2015-01-24 17:17:00,945 (10be47000) :  INFO (agentkit:923) - Searching for matches for {'openSubtitlesHash': 'eca6a793b7ba44b4', 'name': 'A.P.B.', 'filename': '%2FUsers%2Fjohn%2FGames%2FAtari%20Lynx%2FA%2EP%2EB%2E%2FA%2EP%2EB%2E%2Ezip', 'source': 'LYNX', 'plexHash': '7dcb30a3e35efd68afeee841861787cc5d089b83', 'duration': '-1', 'id': '298295'}

How can I get ahold of the source value? This is what I need to use to figure out a truly unique id, so that the matching is better.

 

I *could* use the filename and re-run my scanner code inside the agent, but that seems like a really klunky way of working around this. (It puts the wrong kind of code in the wrong place, it duplicates code, etc.)

 

Can I get access to media.source (it's not complaining that the attribute doesn't exist, rather that there is no __getattr__, something that restricted is doing, I think).

 

I don't know why I bother to ask... everything I post is 0 views, 0 replies.

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