Kodi Community Forum

Full Version: [RELEASE] Trakt Utilities (addon for Trakt.tv usage)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Keep getting Invalid Development API Key on mine using the Zip directly from Github.
Anyone else getting it?

Which is the offical version at the moment?

@tiwas - Yes.
Why does it think that I watched this movie in 1969?

Image


Code:
script.TraktUtilities-0.6.5.zip
Aeon MQ 3
XBMC 11.0 - Eden

Thanks.

I've got a couple of questions.
  1. Is it possible to disable the notifications?
  2. I installed OpenELEC and had to start again from scratch. After installing/configuring I synced watched movies/episodes. I was expecting all the movies/episodes that were marked as watched on Trakt to be marked as watched in XBMX but this didn't happen. None of my movies were marked and only a few of my episodes were marked. Should everything have been synced?
First, let me thank you for your work thus far.

I hope someone can help me with my issue. Why doesn't my widget show my updates but the trakt.tv site does?
Naturally I assume I am doing something wrong.

track.tv utilities 6.4 version
I am using the mysql database. XBMC Eden w/Confluence skin.
(2012-06-20, 14:39)unabatedshagie Wrote: [ -> ]I've got a couple of questions.
  1. Is it possible to disable the notifications?
  2. I installed OpenELEC and had to start again from scratch. After installing/configuring I synced watched movies/episodes. I was expecting all the movies/episodes that were marked as watched on Trakt to be marked as watched in XBMX but this didn't happen. None of my movies were marked and only a few of my episodes were marked. Should everything have been synced?

As to number 1, I am not sure what you're looking for.
2. I have done the same thing, it worked fine for me and I am using OpenELEC so I am not sure why it didn't work for you. (This post is just informational)
It's working for me today. The only difference is that I had to watch from start to finish without skipping Huh. It seems like it didn't mark as watched after the 75% mark.


(2012-06-20, 09:07)hoju3508 Wrote: [ -> ]Why does it think that I watched this movie in 1969?

Image


Code:
script.TraktUtilities-0.6.5.zip
Aeon MQ 3
XBMC 11.0 - Eden

Thanks.

(2012-06-20, 20:54)Reginald Wrote: [ -> ]
(2012-06-20, 14:39)unabatedshagie Wrote: [ -> ]I've got a couple of questions.
  1. Is it possible to disable the notifications?
  2. I installed OpenELEC and had to start again from scratch. After installing/configuring I synced watched movies/episodes. I was expecting all the movies/episodes that were marked as watched on Trakt to be marked as watched in XBMX but this didn't happen. None of my movies were marked and only a few of my episodes were marked. Should everything have been synced?

As to number 1, I am not sure what you're looking for.
2. I have done the same thing, it worked fine for me and I am using OpenELEC so I am not sure why it didn't work for you. (This post is just informational)
I'm talking about the notifications that pop up when it starts syncing watched movies etc.

I'll try syncing everything again tonight and see.
Does TU support scrobbling when streaming from XBMC to PS3 or any other media device.














Image
(2012-06-21, 10:03)hoju3508 Wrote: [ -> ]It's working for me today. The only difference is that I had to watch from start to finish without skipping Huh. It seems like it didn't mark as watched after the 75% mark.


(2012-06-20, 09:07)hoju3508 Wrote: [ -> ]Why does it think that I watched this movie in 1969?

Image


Code:
script.TraktUtilities-0.6.5.zip
Aeon MQ 3
XBMC 11.0 - Eden

Thanks.

This has just happened to me, signed up for Trackt, added the plugin above, and its synced but set all my movies to 1970!

http://trakt.tv/user/willuk2010/history/movies


@WillUK2010, what version of TU are you using? Did you look at the log file to see if it's something obvious? I looked at mine when this happened but it wasn't obvious to me what's happening.

BTW, other people have reported this "1970" problem.
Hey,

TraktUtilities-0.6.5 is the version i installed... only thing i do see in my logs, is


