bishop 12 Posted May 10, 2015 Share Posted May 10, 2015 I'm using Sonarr to notify Emby Server of new releases and force a library refresh. New files are showing up in the Web client immediately but Emby isn't updating. Using Kodi's built in library update function doesn't seem to work when using the addon. How do I get updates on the server to push to the Emby client? I would like to avoid having to close and reopen Kodi to get a refresh. Link to comment Share on other sites More sharing options...
xnappo 1593 Posted May 10, 2015 Share Posted May 10, 2015 Sounds like something isn't working properly. You are on the latest version? You will need to recreate the situation and post a log. You can force an update through the Video-AddOns-Emby-Force scan - but you shouldn't need to. You might look in your log right now and see if there are errors. 1 Link to comment Share on other sites More sharing options...
bishop 12 Posted May 10, 2015 Author Share Posted May 10, 2015 (edited) Sonarr - Downloaded 12 minutes ago Saturday Night Live - XXxXX - XX & XX [HDTV-720p] relevant section of the log (around 14:52) 14:44:50 T:9640 NOTICE: -->Python Interpreter Initialized<-- 14:46:26 T:2960 NOTICE: Sync DB -> syncDatabase Exiting 14:46:26 T:11012 NOTICE: Thread VideoInfoScanner start, auto delete: false 14:46:26 T:11012 NOTICE: VideoInfoScanner: Starting scan .. 14:46:26 T:11012 NOTICE: VideoInfoScanner: Finished scan. Scanning for video info took 00:00 14:46:26 T:732 NOTICE: Thread JobWorker start, auto delete: true 14:46:28 T:12216 WARNING: CWin32DirectSound::GetSpace - buffer underrun - W:10848, P:272, O:10576. 14:46:29 T:7192 WARNING: Skin has invalid include: FullscreenDimensions 14:46:30 T:10212 NOTICE: Thread BackgroundLoader start, auto delete: false 14:46:30 T:2440 NOTICE: Thread JobWorker start, auto delete: true 14:46:31 T:9244 NOTICE: Previous line repeats 1 times. 14:46:31 T:9244 NOTICE: Thread FileCache start, auto delete: false 14:46:51 T:10020 NOTICE: Previous line repeats 28 times. 14:46:51 T:10020 NOTICE: Thread JobWorker start, auto delete: true 14:46:51 T:8816 NOTICE: Thread FileCache start, auto delete: false 14:47:09 T:5756 NOTICE: Previous line repeats 32 times. 14:47:09 T:5756 NOTICE: Thread LanguageInvoker start, auto delete: false 14:47:09 T:5756 NOTICE: -->Python Interpreter Initialized<-- 14:52:30 T:6028 NOTICE: EMBY WebSocketThread -> Message : {"MessageType":"NotificationAdded","Data":"ee09be1e8a2f404b975641e323bf05b8|405072eafb064c3193a48add8c950f4f"} 14:52:42 T:6028 NOTICE: EMBY WebSocketThread -> Message : {"MessageType":"SessionEnded","Data":{"SupportedCommands":["GoHome","GoToSettings","VolumeUp","VolumeDown","Mute","Unmute","ToggleMute","SetVolume","SetAudioStreamIndex","SetSubtitleStreamIndex","DisplayContent","GoToSearch","DisplayMessage"],"QueueableMediaTypes":[],"PlayableMediaTypes":["Audio","Video"],"Id":"577b8433e527be6e16e8ba085e658c0f","UserId":"ee09be1e8a2f404b975641e323bf05b8","UserName":"BISHOP","AdditionalUsers":[],"ApplicationVersion":"3.0.5607.0","Client":"Emby Web Client","LastActivityDate":"2015-05-10T19:52:40.6983830Z","DeviceName":"Firefox 37.0","DeviceId":"ad75904080310f2d85be79b99c20ead94a6b1a19","SupportsRemoteControl":false,"PlayState":{"CanSeek":false,"IsPaused":false,"IsMuted":false}}} 14:53:13 T:12216 WARNING: CWin32DirectSound::GetSpace - buffer underrun - W:10848, P:272, O:10576. 14:53:14 T:11868 NOTICE: Thread BackgroundLoader start, auto delete: false 14:53:15 T:6028 NOTICE: EMBY WebSocketThread -> Message : {"MessageType":"ScheduledTaskEnded","Data":{"StartTimeUtc":"2015-05-10T19:52:28.7397250Z","EndTimeUtc":"2015-05-10T19:53:13.7354910Z","Status":"Completed","Name":"Scan media library","Key":"RefreshLibrary","Id":"2d67d886717cdade18d9640d4ebbb9cb"}} 14:53:15 T:3228 NOTICE: Thread JobWorker start, auto delete: true 14:55:14 T:836 NOTICE: Previous line repeats 4 times. 14:55:14 T:836 NOTICE: Thread BackgroundLoader start, auto delete: false 14:55:16 T:3508 NOTICE: Thread LanguageInvoker start, auto delete: false 14:55:16 T:3508 NOTICE: -->Python Interpreter Initialized<-- 14:55:17 T:7712 NOTICE: Thread BackgroundLoader start, auto delete: false 14:55:20 T:11784 NOTICE: Thread LanguageInvoker start, auto delete: false 14:55:20 T:11784 NOTICE: -->Python Interpreter Initialized<-- 14:55:21 T:11924 NOTICE: Thread BackgroundLoader start, auto delete: false 14:55:22 T:8148 NOTICE: Thread FileCache start, auto delete: false 14:55:22 T:5824 NOTICE: Previous line repeats 1 times. 14:55:22 T:5824 NOTICE: Thread JobWorker start, auto delete: true 14:55:22 T:8532 NOTICE: Thread FileCache start, auto delete: false 14:55:26 T:12216 NOTICE: Previous line repeats 39 times. Confirmed that the episode appeared in the web client and the dashboard showed the notification. Emby in Kodi hasn't updated to include the episode though. Edited May 10, 2015 by bishop Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted May 10, 2015 Share Posted May 10, 2015 Hey Bishop, the snippet of the log you posted doesn't show anything relevant to helping solve this issue. Can you post the entire log (that is attach the file to your post). Thanks Sent from my iPhone using Tapatalk 1 Link to comment Share on other sites More sharing options...
bishop 12 Posted May 10, 2015 Author Share Posted May 10, 2015 (edited) Howdy, sorry about that. It was around the same time so I figured it may be the only relevant piece. Attached is the log file On my dashboard it says that it hasn't seen Kodi in 50 minutes, which is when I originally opened Kodi. Edited May 11, 2015 by bishop 1 Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted May 10, 2015 Share Posted May 10, 2015 Can you try to update to the latest version of Emby for Kodi? It seems you are still on 0.1.0 when we are now 0.1.81. There's a good chance this was resolved already. There's been a lot of modifications that affect your database so start from scratch by resetting your local kodi database via addon settings. Let us know if you are still having the issue then. Thanks! Sent from my iPhone using Tapatalk 1 Link to comment Share on other sites More sharing options...
bishop 12 Posted May 10, 2015 Author Share Posted May 10, 2015 I was using 0.1.81. The inability to update might have something to do with the server crashing on my computer every time something regarding the library happens. I'm going to troubleshoot that end of things and reevaluate this post after resolving that. Thank you for the help so far. 1 Link to comment Share on other sites More sharing options...
bishop 12 Posted May 23, 2015 Author Share Posted May 23, 2015 I just wanted to post and say that now that I'm running a different kernel (that mono is stable on) this issue is resolved. Updates aren't instant and I wasn't focused on Kodi but when I went back new episodes were there. 1 Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted May 23, 2015 Share Posted May 23, 2015 Thanks for reporting back bishop. Sent from my iPhone using Tapatalk Link to comment Share on other sites More sharing options...
bishop 12 Posted June 13, 2015 Author Share Posted June 13, 2015 I'm finding that this functionality is kind of flaky. I upgraded my system to the latest stable kernel (3.0.16-40) and the mono test ran for several hours without crashing. Emby and Sonarr are both stable. E4K is running great on a Kodi player but episodes are not being added from Sonarr/Emby Server. I see the episodes in the web browser but they aren't being added to Kodi. Are there any known issues about this or is there a way to easily perform only an incremental scan? It worked for a few episodes and then dropped out completely. Link to comment Share on other sites More sharing options...
xnappo 1593 Posted June 13, 2015 Share Posted June 13, 2015 We need a debug log. You can do a manual scan from Emby, but if it isn't updating automatically that means that the websocket that communicates additions to the library is having issues. It isn't a scan - it is messages from the server any time a change occurs. 2 Link to comment Share on other sites More sharing options...
CBers 6766 Posted June 13, 2015 Share Posted June 13, 2015 I'm using Sonarr to notify Emby Server of new releases and force a library refresh. @@bishop OT, but how? Are you using their MediaBrowser metadata integration? I've been using Sonarr for ages and never use it as it does nothing that Emby doesn't have already. Kodi should still get the updates though. 1 Link to comment Share on other sites More sharing options...
bishop 12 Posted June 13, 2015 Author Share Posted June 13, 2015 @@xnappo Log is attached. It looks like some episodes automatically added overnight but episodes 8-11 of the season didn't get added. @@CBers Yeah. You have to generate an API key on Emby server and then fill out the data for the Sonarr integration. It updates the library with the new content without a full refresh. kodi - Copy.log 1 Link to comment Share on other sites More sharing options...
CBers 6766 Posted June 13, 2015 Share Posted June 13, 2015 @@CBers Yeah. You have to generate an API key on Emby server and then fill out the data for the Sonarr integration. It updates the library with the new content without a full refresh. Oh yes, via Sonarr connect. It always seemed a bit of overkill to me, seeing as Emby monitors my folders already and automatically fetches metadata etc. Thanks though. Link to comment Share on other sites More sharing options...
Recommended Posts