trakt / Plex-Trakt-Scrobbler

Add what you are watching on Plex to trakt.tv
1.45k stars 166 forks source link

Not able to pull from trakt #576

Open M3th0s opened 4 years ago

M3th0s commented 4 years ago

Hello Was able to install this and setup a multiuser environment. However I'm getting no luck pulling from trakt. Looking at the logs I can see the movies and shows/episodes on trakt are being detected, however, I keep getting an "unsupported metadata agent: plex" I forced a metadata refresh just in case. Running plex server 1.20.3.3483.

enchained commented 4 years ago

Are you running the new plex movie agent by any chance? Can it be a guid issue again? Maybe @rg9400 could help if the code for pulling is similar to the part that he fixed to adapt new guid for scrobbling. I think it may be here but looks too complex for me to figure out on my own

rg9400 commented 4 years ago

Are you using the latest version of this plugin? Are you able to see guids in the XML for the item in question like below? Is the unsupported metadata agent appearing for all items, or just one? There are some very rare cases where external IDs are not present in Plex's metadata, but I only found 1 such case in my library. Any other errors?

The new agent support applies to both scrobbles and sync/push/pull functions, and it even will automatically apply to the new TV agent whenever it is created.

<Guid id="imdb://tt13143964"/>
<Guid id="tmdb://740985"/>
enchained commented 4 years ago

The new agent support applies to both scrobbles and sync/push/pull functions

That's great, I didn't know you fixed other functions too, so thank you! I didn't try it out yet, cause I was waiting for any news regarding the future of HAMA agent support here before updating my movie agent and the plugin.

M3th0s commented 4 years ago

@rg9400 I think none of my movies is syncing. TV synced without issues. To answer your questions, using the developer version of the plugin. I can see guids on the xmls of the movies that I've checked (I did a random check) Apart from that, works fine for TV, just movies it doesn't seem to work with. Am I using the wrong version of the plugin?

rg9400 commented 4 years ago

@rg9400 I think none of my movies is syncing. TV synced without issues. To answer your questions, using the developer version of the plugin. I can see guids on the xmls of the movies that I've checked (I did a random check) Apart from that, works fine for TV, just movies it doesn't seem to work with. Am I using the wrong version of the plugin?

Make sure you are either using my fork or the very latest version of the plugin from this repo. If you use UAS, you should be able to update it from there. The branch to use is master, not develop. The issue seems to be an older version of the plugin since you have the new external guids, but your plugin is unable to parse them.

You can tell if you have an up-to-date version if the guid.py file exists in Trakttv.bundle/Contents/Libraries/Shared/plex/objects/librarry/extra

https://github.com/trakt/Plex-Trakt-Scrobbler/blob/master/Trakttv.bundle/Contents/Libraries/Shared/plex/objects/library/extra/guid.py

That's great, I didn't know you fixed other functions too, so thank you! I didn't try it out yet, cause I was waiting for any news regarding the future of HAMA agent support here before updating my movie agent and the plugin.

I unfortunately do not use HAMA, so I can't comment. I did see it in the agent list, but no idea if that works or not. My attempts to fix this plugin were just sort of trying to keep it chugging along, but it's very dated and complex and basically a house of cards. Hopefully, we get something cleaner in the future.

https://github.com/trakt/Plex-Trakt-Scrobbler/blob/master/Trakttv.bundle/Contents/Libraries/Shared/plex_metadata/agents/entries.py#L27

M3th0s commented 4 years ago

Thanks, was using the wrong version for the plugin :)

luizfeliperc commented 3 years ago

I'm in trouble too.

I already use Trakt on emby perfectly and I decided to install it on Plex so that both have the same sync. I can't get Plex to identify what I've watched before and I get a lot of errors like that. As my server has been up and running for a long time and is fully updated, including for the new agents, I don't know what else to do.

I climbed a new test server and it only included two libraries and everything worked.

Could it be something related to libraries that already exist?

2021-09-01 18:01:01,498 - plugin.sync.handlers.watched.push (7f8fa6045b38) : DEBUG (plugin.sync.handlers.watched.push:71) - Episodes.on_removed(29999, ...) 2021-09-01 18:01:01,502 - plugin.sync.handlers.watched.push (7f8fa6045b38) : DEBUG (plugin.sync.handlers.watched.push:71) - Episodes.on_removed(30000, ...) 2021-09-01 18:01:01,505 - plugin.sync.handlers.watched.push (7f8fa6045b38) : DEBUG (plugin.sync.handlers.watched.push:71) - Episodes.on_removed(30001, ...) 2021-09-01 18:01:01,507 - plugin.sync.handlers.watched.push (7f8fa6045b38) : DEBUG (plugin.sync.handlers.watched.push:71) - Episodes.on_removed(30002, ...) 2021-09-01 18:01:01,509 - plugin.sync.handlers.watched.push (7f8fa6045b38) : DEBUG (plugin.sync.handlers.watched.push:71) - Episodes.on_removed(30003, ...) 2021-09-01 18:01:15,040 - plex_metadata.guid (7f8fa6045b38) : WARNING (plex_metadata.guid:115) - Unsupported metadata agent: tv.plex.agents.none 2021-09-01 18:01:15,041 - plex_metadata.guid (7f8fa6045b38) : WARNING (plex_metadata.guid:115) - Unsupported metadata agent: tv.plex.agents.none 2021-09-01 18:01:15,041 - plex_metadata.guid (7f8fa6045b38) : WARNING (plex_metadata.guid:115) - Unsupported metadata agent: tv.plex.agents.none 2021-09-01 18:01:15,044 - plex_metadata.guid (7f8fa6045b38) : WARNING (plex_metadata.guid:115) - Unsupported metadata agent: tv.plex.agents.none 2021-09-01 18:01:15,045 - plex_metadata.guid (7f8fa6045b38) : WARNING (plex_metadata.guid:115) - Unsupported metadata agent: tv.plex.agents.none 2021-09-01 18:01:15,046 - plex_metadata.guid (7f8fa6045b38) : WARNING (plex_metadata.guid:115) - Unsupported metadata agent: tv.plex.agents.none