[RELEASED] scrobble only plugin for XBMC Eden

  • Announcement
  • Updated 3 years ago
Update: the plugin is available in the official Eden add-on repository now!

I've created a new scrobble only plugin for XBMC Eden. I'm sure most of you are using trakt utilities and that is likely working just fine for you. No need to use this plugin if you have TU up and running. This new plugin is a stripped down version of TU so we can add it to the official XBMC add-on repository.

It's working quite well for me, but I'd like to have you guys beta test and see how it works for you. The baseline is TU, but I've also tweaked a few things. Pausing/resuming when watching will work properly and pick up the correct location.

A bigger update is most remote streaming content will now scrobble. If the media is correctly identified (i.e. a show has the title/season/episode and a movie has the title/year) it will scrobble as a name based match on trakt.

Further instructions on the github page. Please let me know how it works in your setup. Thanks!

https://github.com/rectifyer/script.t...
Photo of Justin

Justin, Founder

  • 2141 Posts
  • 212 Reply Likes
  • happy

Posted 3 years ago

  • 1
Photo of leonsmy

leonsmy

  • 16 Posts
  • 0 Reply Likes
I guess the proof is in the title - but this cannot be Beta tested on Frodo builds no?
Photo of Justin

Justin, Founder

  • 2141 Posts
  • 212 Reply Likes
I haven't tried it, but I would assume it works fine on frodo as well. It's pretty basic in what its doing.
Photo of ricardoflores2323

ricardoflores2323

  • 12 Posts
  • 3 Reply Likes
What about xxx streams?
Photo of Justin

Justin, Founder

  • 2141 Posts
  • 212 Reply Likes
trakt blocks those on the API level
Photo of hjordenH

hjorden

  • 144 Posts
  • 5 Reply Likes
TU has never worked properly for me.
I used the old official plugin, and it worked perfect for Eden.
But today it updated to this, and stopped working - and will not work if i try to go back.
I reinstalled the new version, but sill no luck.

I get two erroes in the log:

ERROR: ...\Roaming\XBMC\addons\script.trakt\nbhttpconnection.py:14: DeprecationWarning: the sha module is deprecated; use the hashlib module instead except ImportError: import sha # Python 2.5 and earlier

and

ERROR: Python script "...\Roaming\XBMC\addons\script.trakt\default.py" does not exist

and then it just says:
NOTICE: [trakt] [Notification Service] Waiting~
Photo of Justin

Justin, Founder

  • 2141 Posts
  • 212 Reply Likes
Try completely removing the trakt plugin from your addons folder (also remove the settings from the userdata folder), then install it from the repo again. It must have kept something from the Dharma version that is causing the issue. This new one doesn't have a default.py file anymore. The sha warning can be ignored.

I did all my testing on a fresh xbmc install and it worked quite well, so cleaning it out and installing fresh should work too.
Photo of hjordenH

hjorden

  • 144 Posts
  • 5 Reply Likes
That did not do the trick, the same in the log.
I would like to avoid to do a fresh install, but with no scrobble support, so be it.
Photo of Justin

Justin, Founder

  • 2141 Posts
  • 212 Reply Likes
I seem to remember the dharma plugin also creates an entry in an autoexec.py file and I'm guessing that is still there as an invalid reference. I'll try to remember more specific, but I think there are some old threads here or on the xbmc forum with the exact thing that needs to be removed.

You shouldn't have to do a fresh install, I think its just a matter of cleaning out the old plugin fully.
Photo of hjordenH

hjorden

  • 144 Posts
  • 5 Reply Likes
I found the autoexec.py file and deleted the line referering to trakt. But still no luck. My trakt profile is not showing that im watching something.
The error about default.py is not showing anymore.
But i just get a bunch of NOTICE: [trakt] [Notification Service] Waiting~
Photo of Justin

Justin, Founder

  • 2141 Posts
  • 212 Reply Likes
In the settings, you have scrobbling enabled for tv and movies? Are you watching in xbmc library mode still?