18:46:42 T:2929716080 ERROR: Error Type: <class 'mysql.connector.errors.ProgrammingError'>
18:46:42 T:2929716080 ERROR: Error Contents: 1049: Unknown database 'myvideo64'
18:46:42 T:2929716080 ERROR: Traceback (most recent call last):
File "/home/will/.xbmc/addons/script.TraktUtilities-0.6.5/service.py", line 67, in <module>
autostart()
File "/home/will/.xbmc/addons/script.TraktUtilities-0.6.5/service.py", line 56, in autostart
syncSeenTVShows(True)
File "/home/will/.xbmc/addons/script.TraktUtilities-0.6.5/sync_update.py", line 956, in syncSeenTVShows
setXBMCEpisodePlaycount(tvshow['tvdb_id'], episode[0], episode[1], 1)
File "/home/will/.xbmc/addons/script.TraktUtilities-0.6.5/utilities.py", line 437, in setXBMCEpisodePlaycount
" )")
File "/home/will/.xbmc/addons/script.TraktUtilities-0.6.5/raw_xbmc_database.py", line 34, in execute
return RawXbmcDb.query(str)
File "/home/will/.xbmc/addons/script.TraktUtilities-0.6.5/raw_xbmc_database.py", line 15, in query
_RawXbmcDb__conn = _findXbmcDb()
File "/home/will/.xbmc/addons/script.TraktUtilities-0.6.5/raw_xbmc_database.py", line 92, in _findXbmcDb
return mysql.connector.Connect(host = host, port = int(port), database = database, user = user, password = passwd)
File "/home/will/.xbmc/addons/script.module.myconnpy/lib/mysql/connector/__init__.py", line 45, in Connect
return MySQLConnection(*args, **kwargs)
File "/home/will/.xbmc/addons/script.module.myconnpy/lib/mysql/connector/connection.py", line 366, in __init__
self.connect(*args, **kwargs)
File "/home/will/.xbmc/addons/script.module.myconnpy/lib/mysql/connector/connection.py", line 411, in connect
ssl=(ssl_ca, ssl_cert, ssl_key))
File "/home/will/.xbmc/addons/script.module.myconnpy/lib/mysql/connector/connection.py", line 449, in _open_connection
self._charset)
File "/home/will/.xbmc/addons/script.module.myconnpy/lib/mysql/connector/protocol.py", line 347, in do_auth
buf = self.conn.recv()
File "/home/will/.xbmc/addons/script.module.myconnpy/lib/mysql/connector/connection.py", line 179, in recv_plain
errors.raise_error(buf)
File "/home/will/.xbmc/addons/script.module.myconnpy/lib/mysql/connector/errors.py", line 82, in raise_error
raise get_mysql_exception(errno,errmsg)
ProgrammingError: 1049: Unknown database 'myvideo64'
(2012-06-18, 00:17)DejaVu Wrote: [ -> ]Keep getting Invalid Development API Key on mine using the Zip directly from Github.
Anyone else getting it?

Which is the offical version at the moment?

I keep getting this too..not sure what the deal is


It shows that you have watched the show, and the release date was December 31, 1969, I believe!

(2012-06-20, 09:07)hoju3508 Wrote: [ -> ]Why does it think that I watched this movie in 1969?

Image


Code:
script.TraktUtilities-0.6.5.zip
Aeon MQ 3
XBMC 11.0 - Eden

Thanks.

Tonight I continued to watch You Again (2010) from the other night, but now instead of marking it "Watched" it's "Seen" instead, and has a date of Dec 31, 1969. Below is my log file. The ERROR I believe has to do with the fact that my xbmc window was minimized a couple of times.

