Page 1 of 1

Serviio 1.8: trakt not scrobbling TV episodes

PostPosted: Sat Dec 17, 2016 11:06 pm
by norm
Hi Zip

I am having problems with getting serviio to scrobble TV show episodes to trakt. I am using XMBC .nfo files as the source of the metadata. The metadata in the .nfo files seems to be valid. Example of an episode.nfo below:
  Code:
...
<episodedetails>
  <title>Leviathan</title>
  <showtitle>DC's Legends of Tomorrow</showtitle>
  <season>1</season>
  <episode>13</episode>
  <uniqueid>5519151</uniqueid>
...

I would have thought serviio would use <uniqueid>5519151</uniqueid> which is the tvdb id of the episode to scrobble but this doesn't seem to be the case. Any ideas of what is missing?

Re: Serviio 1.8: trakt not scrobbling TV episodes

PostPosted: Sun Dec 18, 2016 11:01 am
by zip
Serviio looks for the <id> element, and if it includes ttXXXXXXX value it assumes it's the IMDB id.

Are you sure the uniqueId is supposed to be present and it's always tvdb id? Any link to XBMC docs on this?

Re: Serviio 1.8: trakt not scrobbling TV episodes

PostPosted: Sun Dec 18, 2016 4:22 pm
by paul33
I have the same thing with xbmc nfo files, i use ember media manager to create them

<id> element is shown in the tvshow.nfo file

  Code:
<title>The Simpsons</title>
  <id>71663</id>
  <imdb>tt0096697</imdb>
  <tmdb>456</tmdb>
  <language>en-US</language>
  <rating>8.9</rating>
  <votes>815</votes>
  <genre>Animation</genre>


In the episode nfo it only has tvdb uniqueid field for the episode

  Code:
 <title>Simpsons Christmas Stories</title>
  <runtime>25</runtime>
  <aired>2005-12-18</aired>
  <rating>7.2</rating>
  <votes>29</votes>
  <season>17</season>
  <episode>9</episode>
 <dateadded>2016-12-18 16:02:06</dateadded>
  <uniqueid>302870</uniqueid>

Re: Serviio 1.8: trakt not scrobbling TV episodes

PostPosted: Mon Dec 19, 2016 8:24 am
by norm
zip wrote:Are you sure the uniqueId is supposed to be present and it's always tvdb id? Any link to XBMC docs on this?

Unfortunately I cannot find any documentation on XMBC/KODI's site about whether this is always supposed to be the TVDB for TV Shows or Episodes. However both Ember Media Manager and Sickrage seem to populate the uniqueid tag. To verify that the unqiueid tag is populated in the first place I am guessing that the Sickrage/EmberMM developers have exported their XBMC library to NFO files then trawled through those to find what is going on. I did find NFO files/TV shows
Filename should be tvshow.nfo (Exact, NOT the name of the TV show) in the root folder of the TV Show that points to a show on TheTVDB.com.
It seems that the uniqueid is put in by the TVDB scraper.

I wouldn't reinvent the wheel. However Serviio currently obtains and posts id's to trakt.tv would seem to be easiest. Another approach could be the traktAPI allows you to scrobble an episode object which does not have episode ids, but have show info.
  Code:
Episode checkin if you don't have episode ids, but have show info. Send show and episode objects.
...
Entity payload = Entity.json("{  'show': {    'title': 'Breaking Bad'  },  'episode': {    'season': 1,    'number': 1  },  'sharing': {    'facebook': true,    'twitter': true,    'tumblr': false  },  'message': 'I'm the one who knocks!',  'app_version': '1.0',  'app_date': '2014-09-22'}");

So whatever works the best and that seems to be the best way is what I would go for.

Re: Serviio 1.8: trakt not scrobbling TV episodes

PostPosted: Mon Dec 19, 2016 12:06 pm
by zip

Re: Serviio 1.8: trakt not scrobbling TV episodes

PostPosted: Mon Dec 19, 2016 12:22 pm
by norm
No problem. Thanks!