The waiting message is normal. It should show a notification message as soon as you play something. Then it should post your info to the trakt API. I haven't seen any issues like this, can you check the version of xbmc and make sure its the final eden build and not a beta?
Photo of hjordenH

hjorden

  • 144 Posts
  • 5 Reply Likes
Since i installed it, i only but in my username/password, so scrobble is on.
XBMC is on library.
I get none notification from trakt.
And its the final Eden build.

:-( :-(
Photo of Justin

Justin, Founder

  • 2141 Posts
  • 212 Reply Likes
Can you post a full xbmc log with debug on in the plugin, then play a movie and a tv show. Hard to guess without seeing a full log.
Photo of hjordenH

hjorden

  • 144 Posts
  • 5 Reply Likes
Debug was on - so hope its okay you get this one - its for the most of the day, and have a movie and some episodes.

http://pastebin.com/wjEmUYFu
Photo of Justin

Justin, Founder

  • 2141 Posts
  • 212 Reply Likes
Very strange. It's like the service isn't listening to the xbmc events. Can you post the addon.xml file, i'm thinking it's still some sort of problem where it tried to merge the 2 plugins. I've never had any issues like this though.

Another thing to try could be removing all traces of the new plugin, then get the files from github and manually add it to your addons folder that way. Github has instructions how to do that in the readme.
Photo of hjordenH

hjorden

  • 144 Posts
  • 5 Reply Likes
Here is the xml file - http://pastebin.com/6rYB6gCt

I'm gonna try the other thing later.

Btw. i just tried on my phone, and it worked without any problems. But that was a fresh install.
Photo of Justin

Justin, Founder

  • 2141 Posts
  • 212 Reply Likes
Yeah that file looks fine. So it's definitely an issue with having the old dharma 0.1.5 plugin installed, then installing (or it autoupdates) to the new 1.0.0 eden.

I tested running TU 0.6.5 and trakt 1.0.0 and that works ok. I didn't test with having the old dharma install though.
Photo of hjordenH

hjorden

  • 144 Posts
  • 5 Reply Likes
I just tried to do it manually like you said. I did a search in XBMC folder and deleted everything from trakt. But it still won't work. Maybe there is some reference in some other file?
Photo of hjordenH

hjorden

  • 144 Posts
  • 5 Reply Likes
Just found out my bedroom XBMC, is working after auto updating :s
Photo of hjordenH

hjorden

  • 144 Posts
  • 5 Reply Likes
I did a clean install, and it's working now. No notification though.
Photo of Justin

Justin, Founder

  • 2141 Posts
  • 212 Reply Likes
What notification? Does it show up on the site and scrobble ok?
Photo of hjordenH

hjorden

  • 144 Posts
  • 5 Reply Likes
You wrote 'It should show a notification message as soon as you play something' - maybe you meant the log xD

But yeah, it's working now! :-)
Photo of hjordenH

hjorden

  • 144 Posts
  • 5 Reply Likes
I said that to early.. It's not working today, i haven't changed anything, it just stopped working.
Nothing new in the log :-/
Photo of hjordenH

hjorden

  • 144 Posts
  • 5 Reply Likes
I think figured it out! Both why the TU never worked for me, and why this new official didn't work.
The JSON server is using port 9090, and i have another app using that port.
I shut down the app and now its working.
When i tried yesterday, i had just restarted and apperently not startet the app.
My other XBMC box have nothing on port 9090.

I don't know much about it, but the JSON thing was something new in Eden, right? Then the old plugin didn't use it.

For me it all make sence now xD
Photo of Justin

Justin, Founder

  • 2141 Posts
  • 212 Reply Likes
Ah thanks for investigating and figuring this out, now I remember the port thing coming up for trakt utilities as well. The JSON API is newer in Eden yes and the new plugin uses that for everything. The nicest thing is it fires events when you start, pause, stop and that makes the plugin much easier than having to loop and wait to see what is happening.
Photo of hjordenH

hjorden

  • 144 Posts
  • 5 Reply Likes
It was actually a bit of a coincidence i found the solution. I was searching for another bug i had in XBMC :)

Is it TU or this addon that makes movies/episodes marked as seen on the web immediately after marking them in XBMC?
Photo of Justin

Justin, Founder

  • 2141 Posts
  • 212 Reply Likes
Update: this plugin is in the official repo as of today.
Photo of ansonmatthewA

ansonmatthew

  • 5 Posts
  • 0 Reply Likes
hi I have a question about the plugin. will it work for anime that is named in absolute order rather than season order? TU requires that they are in season naming which has forced me to rename my anime (which I would love to be able to return to absolute ordering).
cheers
Photo of Justin

Justin, Founder

  • 2141 Posts
  • 212 Reply Likes
No it doesn't support absolute ordering. That is a great feature request though, can you add it on the github project so it's easier to track?
Photo of ansonmatthewA

ansonmatthew

  • 5 Posts
  • 0 Reply Likes
just added it to github, hopefully I did it right :P https://github.com/rectifyer/script.t...
Photo of ansonmatthewA

ansonmatthew

  • 5 Posts
  • 0 Reply Likes
Cheers Justin working a treat :)
Photo of Alex

