[RELEASE] Trakt Utilities (addon for Trakt.tv usage)

  Thread Rating:
  • 7 Votes - 4.29 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
othrayte Offline
Fan
Posts: 452
Joined: Apr 2011
Reputation: 3
Location: Melbourne, Australia
Post: #1221
(2012-04-28 15:00)pulsecode-sgnl Wrote:  
(2012-04-20 15:37)othrayte Wrote:  
(2012-04-19 00:53)pulsecode-sgnl Wrote:  Late response, but here's my updated log with that version.

http://pastebin.com/zvjLkjxi

This log shows the following message
Code:
ERROR: JSONRPC Server: Failed to bind serversocket

Could you please recreate the log and check if this message stays, if it does follow this https://github.com/Manromen/script.Trakt...on-refused[/code]

I was unable to replicate the error message in the previous log. I did however get a new log with several of the following errors.
Code:
NOTICE: Trakt Utilities: [NotificationService] ERROR: EOFError
Maybe this will be more helpful?

Thanks.

Could you please post a full debug log, and try this https://github.com/Manromen/script.Trakt...on-refused
(2012-05-01 15:21)JonasL1 Wrote:  Sync seen tv shows or srobbling doesn't work on my Apple TV 2. I receive 'script error: servive.py. Here is my log file of the error:

11:39:55 T:103706624 ERROR: Error Type: <type 'exceptions.TypeError'>
11:39:55 T:103706624 ERROR: Error Contents: cannot concatenate 'str' and 'NoneType' objects
11:39:55 T:103706624 ERROR: Traceback (most recent call last):
File "/var/mobile/Library/Preferences/XBMC/addons/script.TraktUtilities-0.6.5/service.py", line 67, in <module>
autostart()
File "/var/mobile/Library/Preferences/XBMC/addons/script.TraktUtilities-0.6.5/service.py", line 44, in autostart
if autosync_cleantvshowcollection: cleanTVShowCollection(True)
File "/var/mobile/Library/Preferences/XBMC/addons/script.TraktUtilities-0.6.5/sync_update.py", line 493, in cleanTVShowCollection
tvshows_string += ", " + to_unlibrary[i]['title']
TypeError: cannot concatenate 'str' and 'NoneType' objects

xbmc.log Here is the full log file.

(2012-05-01 17:35)papampi Wrote:  and i get this error recently :
Code:
19:59:00 T:2789190464    INFO: -->Python script returned the following error<--
19:59:00 T:2789190464   ERROR: Error Type: <class 'mysql.connector.errors.ProgrammingError'>
19:59:00 T:2789190464   ERROR: Error Contents: 1049: Unknown database 'myvideo60'
19:59:00 T:2789190464   ERROR: Traceback (most recent call last):
                                              File "/home/payam/.xbmc/addons/script.TraktUtilities-0.6.5/service.py", line 67, in <module>
                                                autostart()
                                              File "/home/payam/.xbmc/addons/script.TraktUtilities-0.6.5/service.py", line 56, in autostart
                                                syncSeenTVShows(True)
                                              File "/home/payam/.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/payam/.xbmc/addons/script.TraktUtilities-0.6.5/utilities.py", line 437, in setXBMCEpisodePlaycount
                                                " )")
                                              File "/home/payam/.xbmc/addons/script.TraktUtilities-0.6.5/raw_xbmc_database.py", line 34, in execute
                                                return RawXbmcDb.query(str)
                                              File "/home/payam/.xbmc/addons/script.TraktUtilities-0.6.5/raw_xbmc_database.py", line 15, in query
                                                _RawXbmcDb__conn = _findXbmcDb()
                                              File "/home/payam/.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/payam/.xbmc/addons/script.module.myconnpy/lib/mysql/connector/__init__.py", line 45, in Connect
                                                return MySQLConnection(*args, **kwargs)
                                              File "/home/payam/.xbmc/addons/script.module.myconnpy/lib/mysql/connector/connection.py", line 366, in __init__
                                                self.connect(*args, **kwargs)
                                              File "/home/payam/.xbmc/addons/script.module.myconnpy/lib/mysql/connector/connection.py", line 411, in connect
                                                ssl=(ssl_ca, ssl_cert, ssl_key))
                                              File "/home/payam/.xbmc/addons/script.module.myconnpy/lib/mysql/connector/connection.py", line 449, in _open_connection
                                                self._charset)
                                              File "/home/payam/.xbmc/addons/script.module.myconnpy/lib/mysql/connector/protocol.py", line 347, in do_auth
                                                buf = self.conn.recv()
                                              File "/home/payam/.xbmc/addons/script.module.myconnpy/lib/mysql/connector/connection.py", line 179, in recv_plain
                                                errors.raise_error(buf)
                                              File "/home/payam/.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 'myvideo60'
