Jump to content

Trakt Plugin Not Updating Watched Status When Marked Watched Manually


cublikefoot
Go to solution Solved by Luke,

Recommended Posts

cublikefoot

Hello,

 

I'm having an issue with the Trakt plugin when using external players with Kodi. I have the latest version of the Trakt Emby Plugin (3.0.6369.28749) and the latest Emby beta version (3.2.20.12).

 

I got back from a trip a week ago and noticed that the Trakt plugin was no longer updating the watched status of any episode or movie watched through an external player on Kodi. It updates just fine when no external player is used (watched directly through Kodi), but when an external play is used (such as VLC or Media Player Classic), the watched status is not updated even when completed. I believe this is somewhat related to a previous issue I had posted (which got no response), as when I mark something as watched (in either Kodi or the Emby web client itself), Trakt is not updated. Previously, if I had simply marked something as watched (regardless of whether or not I had actually watched it), it would be updated on Trakt immediately. As stated in the previous thread I made, I had to mark every episode watched through an external player as "watched" manually in Kodi, triggering a Trakt update. I still do that, but this time there's no Trakt update. I'm still able to import watched statuses and sync collection data though.

 

I noticed these lines in the log after watching an episode through an external player:

2017-06-24 17:48:22.7894 Info SessionManager: Playback stopped reported by app Kodi 2.3.48 playing Snooze... A Trip to Yuka`s Dream!. Stopped at 1000 ms
2017-06-24 17:48:22.7894 Info Trakt: Playback Stopped
2017-06-24 17:48:22.7894 Info Trakt: Item Not fully played. Tell trakt.tv we are no longer watching but don't scrobble

I think the issue is from Kodi reporting that the video had stopped at 1000 ms, when it had actually played the entire file, just through an external player (VLC in this case). As such, Trakt wouldn't update.

Link to comment
Share on other sites

@@Angelblue05, just to confirm, can you tell me what gets reported in the playback stop message with the add-on when using an external player? thanks !

Link to comment
Share on other sites

cublikefoot

Here's the log starting from playback ending (in an external player) to me updating the watched status in Kodi manually:

 

 

 

2017-06-27 17:43:59.2667 Info HttpServer: HTTP POST http://192.168.1.19:8096/emby/Sessions/Playing/Stopped. UserAgent:

2017-06-27 17:43:59.2667 Debug App: ReportPlaybackStopped PlaySessionId:

2017-06-27 17:43:59.2667 Info SessionManager: Playback stopped reported by app Kodi 2.3.48 playing How the Two Met and Future Siblings. Stopped at 1000 ms

2017-06-27 17:43:59.2777 Debug XmlSerializer: Deserializing file C:\Users\cublikefoot\AppData\Roaming\Emby-Server\plugins\configurations\Emby.Kodi.SyncQueue.xml

2017-06-27 17:43:59.2777 Debug XmlSerializer: Deserializing file C:\Users\cublikefoot\AppData\Roaming\Emby-Server\config\xbmcmetadata.xml

2017-06-27 17:43:59.2777 Info HttpServer: HTTP Response 204 to 192.168.1.19. Time: 23ms. http://192.168.1.19:8096/emby/Sessions/Playing/Stopped

2017-06-27 17:43:59.2777 Info Trakt: Playback Stopped

2017-06-27 17:43:59.2777 Debug XmlSerializer: Deserializing file C:\Users\cublikefoot\AppData\Roaming\Emby-Server\plugins\configurations\Trakt.xml

2017-06-27 17:43:59.2987 Info Trakt: Item Not fully played. Tell trakt.tv we are no longer watching but don't scrobble

2017-06-27 17:43:59.3193 Debug Trakt: {"episode":{"ids":{"tvdb":6035647}},"progress":0.0706678852,"app_version":"3.2.20.15","app_date":"2017-06-27"}

2017-06-27 17:43:59.3238 Debug XmlSerializer: Deserializing file C:\Users\cublikefoot\AppData\Roaming\Emby-Server\config\notifications.xml

2017-06-27 17:43:59.3238 Info HttpServer: HTTP GET http://localhost:8096/emby/System/ActivityLog/Entries?startIndex=0&limit=7&minDate=2017-06-26T21%3A43%3A59.328Z. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.32 Safari/537.36

2017-06-27 17:43:59.3238 Info HttpServer: HTTP Response 200 to ::1. Time: 3ms. http://localhost:8096/emby/System/ActivityLog/Entries?startIndex=0&limit=7&minDate=2017-06-26T21%3A43%3A59.328Z

2017-06-27 17:43:59.4027 Info HttpClient: HttpClientManager POST: https://api-v2launch.trakt.tv/scrobble/stop

2017-06-27 17:43:59.7790 Info App: Emby.Kodi.SyncQueue: Starting User Changes Sync...

2017-06-27 17:43:59.7790 Debug App: Emby.Kodi.SyncQueue: Starting to save items for 21b7053a-1c67-4baa-9be3-4b59e53476dd

2017-06-27 17:43:59.8110 Debug App: Emby.Kodi.SyncQueue: Updating ItemId 'ada556f779000b6323112843b4cec733' for UserId: '21b7053a1c674baa9be34b59e53476dd'

2017-06-27 17:43:59.8501 Debug App: Emby.Kodi.SyncQueue: Updating ItemId '07eeb6da4f373097f6a396b0a8b5ad29' for UserId: '21b7053a1c674baa9be34b59e53476dd'

2017-06-27 17:44:00.0157 Info App: Emby.Kodi.SyncQueue: "USERSYNC" User 21b7053a1c674baa9be34b59e53476dd(cub) posted 2 Updates: ada556f779000b6323112843b4cec733,07eeb6da4f373097f6a396b0a8b5ad29

2017-06-27 17:44:00.0157 Info App: Emby.Kodi.SyncQueue: User Changes Sync Finished Taking 00:00:00.2367259

2017-06-27 17:44:00.5215 Info HttpServer: HTTP GET http://192.168.1.19:8096/emby/Users/21b7053a1c674baa9be34b59e53476dd/Items?format=json&Fields=Path%2CGenres%2CSortName%2CStudios%2CWriter%2CProductionYear%2CTaglines%2CCommunityRating%2COfficialRating%2CCumulativeRunTimeTicks%2CMetascore%2CAirTime%2CDateCreated%2CMediaStreams%2CPeople%2COverview%2CCriticRating%2CCriticRatingSummary%2CEtag%2CShortOverview%2CProductionLocations%2CTags%2CProviderIds%2CParentId%2CRemoteTrailers%2CSpecialEpisodeNumbers%2CMediaSources%2CVoteCount&Ids=07eeb6da4f373097f6a396b0a8b5ad29. UserAgent:

2017-06-27 17:44:00.5646 Info HttpServer: HTTP Response 200 to 192.168.1.19. Time: 43ms. http://192.168.1.19:8096/emby/Users/21b7053a1c674baa9be34b59e53476dd/Items?format=json&Fields=Path%2CGenres%2CSortName%2CStudios%2CWriter%2CProductionYear%2CTaglines%2CCommunityRating%2COfficialRating%2CCumulativeRunTimeTicks%2CMetascore%2CAirTime%2CDateCreated%2CMediaStreams%2CPeople%2COverview%2CCriticRating%2CCriticRatingSummary%2CEtag%2CShortOverview%2CProductionLocations%2CTags%2CProviderIds%2CParentId%2CRemoteTrailers%2CSpecialEpisodeNumbers%2CMediaSources%2CVoteCount&Ids=07eeb6da4f373097f6a396b0a8b5ad29

2017-06-27 17:44:00.5736 Info HttpServer: HTTP GET http://192.168.1.19:8096/emby/Users/21b7053a1c674baa9be34b59e53476dd/Items?format=json&Fields=Path%2CGenres%2CSortName%2CStudios%2CWriter%2CProductionYear%2CTaglines%2CCommunityRating%2COfficialRating%2CCumulativeRunTimeTicks%2CMetascore%2CAirTime%2CDateCreated%2CMediaStreams%2CPeople%2COverview%2CCriticRating%2CCriticRatingSummary%2CEtag%2CShortOverview%2CProductionLocations%2CTags%2CProviderIds%2CParentId%2CRemoteTrailers%2CSpecialEpisodeNumbers%2CMediaSources%2CVoteCount&Ids=ada556f779000b6323112843b4cec733. UserAgent:

2017-06-27 17:44:00.5966 Info HttpServer: HTTP Response 200 to 192.168.1.19. Time: 23ms. http://192.168.1.19:8096/emby/Users/21b7053a1c674baa9be34b59e53476dd/Items?format=json&Fields=Path%2CGenres%2CSortName%2CStudios%2CWriter%2CProductionYear%2CTaglines%2CCommunityRating%2COfficialRating%2CCumulativeRunTimeTicks%2CMetascore%2CAirTime%2CDateCreated%2CMediaStreams%2CPeople%2COverview%2CCriticRating%2CCriticRatingSummary%2CEtag%2CShortOverview%2CProductionLocations%2CTags%2CProviderIds%2CParentId%2CRemoteTrailers%2CSpecialEpisodeNumbers%2CMediaSources%2CVoteCount&Ids=ada556f779000b6323112843b4cec733

2017-06-27 17:44:00.6236 Info HttpServer: HTTP GET http://192.168.1.19:8096/emby/Emby.Kodi.SyncQueue/GetServerDateTime?format=json. UserAgent:

2017-06-27 17:44:00.6236 Info App: Emby.Kodi.SyncQueue: Server Time Requested...

2017-06-27 17:44:00.6236 Debug App: Emby.Kodi.SyncQueue: Class Variable Created!

2017-06-27 17:44:00.6236 Debug App: Emby.Kodi.SyncQueue: Getting Ready to Set Variables!

2017-06-27 17:44:00.6236 Debug App: Emby.Kodi.SyncQueue: ServerDateTime = 2017-06-27T21:44:00Z

2017-06-27 17:44:00.6236 Debug App: Emby.Kodi.SyncQueue: RetentionDateTime = 1900-01-01T00:00:00Z

2017-06-27 17:44:00.6236 Info HttpServer: HTTP Response 200 to 192.168.1.19. Time: 4ms. http://192.168.1.19:8096/emby/Emby.Kodi.SyncQueue/GetServerDateTime?format=json

2017-06-27 17:44:02.1838 Info HttpServer: HTTP POST http://192.168.1.19:8096/emby/Users/21b7053a1c674baa9be34b59e53476dd/PlayedItems/ada556f779000b6323112843b4cec733?format=json. UserAgent:

2017-06-27 17:44:02.1838 Info HttpServer: HTTP Response 200 to 192.168.1.19. Time: 10ms. http://192.168.1.19:8096/emby/Users/21b7053a1c674baa9be34b59e53476dd/PlayedItems/ada556f779000b6323112843b4cec733?format=json

2017-06-27 17:44:02.7043 Info App: Emby.Kodi.SyncQueue: Starting User Changes Sync...

2017-06-27 17:44:02.7043 Debug App: Emby.Kodi.SyncQueue: Starting to save items for 21b7053a-1c67-4baa-9be3-4b59e53476dd

2017-06-27 17:44:02.7043 Debug App: Emby.Kodi.SyncQueue: Updating ItemId 'ada556f779000b6323112843b4cec733' for UserId: '21b7053a1c674baa9be34b59e53476dd'

2017-06-27 17:44:02.7553 Debug App: Emby.Kodi.SyncQueue: Updating ItemId '07eeb6da4f373097f6a396b0a8b5ad29' for UserId: '21b7053a1c674baa9be34b59e53476dd'

2017-06-27 17:44:02.9175 Info App: Emby.Kodi.SyncQueue: "USERSYNC" User 21b7053a1c674baa9be34b59e53476dd(cub) posted 2 Updates: ada556f779000b6323112843b4cec733,07eeb6da4f373097f6a396b0a8b5ad29

2017-06-27 17:44:02.9175 Info App: Emby.Kodi.SyncQueue: User Changes Sync Finished Taking 00:00:00.2132059

2017-06-27 17:44:03.6482 Info HttpServer: HTTP GET http://192.168.1.19:8096/emby/Users/21b7053a1c674baa9be34b59e53476dd/Items?format=json&Fields=Path%2CGenres%2CSortName%2CStudios%2CWriter%2CProductionYear%2CTaglines%2CCommunityRating%2COfficialRating%2CCumulativeRunTimeTicks%2CMetascore%2CAirTime%2CDateCreated%2CMediaStreams%2CPeople%2COverview%2CCriticRating%2CCriticRatingSummary%2CEtag%2CShortOverview%2CProductionLocations%2CTags%2CProviderIds%2CParentId%2CRemoteTrailers%2CSpecialEpisodeNumbers%2CMediaSources%2CVoteCount&Ids=07eeb6da4f373097f6a396b0a8b5ad29. UserAgent:

2017-06-27 17:44:03.6482 Info HttpServer: HTTP Response 200 to 192.168.1.19. Time: 3ms. http://192.168.1.19:8096/emby/Users/21b7053a1c674baa9be34b59e53476dd/Items?format=json&Fields=Path%2CGenres%2CSortName%2CStudios%2CWriter%2CProductionYear%2CTaglines%2CCommunityRating%2COfficialRating%2CCumulativeRunTimeTicks%2CMetascore%2CAirTime%2CDateCreated%2CMediaStreams%2CPeople%2COverview%2CCriticRating%2CCriticRatingSummary%2CEtag%2CShortOverview%2CProductionLocations%2CTags%2CProviderIds%2CParentId%2CRemoteTrailers%2CSpecialEpisodeNumbers%2CMediaSources%2CVoteCount&Ids=07eeb6da4f373097f6a396b0a8b5ad29

2017-06-27 17:44:03.6592 Info HttpServer: HTTP GET http://192.168.1.19:8096/emby/Users/21b7053a1c674baa9be34b59e53476dd/Items?format=json&Fields=Path%2CGenres%2CSortName%2CStudios%2CWriter%2CProductionYear%2CTaglines%2CCommunityRating%2COfficialRating%2CCumulativeRunTimeTicks%2CMetascore%2CAirTime%2CDateCreated%2CMediaStreams%2CPeople%2COverview%2CCriticRating%2CCriticRatingSummary%2CEtag%2CShortOverview%2CProductionLocations%2CTags%2CProviderIds%2CParentId%2CRemoteTrailers%2CSpecialEpisodeNumbers%2CMediaSources%2CVoteCount&Ids=ada556f779000b6323112843b4cec733. UserAgent:

2017-06-27 17:44:03.6592 Info HttpServer: HTTP Response 200 to 192.168.1.19. Time: 2ms. http://192.168.1.19:8096/emby/Users/21b7053a1c674baa9be34b59e53476dd/Items?format=json&Fields=Path%2CGenres%2CSortName%2CStudios%2CWriter%2CProductionYear%2CTaglines%2CCommunityRating%2COfficialRating%2CCumulativeRunTimeTicks%2CMetascore%2CAirTime%2CDateCreated%2CMediaStreams%2CPeople%2COverview%2CCriticRating%2CCriticRatingSummary%2CEtag%2CShortOverview%2CProductionLocations%2CTags%2CProviderIds%2CParentId%2CRemoteTrailers%2CSpecialEpisodeNumbers%2CMediaSources%2CVoteCount&Ids=ada556f779000b6323112843b4cec733

2017-06-27 17:44:03.6944 Info HttpServer: HTTP GET http://192.168.1.19:8096/emby/Emby.Kodi.SyncQueue/GetServerDateTime?format=json. UserAgent:

2017-06-27 17:44:03.6944 Info App: Emby.Kodi.SyncQueue: Server Time Requested...

2017-06-27 17:44:03.6944 Debug App: Emby.Kodi.SyncQueue: Class Variable Created!

2017-06-27 17:44:03.6944 Debug App: Emby.Kodi.SyncQueue: Getting Ready to Set Variables!

2017-06-27 17:44:03.6944 Debug App: Emby.Kodi.SyncQueue: ServerDateTime = 2017-06-27T21:44:03Z

2017-06-27 17:44:03.6944 Debug App: Emby.Kodi.SyncQueue: RetentionDateTime = 1900-01-01T00:00:00Z

2017-06-27 17:44:03.6944 Info HttpServer: HTTP Response 200 to 192.168.1.19. Time: 1ms. http://192.168.1.19:8096/emby/Emby.Kodi.SyncQueue/GetServerDateTime?format=json

2017-06-27 17:44:07.2140 Debug Trakt: {"shows":[],"episodes":[{"watched_at":"2017-06-27T21:22:24Z","ids":{"tvdb":6035647}}]}

2017-06-27 17:44:07.2677 Info HttpClient: HttpClientManager POST: https://api-v2launch.trakt.tv/sync/history

2017-06-27 17:44:10.6272 Info HttpServer: HTTP GET http://localhost:8096/emby/Users/21b7053a1c674baa9be34b59e53476dd. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.32 Safari/537.36

2017-06-27 17:44:10.6272 Info HttpServer: HTTP Response 200 to ::1. Time: 2ms. http://localhost:8096/emby/Users/21b7053a1c674baa9be34b59e53476dd

2017-06-27 17:44:10.6492 Debug App: ActivityLogWebSocketListener Begin transmitting over websocket to ::1:53155

2017-06-27 17:44:10.6512 Debug App: ActivityLogWebSocketListener stop transmitting over websocket to ::1:53155

2017-06-27 17:44:10.6512 Debug App: ScheduledTasksWebSocketListener stop transmitting over websocket to ::1:53155

2017-06-27 17:44:10.6512 Info HttpServer: HTTP GET http://localhost:8096/emby/System/Logs. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.32 Safari/537.36

2017-06-27 17:44:10.6512 Debug App: SessionInfoWebSocketListener stop transmitting over websocket to ::1:53155

2017-06-27 17:44:10.6512 Info HttpServer: HTTP GET http://localhost:8096/emby/System/Configuration. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.32 Safari/537.36

2017-06-27 17:44:10.6512 Info HttpServer: HTTP Response 200 to ::1. Time: 2ms. http://localhost:8096/emby/System/Configuration

2017-06-27 17:44:10.6512 Info HttpServer: HTTP Response 200 to ::1. Time: 7ms. http://localhost:8096/emby/System/Logs 

 

 

 

Link to comment
Share on other sites

Angelblue05

Apologies about your first post not getting answered. Unfortunately, when using an external player with Kodi, it does not communicate the position of playback. There's nothing we can do about that, but once you mark something as watched manually in Kodi, it should definitely be communicated to your Emby server if you are using Emby for kodi. If that isn't the case, could you provide your Kodi log capturing this action? Thanks.

Edited by Angelblue05
Link to comment
Share on other sites

cublikefoot

but once you mark something as watched manually in Kodi, it should definitely be communicated to your Emby server if you are using Emby for kodi.

 

The Emby server is receiving the watched status updates from Kodi (they are marked as watched on the web client), but they are not being sent to Trakt, which I assume is because the Trakt addon does not detect the file as being "fully played" (as the log shows). The Trakt addon does detect when an episode is playing (although the position isn't synced, but that doesn't matter to me), but it does not mark it as watched once completed. I think something changed in the way that the Trakt addon determines "watched" as just a few weeks ago the addon would update my Trakt profile with the correct watched status immediately after marking the item as watched manually (in Kodi).

Edited by cublikefoot
  • Like 1
Link to comment
Share on other sites

Angelblue05

Hmm, if you mark as watched manually, it "should" not matter the played percentage, Trakt should update with that info regardless.

 

@@Luke

 

Let me know if there's anything else, but doesn't seem like the issue is with Kodi, right?

Link to comment
Share on other sites

cublikefoot

Let me know if there's anything else, but doesn't seem like the issue is with Kodi, right?

I don't believe it is a Kodi issue, as the same thing happens when updating the "watched' status through the Emby web client, bypassing Kodi completely.

 

I see in the log that it does find the episode in question that I want to mark as completed, and it appears to try to communicate that, but it does not show up on Trakt:

2017-06-27 19:14:08.6189 Debug Trakt: {"shows":[],"episodes":[{"watched_at":"2017-06-27T23:14:03Z","ids":{"tvdb":6099585}}]}
2017-06-27 19:14:08.6873 Info HttpClient: HttpClientManager POST: https://api-v2launch.trakt.tv/sync/history

I do have two users on the Emby server, each linked to a separate Trakt account, I wonder if that may be an issue? The second user has the same problem though (episodes watched through an external player do not show up, but those watched in Kodi do).

I just reinstalled the Trakt plugin and reset the config with only one user and the problem persists. I get the same message in the log, but no update on Trakt: 

2017-06-27 19:23:59.0452 Debug Trakt: {"shows":[],"episodes":[{"watched_at":"2017-06-27T23:23:54Z","ids":{"tvdb":6099585}}]}
2017-06-27 19:23:59.0887 Info HttpClient: HttpClientManager POST: https://api-v2launch.trakt.tv/sync/history

Edit:

Here is what the log shows when the episode is watched through Kodi directly, rather than marked as "watched" manually through Emby or Kodi:

2017-06-27 19:26:45.3194 Info Trakt: Playback Started
2017-06-27 19:26:45.3194 Debug Trakt: 21b7053a1c674baa9be34b59e53476dd appears to be monitoring A:\Anime\Granblue Fantasy The Animation (2017)\Season 1\Granblue Fantasy The Animation_S01E12.mkv
2017-06-27 19:26:45.3194 Debug Trakt: Send episode status update
2017-06-27 19:26:45.3194 Debug Trakt: {"episode":{"ids":{"tvdb":6099585}},"progress":0,"app_version":"3.2.20.15","app_date":"2017-06-27"}
2017-06-27 19:26:45.3194 Info HttpServer: HTTP Response 204 to 192.168.1.19. Time: 2ms. http://192.168.1.19:8096/emby/Sessions/Playing 
2017-06-27 19:26:45.3604 Info HttpClient: HttpClientManager POST: https://api-v2launch.trakt.tv/scrobble/start

2017-06-27 19:27:38.7577 Info Trakt: Playback Stopped
2017-06-27 19:27:38.7577 Info Trakt: Item is played. Scrobble
2017-06-27 19:27:38.7577 Debug Trakt: {"episode":{"ids":{"tvdb":6099585}},"progress":100,"app_version":"3.2.20.15","app_date":"2017-06-27"}
2017-06-27 19:27:38.7577 Info HttpServer: HTTP Response 204 to 192.168.1.19. Time: 2ms. http://192.168.1.19:8096/emby/Sessions/Playing/Stopped 
2017-06-27 19:27:38.8042 Info HttpClient: HttpClientManager POST: https://api-v2launch.trakt.tv/scrobble/stop

The episode shows up as "completed" on Trakt after this, but why is this not the case with those marked manually?

Edited by cublikefoot
  • Like 1
Link to comment
Share on other sites

Angelblue05

So now you're saying it does work with external players?

The issue, I believe, is when manually marking stuff as watched, Trakt plugin doesn't send anything to trakt. According to logs, it seems perhaps it's looking at the played % and doesn't do anything based on that. Manually marked as watched should be skipping that verification.

Edited by Angelblue05
Link to comment
Share on other sites

cublikefoot

The issue, I believe, is when manually marking stuff as watched, Trakt plugin doesn't send anything to trakt.

Yes, here's my process when watching something in Kodi:

 

1. Open item through Kodi (I changed the default Kodi player to an external player)

2. Watch the episode

3. When episode finishes, external player closes

4. The item is marked as watched in Kodi, but then is immediately unmarked as watched (the topic of my first post)

5. I then mark the item as watched, manually in Kodi (to work around the issue in step 4)

6. The item is updated as watched on the Emby server, but is not reflected on Trakt.

 

I'm sorry for the confusion, I could have left the external players out of the situation entirely, as that is a different issue on its own. Manual updates to watched status on Emby are not reflected on Trakt, which by extension affects external players in Kodi.

Edited by cublikefoot
Link to comment
Share on other sites

i just want to make sure i understand exactly what scenarios it works for and what it doesn't.

Link to comment
Share on other sites

Angelblue05

The trakt issue has nothing to do with Kodi. It's strictly an issue with the Trakt plugin not sending anything when manually marking items as watched. Like I said in my previous post, I think perhaps it's looking at the played percentage when it shouldn't be for things manually marked as watched.

 

Edit: I'll test on my side. Let you know.

 

Edit2: Yep, manually marking as watched in the webclient and nothing is reported in trakt. There's nothing in log however. So it's like trakt doesn't even trigger.

Edited by Angelblue05
Link to comment
Share on other sites

Angelblue05

@@Luke

 

I've tested, manually marking a title as watched in the webclient, nothing gets reported in trakt. It doesn't even seem like trakt is triggering (I've enabled debugging in the plugin). The item id of the episode: 546062402fbcf6463a520fec5137f5e7

2017-06-27 23:04:08.9662 Info HttpServer: HTTP GET http://corruption-pc:8096/emby/Items/40d889d126ec76ed5ab0423714311f4e/ThemeMedia?userId=d4000909883845059aadef13b7110375&InheritFromParent=true. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
2017-06-27 23:04:08.9662 Info HttpServer: HTTP Response 200 to 192.168.0.189. Time: 3ms. http://corruption-pc:8096/emby/Items/40d889d126ec76ed5ab0423714311f4e/ThemeMedia?userId=d4000909883845059aadef13b7110375&InheritFromParent=true
2017-06-27 23:04:11.4548 Info HttpServer: HTTP GET http://corruption-pc:8096/emby/Users/d4000909883845059aadef13b7110375/Items/546062402fbcf6463a520fec5137f5e7. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
2017-06-27 23:04:11.4548 Info HttpServer: HTTP Response 200 to 192.168.0.189. Time: 7ms. http://corruption-pc:8096/emby/Users/d4000909883845059aadef13b7110375/Items/546062402fbcf6463a520fec5137f5e7
2017-06-27 23:04:12.6338 Info HttpServer: HTTP POST http://corruption-pc:8096/emby/Users/d4000909883845059aadef13b7110375/PlayedItems/546062402fbcf6463a520fec5137f5e7?DatePlayed=20170627230410. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
2017-06-27 23:04:12.6508 Info HttpServer: HTTP Response 200 to 192.168.0.189. Time: 17ms. http://corruption-pc:8096/emby/Users/d4000909883845059aadef13b7110375/PlayedItems/546062402fbcf6463a520fec5137f5e7?DatePlayed=20170627230410
2017-06-27 23:04:13.1513 Info App: Emby.Kodi.SyncQueue: Starting User Changes Sync...
2017-06-27 23:04:13.1513 Debug App: Emby.Kodi.SyncQueue: Starting to save items for d4000909-8838-4505-9aad-ef13b7110375
2017-06-27 23:04:13.1513 Debug App: Emby.Kodi.SyncQueue: Updating ItemId '546062402fbcf6463a520fec5137f5e7' for UserId: 'd4000909883845059aadef13b7110375'
2017-06-27 23:04:13.1513 Debug App: Emby.Kodi.SyncQueue: Updating ItemId '40d889d126ec76ed5ab0423714311f4e' for UserId: 'd4000909883845059aadef13b7110375'
2017-06-27 23:04:13.1888 Info App: Emby.Kodi.SyncQueue: "USERSYNC" User d4000909883845059aadef13b7110375(Angel) posted 2 Updates: 546062402fbcf6463a520fec5137f5e7,40d889d126ec76ed5ab0423714311f4e
2017-06-27 23:04:13.1888 Info App: Emby.Kodi.SyncQueue: User Changes Sync Finished Taking 00:00:00.0375086
2017-06-27 23:04:13.9612 Info HttpServer: HTTP GET http://192.168.0.190:8096/emby/Users/e65e0f2c364745cf8ceca001910e55ac/Items?format=json&Fields=Path%2CGenres%2CSortName%2CStudios%2CWriter%2CProductionYear%2CTaglines%2CCommunityRating%2COfficialRating%2CCumulativeRunTimeTicks%2CMetascore%2CAirTime%2CDateCreated%2CMediaStreams%2CPeople%2COverview%2CCriticRating%2CCriticRatingSummary%2CEtag%2CShortOverview%2CProductionLocations%2CTags%2CProviderIds%2CParentId%2CRemoteTrailers%2CSpecialEpisodeNumbers%2CMediaSources%2CVoteCount&Ids=40d889d126ec76ed5ab0423714311f4e. UserAgent:
2017-06-27 23:04:13.9877 Info HttpServer: HTTP Response 200 to 192.168.0.190. Time: 27ms. http://192.168.0.190:8096/emby/Users/e65e0f2c364745cf8ceca001910e55ac/Items?format=json&Fields=Path%2CGenres%2CSortName%2CStudios%2CWriter%2CProductionYear%2CTaglines%2CCommunityRating%2COfficialRating%2CCumulativeRunTimeTicks%2CMetascore%2CAirTime%2CDateCreated%2CMediaStreams%2CPeople%2COverview%2CCriticRating%2CCriticRatingSummary%2CEtag%2CShortOverview%2CProductionLocations%2CTags%2CProviderIds%2CParentId%2CRemoteTrailers%2CSpecialEpisodeNumbers%2CMediaSources%2CVoteCount&Ids=40d889d126ec76ed5ab0423714311f4e
2017-06-27 23:04:13.9987 Info HttpServer: HTTP GET http://192.168.0.190:8096/emby/Users/e65e0f2c364745cf8ceca001910e55ac/Items?format=json&Fields=Path%2CGenres%2CSortName%2CStudios%2CWriter%2CProductionYear%2CTaglines%2CCommunityRating%2COfficialRating%2CCumulativeRunTimeTicks%2CMetascore%2CAirTime%2CDateCreated%2CMediaStreams%2CPeople%2COverview%2CCriticRating%2CCriticRatingSummary%2CEtag%2CShortOverview%2CProductionLocations%2CTags%2CProviderIds%2CParentId%2CRemoteTrailers%2CSpecialEpisodeNumbers%2CMediaSources%2CVoteCount&Ids=546062402fbcf6463a520fec5137f5e7. UserAgent:
2017-06-27 23:04:13.9987 Info HttpServer: HTTP Response 200 to 192.168.0.190. Time: 3ms. http://192.168.0.190:8096/emby/Users/e65e0f2c364745cf8ceca001910e55ac/Items?format=json&Fields=Path%2CGenres%2CSortName%2CStudios%2CWriter%2CProductionYear%2CTaglines%2CCommunityRating%2COfficialRating%2CCumulativeRunTimeTicks%2CMetascore%2CAirTime%2CDateCreated%2CMediaStreams%2CPeople%2COverview%2CCriticRating%2CCriticRatingSummary%2CEtag%2CShortOverview%2CProductionLocations%2CTags%2CProviderIds%2CParentId%2CRemoteTrailers%2CSpecialEpisodeNumbers%2CMediaSources%2CVoteCount&Ids=546062402fbcf6463a520fec5137f5e7
2017-06-27 23:04:14.0477 Info HttpServer: HTTP GET http://192.168.0.190:8096/emby/Emby.Kodi.SyncQueue/GetServerDateTime?format=json. UserAgent:
2017-06-27 23:04:14.0477 Info App: Emby.Kodi.SyncQueue: Server Time Requested...
2017-06-27 23:04:14.0477 Debug App: Emby.Kodi.SyncQueue: Class Variable Created!
2017-06-27 23:04:14.0477 Debug App: Emby.Kodi.SyncQueue: Getting Ready to Set Variables!
2017-06-27 23:04:14.0477 Debug App: Emby.Kodi.SyncQueue: ServerDateTime = 2017-06-28T04:04:14Z
2017-06-27 23:04:14.0477 Debug App: Emby.Kodi.SyncQueue: RetentionDateTime = 2017-06-13T00:00:00Z
2017-06-27 23:04:14.0477 Info HttpServer: HTTP Response 200 to 192.168.0.190. Time: 1ms. http://192.168.0.190:8096/emby/Emby.Kodi.SyncQueue/GetServerDateTime?format=json
2017-06-27 23:04:15.7639 Debug App: SessionInfoWebSocketListener Begin transmitting over websocket to ::ffff:192.168.0.189:49906
2017-06-27 23:04:15.7639 Debug App: ScheduledTasksWebSocketListener Begin transmitting over websocket to ::ffff:192.168.0.189:49906
2017-06-27 23:04:15.7639 Debug App: ActivityLogWebSocketListener Begin transmitting over websocket to ::ffff:192.168.0.189:49906
2017-06-27 23:04:15.7639 Info HttpServer: HTTP GET http://corruption-pc:8096/emby/Sessions. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
2017-06-27 23:04:15.7639 Info HttpServer: HTTP Response 200 to 192.168.0.189. Time: 1ms. http://corruption-pc:8096/emby/Sessions
2017-06-27 23:04:15.7639 Info HttpServer: HTTP GET http://corruption-pc:8096/emby/ScheduledTasks. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
2017-06-27 23:04:15.7639 Info HttpServer: HTTP GET http://corruption-pc:8096/emby/System/Info. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
2017-06-27 23:04:15.7639 Info HttpServer: HTTP GET http://corruption-pc:8096/emby/News/Product?StartIndex=0&Limit=4. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
2017-06-27 23:04:15.7639 Info HttpServer: HTTP GET http://corruption-pc:8096/emby/System/ActivityLog/Entries?startIndex=0&limit=7&minDate=2017-06-27T04%3A04%3A13.888Z. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
2017-06-27 23:04:15.7639 Info HttpServer: HTTP GET http://corruption-pc:8096/emby/DisplayPreferences/dashboard?userId=d4000909883845059aadef13b7110375&client=dashboard. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
2017-06-27 23:04:15.7639 Info HttpServer: HTTP Response 200 to 192.168.0.189. Time: 2ms. http://corruption-pc:8096/emby/DisplayPreferences/dashboard?userId=d4000909883845059aadef13b7110375&client=dashboard
2017-06-27 23:04:15.7639 Info HttpServer: HTTP Response 200 to 192.168.0.189. Time: 2ms. http://corruption-pc:8096/emby/ScheduledTasks
2017-06-27 23:04:15.7764 Debug JsonSerializer: Deserializing file C:\Users\Corruption\AppData\Roaming\Emby-Server\cache\news.json
2017-06-27 23:04:15.7764 Info HttpServer: HTTP Response 200 to 192.168.0.189. Time: 9ms. http://corruption-pc:8096/emby/News/Product?StartIndex=0&Limit=4
2017-06-27 23:04:15.7764 Info HttpServer: HTTP Response 200 to 192.168.0.189. Time: 20ms. http://corruption-pc:8096/emby/System/Info
2017-06-27 23:04:15.7994 Info HttpServer: HTTP Response 200 to 192.168.0.189. Time: 28ms. http://corruption-pc:8096/emby/System/ActivityLog/Entries?startIndex=0&limit=7&minDate=2017-06-27T04%3A04%3A13.888Z
2017-06-27 23:04:15.7994 Info HttpServer: HTTP GET http://corruption-pc:8096/emby/Packages/Updates?PackageType=UserInstalled. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
2017-06-27 23:04:15.7994 Info InstallationManager: Opening C:\Users\Corruption\AppData\Roaming\Emby-Server\cache\serverpackages.json
2017-06-27 23:04:15.8115 Info HttpServer: HTTP GET http://corruption-pc:8096/emby/Items/b01ecbb5c822dce78c3fb76b131785c4/Images/Primary?width=275&tag=29672cbc6ec4e0f3aaf710866569a891&quality=90. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
2017-06-27 23:04:15.8115 Info HttpServer: HTTP GET http://corruption-pc:8096/emby/Packages/Updates?PackageType=System. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
2017-06-27 23:04:15.8115 Info HttpClient: Checking for cache file C:\Users\Corruption\AppData\Roaming\Emby-Server\cache\httpclient\f70ca6622474da8168a3b6c06f651a16
2017-06-27 23:04:15.8290 Info HttpServer: HTTP Response 200 to 192.168.0.189. Time: 10ms. http://corruption-pc:8096/emby/Packages/Updates?PackageType=System
2017-06-27 23:04:15.8290 Info HttpServer: HTTP Response 200 to 192.168.0.189. Time: 28ms. http://corruption-pc:8096/emby/Packages/Updates?PackageType=UserInstalled
2017-06-27 23:04:15.8410 Info HttpResultFactory: Transmit file C:\Users\Corruption\AppData\Roaming\Emby-Server\cache\temp\f71854c188214ad3a9d7f675c5ce7dd0.webp
2017-06-27 23:04:15.8410 Info HttpServer: HTTP Response 200 to 192.168.0.189. Time: 30ms. http://corruption-pc:8096/emby/Items/b01ecbb5c822dce78c3fb76b131785c4/Images/Primary?width=275&tag=29672cbc6ec4e0f3aaf710866569a891&quality=90
2017-06-27 23:04:16.2635 Info HttpServer: HTTP POST http://corruption-pc:8096/emby/Sessions/Playing/Stopped. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
2017-06-27 23:04:16.2635 Debug App: ReportPlaybackStopped PlaySessionId: 1498622362908
2017-06-27 23:04:16.2635 Info SessionManager: Playback stopped reported by app Emby Mobile 3.2.20.15 playing Pretty Little Liars End Credits Theme. Stopped at 7942 ms
2017-06-27 23:04:16.2635 Info Trakt: Playback Stopped
2017-06-27 23:04:16.2635 Info HttpServer: HTTP Response 204 to 192.168.0.189. Time: 4ms. http://corruption-pc:8096/emby/Sessions/Playing/Stopped
2017-06-27 23:04:16.7806 Info App: Emby.Kodi.SyncQueue: Starting User Changes Sync...
2017-06-27 23:04:16.7806 Debug App: Emby.Kodi.SyncQueue: Starting to save items for d4000909-8838-4505-9aad-ef13b7110375
2017-06-27 23:04:16.7806 Debug App: Emby.Kodi.SyncQueue: Updating ItemId 'b01ecbb5c822dce78c3fb76b131785c4' for UserId: 'd4000909883845059aadef13b7110375'
2017-06-27 23:04:16.8041 Info App: Emby.Kodi.SyncQueue: "USERSYNC" User d4000909883845059aadef13b7110375(Angel) posted 1 Updates: b01ecbb5c822dce78c3fb76b131785c4
2017-06-27 23:04:16.8041 Info App: Emby.Kodi.SyncQueue: User Changes Sync Finished Taking 00:00:00.0235035
2017-06-27 23:04:13.1888 Info App: Emby.Kodi.SyncQueue: "USERSYNC" User d4000909883845059aadef13b7110375(Angel) posted 2 Updates:  546062402fbcf6463a520fec5137f5e7,40d889d126ec76ed5ab0423714311f4e
2017-06-27 23:04:13.1888 Info App: Emby.Kodi.SyncQueue: User Changes Sync Finished Taking 00:00:00.0375086
Edited by Angelblue05
Link to comment
Share on other sites

Angelblue05

It's an episode and there is a tvdb id. If /playing/stopped is called, I see Trakt trigger. If it's /playeditems (manually checked as watched), nothing.

Edited by Angelblue05
Link to comment
Share on other sites

Angelblue05

does the episode have a season and episode number?

Yes it does. It has all it's metadata. It reports correctly to trakt if I actually play the episode and stop it at the end mark.

Link to comment
Share on other sites

Angelblue05

What about with a movie?

Same deal, playing the movie sends the watched status to trakt, but manually marking as watched doesn't trigger Trakt.

 

Watching:

2017-06-27 23:59:12.6104 Info SessionManager: Playback stopped reported by app Emby Mobile 3.2.20.15 playing Arrival. Stopped at 6896945 ms
2017-06-27 23:59:12.6104 Info Trakt: Playback Stopped
2017-06-27 23:59:12.6104 Info Trakt: Item is played. Scrobble

Manually mark as watched, no trakt lines anywhere near that timeframe:

2017-06-27 23:58:40.5719 Info HttpServer: HTTP POST http://corruption-pc:8096/emby/Users/d4000909883845059aadef13b7110375/PlayedItems/8bb52e890f3f439bf553286a7a08bd59?DatePlayed=20170627235838. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
2017-06-27 23:58:40.5764 Info HttpServer: HTTP Response 200 to 192.168.0.189. Time: 5ms. http://corruption-pc:8096/emby/Users/d4000909883845059aadef13b7110375/PlayedItems/8bb52e890f3f439bf553286a7a08bd59?DatePlayed=20170627235838 
2017-06-27 23:58:41.0893 Info App: Emby.Kodi.SyncQueue: Starting User Changes Sync...
2017-06-27 23:58:41.0893 Debug App: Emby.Kodi.SyncQueue:  Starting to save items for d4000909-8838-4505-9aad-ef13b7110375
Edited by Angelblue05
Link to comment
Share on other sites

cublikefoot

The issue still exists even after the recent Trakt Plugin update (3.0.6388.3174), I don't know if that update was meant to fix this issue though. Tested on latest Emby beta 3.2.22.1.

  • Like 1
Link to comment
Share on other sites

If there is no activity going to trakt, then I think there might be a condition in the plugin that is causing it to abort the process:

 

https://github.com/MediaBrowser/trakt/blob/master/Trakt/ServerMediator.cs#L71-L86

 

Or:

 

https://github.com/MediaBrowser/trakt/blob/73544a4d7299bac0837d82439cf7a92edcdbfd7e/Trakt/Helpers/UserDataManagerEventsHelper.cs#L47-L131

 

But I have not had much opportunity to step through it yet.

Link to comment
Share on other sites

This is the same behaviour as the Trakt plugin in Kodi. On that platform Marking Watched manually also does not trigger any Trakt sync. (See: 1, 2)

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...