Alex

  • 3 Posts
  • 0 Reply Likes
Silly question but what's it called? When I search for Trakt in the addons section only the installed old one shows up, not this new one.
Photo of Justin

Justin, Founder

  • 2141 Posts
  • 212 Reply Likes
It is just called trakt. It should be under Services. If you had the dharma one already installed, maybe that is causing it to not show up?
Photo of Alex

Alex

  • 3 Posts
  • 0 Reply Likes
I've got 0.65 from the site that I manually had to install. I'll remove it and see if the repo version shows.
Photo of Justin

Justin, Founder

  • 2141 Posts
  • 212 Reply Likes
trakt utilities is a differently named plugin, so it can technically allow both to be install at the same time. You can also try just downloading it manually from github, but I confirmed it shows up under Services to download for me.
Photo of Alex

Alex

  • 3 Posts
  • 0 Reply Likes
Checked again. Not showing. I'm using OpenELEC if that makes any difference (not that I think it should)
Photo of hjordenH

hjorden

  • 144 Posts
  • 5 Reply Likes
Why is the plugin marking some episodes as 'seen' and not as 'watched'?
Photo of Justin

Justin, Founder

  • 2141 Posts
  • 212 Reply Likes
This plugin doesn't have that functionality, but TU does. Do you have that installed also?
Photo of hjordenH

hjorden

  • 144 Posts
  • 5 Reply Likes
Yea, but it did at the same time it is supposed to mark it at watched.
Photo of Justin

Justin, Founder

  • 2141 Posts
  • 212 Reply Likes
TU has functionality that instantly toggles things as seen on trakt when xbmc marks them as seen. So, it's probably that. You should be able to see things in the log when using the official trakt plugin and where it scrobbles.
Photo of hjordenH

hjorden

  • 144 Posts
  • 5 Reply Likes
Ah okay, Thats acutally nice.

Then Trakt official didn't scrobble.
I will add a log if it happens again.
Photo of Homer Jr

Homer Jr

  • 2 Posts
  • 0 Reply Likes
@Justin, this is working great for movies, but it's not scrobbling TV shows. Is there an option to enable TV shows as well as movies?
Photo of Homer Jr

Homer Jr

  • 2 Posts
  • 0 Reply Likes
[EDIT] TU + trakt 1.0.0 can run together, just disable scrobbling in TU.

Didn't know that I can run them together. I'll just disable scrobbling of movies in TU but keep scrobbling of TV shows in TU to get around this.
Photo of Justin

Justin, Founder

  • 2141 Posts
  • 212 Reply Likes
Also check out 1.0.1 in github, it fixes some issues with TV scrobbling. You can definitely run trakt + TU at the same time though, just disable scrobbling in TU like you said.
Photo of Justin

Justin, Founder

  • 2141 Posts
  • 212 Reply Likes
xbmc thread to discuss this plugin too:
http://forum.xbmc.org/showthread.php?...