19:59:00 T:2789190464    INFO: -->End of Python script error report<--
19:59:00 T:3014940416   DEBUG: ------ Window Init (DialogKaiToast.xml) ------
19:59:00 T:2789190464    INFO: Scriptresult: Waiting on thread 18446744072228952896
19:59:01 T:2681178944    INFO: JSONRPC Server: Disconnection detected
19:59:04 T:2789190464    INFO: Python script stopped
19:59:04 T:2789190464   DEBUG: Thread XBPyThread 2789190464 terminating
19:59:04 T:3014940416   DEBUG: waiting for python thread 5 to stop
19:59:04 T:3014940416   DEBUG: python thread 5 destructed
19:59:06 T:3014940416   DEBUG: ------ Window Deinit (DialogKaiToast.xml) ------

Thanks for reporting, I believe these issues have already been fixed for the next version.
(2012-05-02 07:46)anzerman Wrote:  Hi
Trying to setup TU(0.6.5) with latest nightly build(30-04-12) of xbmc.
it will scrobble shows. As in when watching something it will show on trakt that I am watching something and if I finish watching the episode it will add it as watched.
The issue is if I try to update the library. I tried manually updating TV shows and it just hangs then crashes. I have attached the log.

xbmc.log

Cheers in advance Big Grin

Are you trying to resume an item or skip through it?

Is that log showing the hang, is it XBMC hanging or just TU? As Martijn noted it is probably an XBMC issue.
(2012-05-05 14:37)typhoe Wrote:  Hi,