Code:
00:11:16 T:8328  NOTICE: Trakt Utilities: trakt json url: /movie/watching/48dfcb4813134da82152984e8c4f329bc8b8b46a
00:11:16 T:8328  NOTICE: Trakt Utilities: [Scrobbler] Watch responce: {u'status': u'success', u'movie': {u'year': u'2010', u'tmdb_id': u'38303', u'imdb_id': u'tt1414382', u'title': u'You Again'}, u'twitter': False, u'tumblr': False, u'facebook': False, u'message': u'watching You Again (2010)'}
00:11:19 T:6684   ERROR: Window Translator: Can't find window pvrosdchannels
00:11:19 T:6684   ERROR: Window Translator: Can't find window pvrosdguide
00:11:19 T:6684   ERROR: Control 1 in window 10099 has been asked to focus, but it can't
00:19:33 T:8336   ERROR: Previous line repeats 6 times.
00:19:33 T:8336  NOTICE: Trakt Utilities: [Scrobbler] Pinging watching {u'type': u'movie', u'id': 781}
00:19:33 T:8336  NOTICE: Trakt Utilities: trakt json url: /movie/watching/48dfcb4813134da82152984e8c4f329bc8b8b46a
00:19:34 T:8336  NOTICE: Trakt Utilities: [Scrobbler] Watch responce: {u'status': u'success', u'movie': {u'year': u'2010', u'tmdb_id': u'38303', u'imdb_id': u'tt1414382', u'title': u'You Again'}, u'twitter': False, u'tumblr': False, u'facebook': False, u'message': u'watching You Again (2010)'}
00:20:54 T:6684   ERROR: Control 1 in window 10099 has been asked to focus, but it can't
00:27:54 T:8336   ERROR: Previous line repeats 4 times.
00:27:54 T:8336  NOTICE: Trakt Utilities: [Scrobbler] Pinging watching {u'type': u'movie', u'id': 781}
00:27:54 T:8336  NOTICE: Trakt Utilities: trakt json url: /movie/watching/48dfcb4813134da82152984e8c4f329bc8b8b46a
00:27:54 T:8336  NOTICE: Trakt Utilities: [Scrobbler] Watch responce: {u'status': u'success', u'movie': {u'year': u'2010', u'tmdb_id': u'38303', u'imdb_id': u'tt1414382', u'title': u'You Again'}, u'twitter': False, u'tumblr': False, u'facebook': False, u'message': u'watching You Again (2010)'}
00:36:14 T:8336  NOTICE: Trakt Utilities: [Scrobbler] Pinging watching {u'type': u'movie', u'id': 781}
00:36:15 T:8336  NOTICE: Trakt Utilities: trakt json url: /movie/watching/48dfcb4813134da82152984e8c4f329bc8b8b46a
00:36:15 T:8336  NOTICE: Trakt Utilities: [Scrobbler] Watch responce: {u'status': u'success', u'movie': {u'year': u'2010', u'tmdb_id': u'38303', u'imdb_id': u'tt1414382', u'title': u'You Again'}, u'twitter': False, u'tumblr': False, u'facebook': False, u'message': u'watching You Again (2010)'}
00:42:03 T:6684   ERROR: Control 1 in window 10099 has been asked to focus, but it can't
00:44:35 T:8336   ERROR: Previous line repeats 2 times.
00:44:35 T:8336  NOTICE: Trakt Utilities: [Scrobbler] Pinging watching {u'type': u'movie', u'id': 781}
00:44:36 T:8336  NOTICE: Trakt Utilities: trakt json url: /movie/watching/48dfcb4813134da82152984e8c4f329bc8b8b46a
00:44:37 T:8336  NOTICE: Trakt Utilities: [Scrobbler] Watch responce: {u'status': u'success', u'movie': {u'year': u'2010', u'tmdb_id': u'38303', u'imdb_id': u'tt1414382', u'title': u'You Again'}, u'twitter': False, u'tumblr': False, u'facebook': False, u'message': u'watching You Again (2010)'}
00:52:57 T:8336  NOTICE: Trakt Utilities: [Scrobbler] Pinging watching {u'type': u'movie', u'id': 781}
00:52:57 T:8336  NOTICE: Trakt Utilities: trakt json url: /movie/watching/48dfcb4813134da82152984e8c4f329bc8b8b46a
00:52:57 T:8336  NOTICE: Trakt Utilities: [Scrobbler] Watch responce: {u'status': u'success', u'movie': {u'year': u'2010', u'tmdb_id': u'38303', u'imdb_id': u'tt1414382', u'title': u'You Again'}, u'twitter': False, u'tumblr': False, u'facebook': False, u'message': u'watching You Again (2010)'}
01:01:17 T:8336  NOTICE: Trakt Utilities: [Scrobbler] Pinging watching {u'type': u'movie', u'id': 781}
01:01:18 T:8336  NOTICE: Trakt Utilities: trakt json url: /movie/watching/48dfcb4813134da82152984e8c4f329bc8b8b46a
01:01:23 T:8336  NOTICE: Trakt Utilities: [Scrobbler] Watch responce: {u'status': u'success', u'movie': {u'year': u'2010', u'tmdb_id': u'38303', u'imdb_id': u'tt1414382', u'title': u'You Again'}, u'twitter': False, u'tumblr': False, u'facebook': False, u'message': u'watching You Again (2010)'}
01:08:49 T:9032 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
01:08:50 T:9028 WARNING: CDVDMessageQueue(video)::Get - asked for new data packet, with nothing available
01:08:50 T:8980  NOTICE: CDVDPlayer::OnExit()
01:08:50 T:8980  NOTICE: DVDPlayer: eof, waiting for queues to empty
01:08:50 T:8980  NOTICE: DVDPlayer: closing audio stream
01:08:50 T:8980  NOTICE: Closing audio stream
01:08:50 T:8980  NOTICE: CDVDMessageQueue(audio)::WaitUntilEmpty
01:08:50 T:8980  NOTICE: Waiting for audio thread to exit
01:08:50 T:9032  NOTICE: thread end: CDVDPlayerAudio::OnExit()
01:08:50 T:8980  NOTICE: Closing audio device
01:08:50 T:8980  NOTICE: Deleting audio codec
01:08:50 T:8980  NOTICE: DVDPlayer: closing video stream
01:08:50 T:8980  NOTICE: Closing video stream
01:08:50 T:8980  NOTICE: CDVDMessageQueue(video)::WaitUntilEmpty
01:08:50 T:8980  NOTICE: waiting for video thread to exit
01:08:50 T:9028   ERROR: Got MSGQ_ABORT or MSGO_IS_ERROR return true
01:08:50 T:9028  NOTICE: thread end: video_thread
01:08:50 T:8980  NOTICE: deleting video codec
01:08:50 T:8980  NOTICE: DVDPlayer: closing subtitle stream
01:08:50 T:8980  NOTICE: Closing subtitle stream
01:08:50 T:8980  NOTICE: CDVDPlayer::OnExit() deleting demuxer
01:08:50 T:8980  NOTICE: CDVDPlayer::OnExit() deleting input stream
01:08:50 T:8328  NOTICE: Trakt Utilities: [Notification Service] message: {"jsonrpc":"2.0","method":"Player.OnStop","params":{"data":null,"sender":"xbmc"}}
01:08:50 T:8328  NOTICE: Trakt Utilities: trakt json url: /movie/cancelwatching/48dfcb4813134da82152984e8c4f329bc8b8b46a
01:08:51 T:8328  NOTICE: Trakt Utilities: [Scrobbler] Cancel watch responce: {u'status': u'success', u'message': u'cancelled watching'}
01:08:54 T:6684  NOTICE: CDVDPlayer::CloseFile()
01:08:54 T:6684 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
01:08:54 T:6684  NOTICE: DVDPlayer: waiting for threads to exit
01:08:54 T:6684  NOTICE: DVDPlayer: finished waiting
01:08:54 T:8328  NOTICE: Trakt Utilities: [Notification Service] message: {"jsonrpc":"2.0","method":"VideoLibrary.OnUpdate","params":{"data":{"item":{"id":781,"type":"movie"},"playcount":1},"sender":"xbmc"}}
01:08:54 T:8328  NOTICE: Trakt Utilities: [Instant-sync] (movie playcount): {u'movieid': 781, u'title': u'You Again', u'lastplayed': u'2012-06-23 01:08:53', u'label': u'You Again', u'imdbnumber': u'tt1414382', u'year': 2010, u'playcount': 1}
01:08:54 T:8328  NOTICE: Trakt Utilities: trakt json url: /movie/seen/48dfcb4813134da82152984e8c4f329bc8b8b46a
01:08:55 T:8328  NOTICE: Trakt Utilities: [Instant-sync] (movie playcount): responce {u'status': u'success', u'skipped': 0, u'already_exist': 0, u'skipped_movies': [], u'already_exist_movies': [], u'inserted': 1}
01:11:50 T:8328  NOTICE: Trakt Utilities: [Notification Service] message: {"jsonrpc":"2.0","method":"GUI.OnScreensaverActivated","params":{"data":null,"sender":"xbmc"}}
01:12:00 T:9080 WARNING: JpegIO: Error 55: Not a JPEG file: starts with 0x%02x 0x%02x
01:17:12 T:8328 WARNING: Previous line repeats 1 times.
01:17:12 T:8328  NOTICE: Trakt Utilities: [Notification Service] message: {"jsonrpc":"2.0","method":"GUI.OnScreensaverDeactivated","params":{"data":null,"sender":"xbmc"}}
01:17:13 T:6684   ERROR: Control 1 in window 10099 has been asked to focus, but it can't
01:18:52 T:3584   ERROR: Previous line repeats 1 times.
01:18:52 T:3584  NOTICE: -->Python Interpreter Initialized<--
01:18:52 T:6220  NOTICE: -->Python Interpreter Initialized<--
01:18:59 T:6684  NOTICE: Storing total System Uptime
01:18:59 T:6684  NOTICE: Saving settings
01:18:59 T:8328  NOTICE: Trakt Utilities: [Notification Service] message: {"jsonrpc":"2.0","method":"System.OnQuit","params":{"data":null,"sender":"xbmc"}}
01:18:59 T:8328  NOTICE: Trakt Utilities: Notification service stopping
01:18:59 T:6684  NOTICE: stop all
01:18:59 T:6684  NOTICE: ES: Stopping event server
01:18:59 T:6684  NOTICE: stopping zeroconf publishing
01:18:59 T:6684  NOTICE: Webserver: Stopping...
01:18:59 T:6684  NOTICE: WebServer: Stopped the webserver
01:18:59 T:6684  NOTICE: Webserver: Stopped...
01:18:59 T:8288  NOTICE: ES: UDP Event server stopped
01:19:00 T:6684  NOTICE: stop sap announcement listener
01:19:00 T:6684  NOTICE: clean cached files!
01:19:00 T:6684  NOTICE: unload skin
01:19:00 T:8276  NOTICE: StorageServer-0.9.2 Closed down
01:19:03 T:8336  NOTICE: Trakt Utilities: Scrobbler stopping
01:19:03 T:6684  NOTICE: stop python
01:19:03 T:6684  NOTICE: stopped
01:19:03 T:6684  NOTICE: destroy
01:19:03 T:6684  NOTICE: closing down remote control service
01:19:03 T:6684  NOTICE: unload sections
Any idea on why Trakt doesn't scrobble anything?
http://pastebin.com/Cm3f9MFv