UPDATE: Issue solved by removing the advancedsettings.xml file which was provided to fix the video sync issue with RC1.
I was wondering why the errors in the logs referenced this file, as it's the one I downloaded from
this thread in order to fix the AV sync issue. I had not removed it after upgrading to RC2. Once I renamed the file extension so as to cause it not to be loaded, both Movie and TV updated the XBMC database successfully!
ORIGINAL POST FOLLOWS:
Issues with latest Trakt and updating XBMC seen database for both movies and TV shows
Testing procedure:
XBMC Eden RC2 is not running.
Deleted the following folders in order to start fresh:
AppData\Roaming\XBMC\addons\Manromen-script.TraktUtilities-c0654b6
AppData\Roaming\XBMC\userdata\addon_data\script.TraktUtilities
Deleted the AppData\Roaming\XBMC\xbmc.log file.
Started XBMC and immediately installed othrayte-script.TraktUtilities-v0.6.5-3-gc0654b6.zip by using the install from zip function.
Changed the following three options, username, password, and enabled debugging. I viewed the other pages but did NOT change any options.
Noted an error loading the icon.png in the log, but no other issues.
Code:
03:53:11 T:1112 ERROR: Texture manager unable to load file: C:\Users\HEX\Desktop\MouseWithoutBorders\othrayte-script.TraktUtilities-v0.6.5-3-gc0654b6.zip\icon.png
Exited XBMC and renamed the xbmc.log to
xbmc-trakt-install.log
Loaded XBMC and selected Video > Trakt Utilities > Update / Sync / Clean
Selected Sync seen Movies, it updated Trakt successfully but when it attempted to mark movies as seen in XBMC I received an Error - Script Failed.
Code:
03:55:56 T:808 ERROR: C:\Users\HEX\AppData\Roaming\XBMC\addons\othrayte-script.TraktUtilities-c0654b6\nbhttpconnection.py:22: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
import sha
03:55:56 T:808 NOTICE: Trakt Utilities: default: script.TraktUtilities - version: 0.6.5
03:55:56 T:808 NOTICE: Trakt Utilities: trakt json url: /account/test/48dfcb4813134da82152984e8c4f329bc8b8b46a
03:55:59 T:808 NOTICE: Trakt Utilities: Select: 4
03:56:06 T:808 NOTICE: Trakt Utilities: Select: 1
03:56:06 T:808 NOTICE: Trakt Utilities: trakt json url: /user/library/movies/all.json/48dfcb4813134da82152984e8c4f329bc8b8b46a/HEXeHEX
03:56:10 T:808 NOTICE: Trakt Utilities: searching local...
03:56:16 T:808 NOTICE: Trakt Utilities: 60
03:56:16 T:808 ERROR: Error Type: <class 'xml.parsers.expat.ExpatError'>
03:56:16 T:808 ERROR: Error Contents: not well-formed (invalid token): line 1, column 2
03:56:16 T:808 ERROR: Traceback (most recent call last):
File "C:\Users\HEX\AppData\Roaming\XBMC\addons\othrayte-script.TraktUtilities-c0654b6\default.py", line 122, in <module>
menu()
File "C:\Users\HEX\AppData\Roaming\XBMC\addons\othrayte-script.TraktUtilities-c0654b6\default.py", line 51, in menu
submenuUpdateSyncClean()
File "C:\Users\HEX\AppData\Roaming\XBMC\addons\othrayte-script.TraktUtilities-c0654b6\default.py", line 67, in submenuUpdateSyncClean
syncSeenMovies()
File "C:\Users\HEX\AppData\Roaming\XBMC\addons\othrayte-script.TraktUtilities-c0654b6\sync_update.py", line 697, in syncSeenMovies
setXBMCMoviePlaycount(movies_seen[i]['imdb_id'], movies_seen[i]['plays']) # set playcount on xbmc
File "C:\Users\HEX\AppData\Roaming\XBMC\addons\othrayte-script.TraktUtilities-c0654b6\utilities.py", line 407, in setXBMCMoviePlaycount
" WHERE movie.c09='%(imdb_id)s'" % {'imdb_id':xcp(imdb_id)})
File "C:\Users\HEX\AppData\Roaming\XBMC\addons\othrayte-script.TraktUtilities-c0654b6\raw_xbmc_database.py", line 15, in query
_RawXbmcDb__conn = _findXbmcDb()
File "C:\Users\HEX\AppData\Roaming\XBMC\addons\othrayte-script.TraktUtilities-c0654b6\raw_xbmc_database.py", line 51, in _findXbmcDb
advancedsettings.parse(xbmc.translatePath("special://userdata/advancedsettings.xml"))
File "C:\Program Files\XBMC\system\python\Lib\xml\etree\ElementTree.py", line 586, in parse
parser.feed(data)
File "C:\Program Files\XBMC\system\python\Lib\xml\etree\ElementTree.py", line 1245, in feed
self._parser.Parse(data, 0)
ExpatError: not well-formed (invalid token): line 1, column 2
Selected Sync seen TV Shows, it updated Trakt successfully but when it attempted to mark movies as seen in XBMC I received an Error - Script Failed.
Code:
03:57:13 T:3120 NOTICE: Trakt Utilities: set as seen length: 15
03:57:28 T:3120 NOTICE: Trakt Utilities: 60
03:57:28 T:3120 ERROR: Error Type: <class 'xml.parsers.expat.ExpatError'>
03:57:28 T:3120 ERROR: Error Contents: not well-formed (invalid token): line 1, column 2
03:57:28 T:3120 ERROR: Traceback (most recent call last):
File "C:\Users\HEX\AppData\Roaming\XBMC\addons\othrayte-script.TraktUtilities-c0654b6\default.py", line 122, in <module>
menu()
File "C:\Users\HEX\AppData\Roaming\XBMC\addons\othrayte-script.TraktUtilities-c0654b6\default.py", line 51, in menu
submenuUpdateSyncClean()
File "C:\Users\HEX\AppData\Roaming\XBMC\addons\othrayte-script.TraktUtilities-c0654b6\default.py", line 71, in submenuUpdateSyncClean
syncSeenTVShows()
File "C:\Users\HEX\AppData\Roaming\XBMC\addons\othrayte-script.TraktUtilities-c0654b6\sync_update.py", line 965, in syncSeenTVShows
setXBMCEpisodePlaycount(tvshow['tvdb_id'], episode[0], episode[1], 1)
File "C:\Users\HEX\AppData\Roaming\XBMC\addons\othrayte-script.TraktUtilities-c0654b6\utilities.py", line 437, in setXBMCEpisodePlaycount
" )")
File "C:\Users\HEX\AppData\Roaming\XBMC\addons\othrayte-script.TraktUtilities-c0654b6\raw_xbmc_database.py", line 34, in execute
return RawXbmcDb.query(str)
File "C:\Users\HEX\AppData\Roaming\XBMC\addons\othrayte-script.TraktUtilities-c0654b6\raw_xbmc_database.py", line 15, in query
_RawXbmcDb__conn = _findXbmcDb()
File "C:\Users\HEX\AppData\Roaming\XBMC\addons\othrayte-script.TraktUtilities-c0654b6\raw_xbmc_database.py", line 51, in _findXbmcDb
advancedsettings.parse(xbmc.translatePath("special://userdata/advancedsettings.xml"))
File "C:\Program Files\XBMC\system\python\Lib\xml\etree\ElementTree.py", line 586, in parse
parser.feed(data)
File "C:\Program Files\XBMC\system\python\Lib\xml\etree\ElementTree.py", line 1245, in feed
self._parser.Parse(data, 0)
ExpatError: not well-formed (invalid token): line 1, column 2
Immediately exited XBMC and renamed xbmc.log to
xbmc-trakt-errors.log
Note this also happens when I have the auto update/clean turned on, which is why I ended up testing this from a clean setup of the latest version. Keep up the great work Othrayte!