using the current 0.6.5 testing version from your signature ( http://bit.ly/GAK1Pn ), I get this error:

Code:
12:13:29 T:140255062062912  NOTICE: Starting XBMC (11.0 Git:14feb09), Platform: Linux (OpenELEC - Version: 1.95.3, 3.2.16 x86_64). Built on May  1 2012
12:13:35 T:140254723254016  NOTICE: Trakt Utilities: service: script.TraktUtilities - version: 0.6.5
<...>
14:14:34 T:140254723254016  NOTICE: Trakt Utilities: getSeasonsFromXBMC: {u'tvshowid': 5, u'title': u"Les Myst\xe9rieuses Cit\xe9s D'or", u'label': u"Les Myst\xe9rieuses Cit\xe9s D'or", u'imdbnumber': u'78783', u'year': 1982, u'playcount': 1}
14:14:34 T:140254723254016   ERROR: Error Type: <type 'exceptions.TypeError'>
14:14:34 T:140254723254016   ERROR: Error Contents: cannot concatenate 'str' and 'NoneType' objects
14:14:34 T:140254723254016   ERROR: Traceback (most recent call last):
                                              File "/storage/.xbmc/addons/script.TraktUtilities-0.6.5/service.py", line 67, in <module>
                                                autostart()
                                              File "/storage/.xbmc/addons/script.TraktUtilities-0.6.5/service.py", line 44, in autostart
                                                if autosync_cleantvshowcollection: cleanTVShowCollection(True)
                                              File "/storage/.xbmc/addons/script.TraktUtilities-0.6.5/sync_update.py", line 489, in cleanTVShowCollection
                                                tvshows_string += to_unlibrary[i]['title']
                                            TypeError: cannot concatenate 'str' and 'NoneType' objects
14:14:34 T:140253880739584  NOTICE: Trakt Utilities: Notification service stopping
14:14:35 T:140253163681536  NOTICE: Trakt Utilities: Scrobbler stopping

I then tried to remove this TV show from my collection (remove the folder, and clean xbmc library).

Code:
14:26:50 T:140294230525696  NOTICE: Trakt Utilities: TVShow not found: u'The Mysterious Cities of Gold'
14:26:50 T:140294230525696   ERROR: Error Type: <type 'exceptions.TypeError'>
14:26:50 T:140294230525696   ERROR: Error Contents: cannot concatenate 'str' and 'NoneType' objects
14:26:50 T:140294230525696   ERROR: Traceback (most recent call last):
                                              File "/storage/.xbmc/addons/script.TraktUtilities-0.6.5/service.py", line 67, in <module>
                                                autostart()
                                              File "/storage/.xbmc/addons/script.TraktUtilities-0.6.5/service.py", line 44, in autostart
                                                if autosync_cleantvshowcollection: cleanTVShowCollection(True)
                                              File "/storage/.xbmc/addons/script.TraktUtilities-0.6.5/sync_update.py", line 493, in cleanTVShowCollection
                                                tvshows_string += ", " + to_unlibrary[i]['title']
                                            TypeError: cannot concatenate 'str' and 'NoneType' objects
14:26:51 T:140293510641408  NOTICE: Trakt Utilities: Notification service stopping
14:26:53 T:140294192584448  NOTICE: Trakt Utilities: Scrobbler stopping

Go to trakt.tv site, and remove this show from my trakt.tv library.

Code:
14:34:23 T:139701550651136  NOTICE: Trakt Utilities: getSeasonsFromXBMC: {u'tvshowid': 60, u'title': u'The Firm', u'label': u'The Firm', u'imdbnumber': u'248936', u'year': 2012, u'playcount': 0}
14:34:23 T:139701550651136   ERROR: Error Type: <type 'exceptions.TypeError'>
14:34:23 T:139701550651136   ERROR: Error Contents: cannot concatenate 'str' and 'NoneType' objects
14:34:23 T:139701550651136   ERROR: Traceback (most recent call last):
                                              File "/storage/.xbmc/addons/script.TraktUtilities-0.6.5/service.py", line 67, in <module>
                                                autostart()
                                              File "/storage/.xbmc/addons/script.TraktUtilities-0.6.5/service.py", line 44, in autostart
                                                if autosync_cleantvshowcollection: cleanTVShowCollection(True)
                                              File "/storage/.xbmc/addons/script.TraktUtilities-0.6.5/sync_update.py", line 489, in cleanTVShowCollection
                                                tvshows_string += to_unlibrary[i]['title']
                                            TypeError: cannot concatenate 'str' and 'NoneType' objects
14:34:23 T:139699959670528  NOTICE: Trakt Utilities: Notification service stopping
14:34:24 T:139699951277824  NOTICE: Trakt Utilities: Scrobbler stopping

any idea? If needed, I have keep the 3 debug logs...

Thank you.

(2012-05-05 18:40)JonasL1 Wrote:  It's the same error as I have. But a few pages back, was the answer that we has to wait until version 0.6.6. But I have no idea when the version come.

That is the correct response, and the other comment is 'soon'.

[Image: widget.jpg]
Developer working on Trakt Utilties for XBMC (Download)
Please read Getting Support before asking for support.
(This post was last modified: 2012-05-06 05:43 by othrayte.)
find quote
othrayte Offline
Fan
Posts: 452
Joined: Apr 2011
Reputation: 3
Location: Melbourne, Australia
Post: #1222
For all those that have been waiting patiently I have just submitted v0.6.5 to the official repo, fingers crossed that all goes well.

[Image: widget.jpg]
Developer working on Trakt Utilties for XBMC (Download)
Please read Getting Support before asking for support.
find quote
Mizaki Offline
Fan
Posts: 663
Joined: Apr 2011
Reputation: 12
Post: #1223
Thanks for your work on what can sometimes be a thankless task Smile

[Image: watched-clearlogo.jpg]
AWXi - Ajax web interface. Wiki
find quote
Martijn Online
Team-XBMC
Posts: 7,712
Joined: Jul 2011
Reputation: 115
Location: Dawn of time
Post: #1224
(2012-05-06 13:07)Mizaki Wrote:  Thanks for your work on what can sometimes be a thankless task Smile

sometimes? Rofl

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first


For your mediacenter artwork go to
[Image: fanarttv.png]
find quote
typhoe Offline
Member+
Posts: 41
Joined: Jun 2008
Reputation: 0
Post: #1225
(2012-05-06 05:34)othrayte Wrote:  
(2012-05-05 18:40)JonasL1 Wrote:  It's the same error as I have. But a few pages back, was the answer that we has to wait until version 0.6.6. But I have no idea when the version come.

That is the correct response, and the other comment is 'soon'.

Well, thank you for your work and I'll just wait for the 0.6.6 whenever it will be available.
Soon is far enough for me ;-)

