Jump to content

Kodi documentation


Recommended Posts

Posted

Hi guys,

 

Before I report an issue, could I get an explanation on the requirements and functionality of the Kodi plugins?  I’m using Emby for Kodi together with the Kodi Companion.

 

My problem is that whilst Kodi (OSMC on rPi actually) manages my Watched and Progress in isolation, this is not synced back to Emby.

 

It would help if there was a simple table that explained the functionality differences Emby for Kodi, EmbyCon and Kodi Companion and any dependencies.  For example, Watched and Progress i not available for EmbyCon.  Also, neither the existing “Emby for Kodi” nor the Tutorial threads make mention that Kodi Companion is mandatory.

 

Happy to create the documentation, but I'll need to get some answers first.

 

Thanks

Posted (edited)

Thanks guys.  I will do this tonight.

 

I assume you'd like the Emby log too, just to see the messages on the server end?

Edited by c0utta
Angelblue05
Posted

No, just the Kodi log is enough, without Kodi debug. Let me know of the title you played and didn't sync back to Emby. Thank you :)

  • 2 weeks later...
Posted

Thanks mate - log attached.

 

Look for s06e04.mkv as the item that was played but it's watched status hasn't been updated.

 

Cheers

 

kodi.log

Angelblue05
Posted

And that title, you watched till the end? Because it shows you watched 34% and that's what is reported in your log and I don't see any issues.

 

 

'currentPosition': 867.3960571289062, 'runtime': 25066000384L

20:10:08.665 T:1680601856  NOTICE: EMBY.player -> Percent complete: 0.346044859108 Mark played at: 0.9

Posted

Yes, I did watch it all the way to the end.

 

The same as s06e05.mkv and s06e06.mkv - a 3 hour binge of The West Wing that were all watched completely.

 

In the log I frequently see: EMBY.kodimonitor -> Item is invalid for playstate update

 

Cheers!

Angelblue05
Posted (edited)

Yeah that message is because the Kodi event is not the one we are looking for (there's two versions of the same event). Has nothing to do with this.

 

20:07:23.494 T:1680601856  NOTICE: EMBY.kodimonitor -> Method: Player.OnSeek Data: {"item":{"id":1678,"type":"episode"},"player":{"playerid":1,"seekoffset":{"hours":0,"milliseconds":0,"minutes":0,"seconds":-10},"speed":1,"time":{"hours":0,"milliseconds":265,"minutes":11,"seconds":56}}}
20:07:25.307 T:1680601856  NOTICE: EMBY.kodimonitor -> Method: Player.OnSeek Data: {"item":{"id":1678,"type":"episode"},"player":{"playerid":1,"seekoffset":{"hours":0,"milliseconds":0,"minutes":0,"seconds":-10},"speed":1,"time":{"hours":0,"milliseconds":459,"minutes":11,"seconds":47}}}
 
Says you seeked to 11 mins. Then, playback ended 3 minutes after you seeked.
 
Edit: I see another play attempt for the same title. That one 
20:37:46.655 T:1680601856  NOTICE: EMBY.player -> Percent complete: 0.987879677789 Mark played at: 0.9
 
I'm not seeing the issue because the correct playstate was synced back to Kodi. Anyway, I have another version of emby for kodi being released soon, I hope whatever the issue was is resolved but everything that is supposed to happen did happen.
{
  "MessageType": "UserDataChanged",
  "MessageId": "e845056fde9746d69147ad9dc97a1acf",
  "Data": {
    "UserId": "c0bea7eeb27e4f6f80cf08942dd30e8f",
    "UserDataList": [
      {
        "PlaybackPositionTicks": 0,
        "PlayCount": 2,
        "IsFavorite": false,
        "LastPlayedDate": "2018-08-28T10:40:28.6239400Z",
        "Played": true, <--- played
        "Key": "72521006004",
        "ItemId": "e5c6c9422e1f51ca167aa71ee06eaea7"
      },
      {
        "UnplayedItemCount": 36,
        "PlaybackPositionTicks": 0,
        "PlayCount": 0,
        "IsFavorite": false,
        "Played": false,
        "Key": "72521",
        "ItemId": "ef1dfefec49ec4c4f62d053703280e10"
      }
    ]
  }
}
Edited by Angelblue05
Guest
This topic is now closed to further replies.
×
×
  • Create New...