Antropy 3 Posted January 16, 2016 Share Posted January 16, 2016 Hi, does someone know how to fix this? Kodi for Emby Sync exits at startup. The renew of the local Kodi DB doesn´t worked in this case. Kodi.log: http://xbmclogs.com/peqzhkojg Kind regards Tom Link to comment Share on other sites More sharing options...
denethor 90 Posted January 16, 2016 Share Posted January 16, 2016 Same here. Started after 1.1.75. I think this part of the log is relevant: 21:32:14 T:9248 NOTICE: Using Image Cache Thread Count: 0 -> 1 21:32:14 T:9248 NOTICE: Previous line repeats 1 times. 21:32:14 T:9248 NOTICE: EMBY Music -> Update playstate for song: Fresh Off The Runway 21:32:14 T:9248 NOTICE: Emby musictools -> getting song ID3 tags for \\west\music\Rihanna\Unapologetic\Rihanna - Fresh Off The Runway.mp3 21:32:16 T:17256 NOTICE: metahandler: No SQLite rows requiring update 21:32:17 T:9248 NOTICE: Previous line repeats 1 times. 21:32:17 T:9248 ERROR: Exception in thread Thread-10: Traceback (most recent call last): File "C:\Program Files (x86)\Kodi\system\python\Lib\threading.py", line 810, in __bootstrap_inner self.run() File "C:\Users\username\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 1123, in run self.run_internal() File "C:\Users\username\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 1217, in run_internal self.incrementalSync() File "C:\Users\username\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 1076, in incrementalSync doupdate = items_process.itemsbyId(items, type, pDialog) File "C:\Users\username\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\itemtypes.py", line 197, in itemsbyId actions[process](item) File "C:\Users\username\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\itemtypes.py", line 2191, in updateUserdata rating, comment = self.getSongRatingAndComment(itemid, rating, API) File "C:\Users\username\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\itemtypes.py", line 2231, in getSongRatingAndComment file_rating = int(round(file_rating,0)) TypeError: a float is required 21:32:19 T:14808 NOTICE: EMBY WebSocket_Client -> Message: {"MessageType":"LibraryChanged","Data":{"FoldersAddedTo":[],"FoldersRemovedFrom":[],"ItemsAdded":[],"ItemsRemoved":[],"ItemsUpdated":[]}} 21:32:35 T:17256 ERROR: metahandler: ************* Error retreiving from thetvdb.com: timed out 21:32:35 T:17256 NOTICE: metahandler: No SQLite rows requiring update 21:32:50 T:17256 NOTICE: Previous line repeats 3 times. 21:32:50 T:17256 ERROR: metahandler: ************* Error retreiving from thetvdb.com: timed out 21:32:50 T:17256 NOTICE: metahandler: No SQLite rows requiring update 21:33:08 T:17256 ERROR: metahandler: ************* Error retreiving from thetvdb.com: timed out 21:33:08 T:17256 ERROR: metahandler: ************* Error Date conversion failed: time data u'N/A' does not match format '%d %b %Y' 21:33:08 T:17256 ERROR: metahandler: ************* Error Date conversion failed: time data u'N/A' does not match format '%b %Y' 21:33:08 T:17256 NOTICE: metahandler: No SQLite rows requiring update 21:33:19 T:17256 NOTICE: Previous line repeats 1 times. 21:33:19 T:17256 ERROR: metahandler: ************* Error retreiving from thetvdb.com: timed out 21:33:19 T:17256 NOTICE: metahandler: No SQLite rows requiring update 21:33:33 T:17256 NOTICE: Previous line repeats 2 times. 21:33:33 T:17256 ERROR: metahandler: ************* Error retreiving from thetvdb.com: timed out 21:33:33 T:17256 NOTICE: metahandler: No SQLite rows requiring update Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted January 16, 2016 Share Posted January 16, 2016 Where did you guys get this build from? Sent from my iPhone using Tapatalk Link to comment Share on other sites More sharing options...
Crular 4 Posted January 16, 2016 Share Posted January 16, 2016 Same error here with 1.1.75. I guess it was updated automatically, at least I didn't update it manually. Link to comment Share on other sites More sharing options...
denethor 90 Posted January 16, 2016 Share Posted January 16, 2016 (edited) Where did you guys get this build from? Sent from my iPhone using Tapatalk 1.0.4 Beta repo as usual Edited January 16, 2016 by denethor Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted January 16, 2016 Share Posted January 16, 2016 Ah, I'm just getting up. I wasn't aware we had already pushed to beta. Looking into it. Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted January 16, 2016 Share Posted January 16, 2016 (edited) Want to give this build a try? Let me know if you still encounter the issue. Thanks Edited January 16, 2016 by Angelblue05 Link to comment Share on other sites More sharing options...
denethor 90 Posted January 16, 2016 Share Posted January 16, 2016 Want to give this build a try? Let me know if you still encounter the issue. Thanks Still fails but different story, "TypeError: a float is required" : 00:02:48 T:14488 ERROR: JSONRPC: Failed to parse '{ "jsonrpc": "2.0", "method" : "Files.GetDirectory", "params": { "properties": ["title","art","thumbnail"], "directory": "v:\Kodi\userdata\playlists\music\PartyMode.xsp", "media": "files", "limits": {"end":250}, "sort": { "order": "ascending", "method": "random", "ignorearticle": true } }, "id":1 }' 00:02:50 T:16396 ERROR: Exception in thread Thread-10: Traceback (most recent call last): File "C:\Program Files (x86)\Kodi\system\python\Lib\threading.py", line 810, in __bootstrap_inner self.run() File "C:\Users\username\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 1123, in run self.run_internal() File "C:\Users\username\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 1217, in run_internal self.incrementalSync() File "C:\Users\username\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 1076, in incrementalSync doupdate = items_process.itemsbyId(items, type, pDialog) File "C:\Users\username\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\itemtypes.py", line 197, in itemsbyId actions[process](item) File "C:\Users\username\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\itemtypes.py", line 1957, in add_updateSong rating, comment = self.getSongRatingAndComment(itemid, rating, API) File "C:\Users\username\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\itemtypes.py", line 2231, in getSongRatingAndComment file_rating = int(round(file_rating,0)) TypeError: a float is required 00:02:51 T:6872 NOTICE: metahandler: No SQLite rows requiring update Link to comment Share on other sites More sharing options...
lekekoo 5 Posted January 16, 2016 Share Posted January 16, 2016 Hello, I had the same problem after the last update. So I made a patch but I am not certain there is no side effect. This allows a full sync when waiting a more official correction. For the brave only plugin.video.emby-1.1.75.zip Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted January 16, 2016 Share Posted January 16, 2016 (edited) I'm still looking into it, but as I'm not familiar with the code... @@marcelveldt I tried removing this from musicutils line 87: if rating: rating = int(round(rating,0)) The rating is returned as an integer. And that's why I thought file_rating gave an error that it requires a float. But seems to not resolve the issue. Edited January 16, 2016 by Angelblue05 Link to comment Share on other sites More sharing options...
lekekoo 5 Posted January 16, 2016 Share Posted January 16, 2016 (edited) Hi angel, The problem is when the currentvalue is 0. The script test if file_rating is none and if currentvalue is none or if it's true (line 2226 in itemtypes.py). But 0 is not true and not none, and we have a file_rating with a none value in a round function. The crash is inevitable. My patch force the script to consider 0 as a correct value when file_rating is none. Edited January 16, 2016 by lekekoo 2 Link to comment Share on other sites More sharing options...
lekekoo 5 Posted January 16, 2016 Share Posted January 16, 2016 (edited) Maybe it's link with the last update of the server Edited January 16, 2016 by lekekoo Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted January 16, 2016 Share Posted January 16, 2016 (edited) Here we go: Test this version, confirm it works so I can push to beta. Thanks @ no it's not your images. Edit: The fix is in beta, version 1.1.76 Edited January 16, 2016 by Angelblue05 1 Link to comment Share on other sites More sharing options...
denethor 90 Posted January 16, 2016 Share Posted January 16, 2016 Here we go: Test this version, confirm it works so I can push to beta. Thanks @ no it's not your images. Also confirmed here Thanks once again for the ultra fast responses 2 Link to comment Share on other sites More sharing options...
Crular 4 Posted January 16, 2016 Share Posted January 16, 2016 Here we go: Test this version, confirm it works so I can push to beta. Thanks @ no it's not your images. Not working for me, still the same error. Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted January 16, 2016 Share Posted January 16, 2016 (edited) Post your Kodi log (Do not enable Kodi debug, only the add-on log level set to info): http://emby.media/community/index.php?/topic/17599-how-to-report-a-problem/ Edited January 16, 2016 by Angelblue05 Link to comment Share on other sites More sharing options...
Crular 4 Posted January 16, 2016 Share Posted January 16, 2016 Post your Kodi log (Do not enable Kodi debug, only the add-on log level set to info): http://emby.media/community/index.php?/topic/17599-how-to-report-a-problem/ Here you go: http://xbmclogs.com/pxh3dkcom Hope it is correct. 1 Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted January 16, 2016 Share Posted January 16, 2016 (edited) @@Crular Your error is different. Can you try this build? Let me know if it resolves your issue. Edit: The fix is in beta 1.1.76. Edited January 17, 2016 by Angelblue05 Link to comment Share on other sites More sharing options...
Crular 4 Posted January 17, 2016 Share Posted January 17, 2016 @@Crular Your error is different. Can you try this build? Let me know if it resolves your issue. Yes, no more error and sync worked again. 1 Link to comment Share on other sites More sharing options...
Recommended Posts