XBMC Openelec Eden
Xtreamer Ultra + USB-CEC -> HDMI output to Onkyo TX-NR3008 and Sony KDL-52W5500
find quote
anzerman Offline
Junior Member
Posts: 31
Joined: Apr 2012
Reputation: 0
Post: #1226
Hi,
I am having an issue with TU. I have software called JMM server managing my anime which syncs my collection with trakt. In xbmc I have none of my anime. The settings I have enabled for TU are update collection and sync watched. I do not have clean movies or tv shows.
But when TU does an update at xbmc startup it removes all of my anime from my trakt account. The watched status stays the same (I guess im lucky for this) but the files that are not available on the xbmc are removed from collection.
I am not 100% but thought that items should only be removed from trakt collection when a clean library takes place.
I have attached my log I hope it is what you need. If there is anything else let me know.
Cheers,
Matt

xbmc.log
find quote
lorddunlow Online
Junior Member
Posts: 15
Joined: May 2011
Reputation: 0
Post: #1227
Check your settings for TU in XBMC. (The configure add-on menu). Make sure you don't have "Auto clean TV shows" or "auto clean movies" on the autosync settings. This being checked will remove anything that is not on xbmc from your Trakt database.
find quote
anzerman Offline
Junior Member
Posts: 31
Joined: Apr 2012
Reputation: 0
Post: #1228
(2012-05-09 00:25)lorddunlow Wrote:  Check your settings for TU in XBMC. (The configure add-on menu). Make sure you don't have "Auto clean TV shows" or "auto clean movies" on the autosync settings. This being checked will remove anything that is not on xbmc from your Trakt database.

Hi I double checked my settings and both 'auto clean TV shows' and 'auto clean movies' were unchecked. I also had sync seen movies and sync seen tv shows checked but since unchecking them there is no issue with it removing items.

So the issue I am assuming is something to do with when it updates seen items.

Cheers,
Matt
find quote
schumi2004 Offline
Fan
Posts: 642
Joined: Aug 2011
Reputation: 4
Post: #1229
(2012-05-06 05:58)othrayte Wrote:  For all those that have been waiting patiently I have just submitted v0.6.5 to the official repo, fingers crossed that all goes well.

To the official XBMC repo?

Can't find it there Wink

[Image: watched-clearlogo.jpg]
find quote
lorddunlow Online
Junior Member
Posts: 15
Joined: May 2011
Reputation: 0
Post: #1230
I think he meant he submitted it for approval to the repo
find quote
Post Reply