Jump to content

Sync on resume


KRA

Recommended Posts

Would it be possible to have Emby for Kodi sync after it resumes (from suspend) ?

 

Does a database sync in Kodi initiate a emby sync ?

Link to comment
Share on other sites

This is log from sleep initiate and wakeup:

 

 

20:58:51 T:139783503595392  NOTICE: OnSleep: Running sleep jobs
20:58:51 T:139783503595392  NOTICE: OnSleep: Stopping lirc
20:58:51 T:139783210768128  NOTICE: onNotification:System.OnSleep:xbmc:null
20:59:12 T:139782109603584  NOTICE: Previous line repeats 3 times.
20:59:12 T:139782109603584 WARNING: Create - unsupported protocol(image) in image://http%3a%2f%2f192.168.10.205%3a8096%2fmediabrowser%2fItems%2f960a009d5abfcfcc3cbb87e2118b0df1%2fImages%2fBackdrop%2f0%3fMaxWidth%3d10000%26MaxHeight%3d10000%26Format%3doriginal%26Tag%3de3ab56fe27d389446754d0fb04910a34/
20:59:13 T:139783503595392  NOTICE: OnWake: Running resume jobs
20:59:13 T:139783503595392  NOTICE: OnWake: Restarting lirc
20:59:13 T:139783493039872  NOTICE: Found 1 Lists of Devices
20:59:13 T:139783493039872  NOTICE: Enumerated ALSA devices:
20:59:13 T:139783493039872  NOTICE:     Device 1
20:59:13 T:139783493039872  NOTICE:         m_deviceName      : @
20:59:13 T:139783493039872  NOTICE:         m_displayName     : Default (HDA Intel PCH ALC283 Analog)
20:59:13 T:139783493039872  NOTICE:         m_displayNameExtra:
20:59:13 T:139783493039872  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
20:59:13 T:139783493039872  NOTICE:         m_channels        : FL,FR
20:59:13 T:139783493039872  NOTICE:         m_sampleRates     : 48000
20:59:13 T:139783493039872  NOTICE:         m_dataFormats     : AE_FMT_S32NE
20:59:13 T:139783493039872  NOTICE:     Device 2
20:59:13 T:139783493039872  NOTICE:         m_deviceName      : @:CARD=PCH,DEV=0
20:59:13 T:139783493039872  NOTICE:         m_displayName     : HDA Intel PCH
20:59:13 T:139783493039872  NOTICE:         m_displayNameExtra: ALC283 Analog
20:59:13 T:139783493039872  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
20:59:13 T:139783493039872  NOTICE:         m_channels        : FL,FR
20:59:13 T:139783493039872  NOTICE:         m_sampleRates     : 48000
20:59:13 T:139783493039872  NOTICE:         m_dataFormats     : AE_FMT_S32NE
20:59:13 T:139783493039872  NOTICE:     Device 3
20:59:13 T:139783493039872  NOTICE:         m_deviceName      : hdmi:CARD=PCH,DEV=0
20:59:13 T:139783493039872  NOTICE:         m_displayName     : HDA Intel PCH
20:59:13 T:139783493039872  NOTICE:         m_displayNameExtra: BNQ BenQ PJ on HDMI
20:59:13 T:139783493039872  NOTICE:         m_deviceType      : AE_DEVTYPE_HDMI
20:59:13 T:139783493039872  NOTICE:         m_channels        : FL,FR,LFE,FC,BL,BR,BC,BLOC,BROC
20:59:13 T:139783493039872  NOTICE:         m_sampleRates     : 32000,44100,48000,88200,96000,176400,192000
20:59:13 T:139783493039872  NOTICE:         m_dataFormats     : AE_FMT_LPCM,AE_FMT_AC3,AE_FMT_DTS,AE_FMT_EAC3,AE_FMT_TRUEHD,AE_FMT_DTSHD,AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_AAC
20:59:13 T:139783503595392  NOTICE: UpdateLibraries: Starting video library startup scan
20:59:13 T:139782084425472  NOTICE: Thread VideoInfoScanner start, auto delete: false
20:59:13 T:139782084425472  NOTICE: VideoInfoScanner: Starting scan ..
20:59:13 T:139782084425472  NOTICE: VideoInfoScanner: Finished scan. Scanning for video info took 00:00
20:59:13 T:139782092818176 WARNING: Create - unsupported protocol(image) in image://http%3a%2f%2f192.168.10.205%3a8096%2fmediabrowser%2fItems%2f960a009d5abfcfcc3cbb87e2118b0df1%2fImages%2fBackdrop%2f0%3fMaxWidth%3d10000%26MaxHeight%3d10000%26Format%3doriginal%26Tag%3de3ab56fe27d389446754d0fb04910a34/
20:59:13 T:139783210768128  NOTICE: onNotification:System.OnWake:xbmc:null
20:59:13 T:139783210768128  NOTICE: Previous line repeats 3 times.
20:59:13 T:139783210768128  NOTICE: onNotification:VideoLibrary.OnScanStarted:xbmc:null
20:59:13 T:139783210768128  NOTICE: Previous line repeats 3 times.
20:59:13 T:139783210768128  NOTICE: onNotification:VideoLibrary.OnScanFinished:xbmc:null
20:59:24 T:139782092818176  NOTICE: Previous line repeats 3 times.
20:59:24 T:139782092818176 WARNING: Create - unsupported protocol(image) in image://http%3a%2f%2f192.168.10.205%3a8096%2fmediabrowser%2fItems%2f208e8f0ff00cee98e96b63be8c43f3d0%2fImages%2fBackdrop%2f0%3fMaxWidth%3d10000%26MaxHeight%3d10000%26Format%3doriginal%26Tag%3de3ab56fe27d389446754d0fb04910a34/
  • Like 1
Link to comment
Share on other sites

xnappo

Excellent.

 

@ / @@im85288 / @@Angelblue05 / @@marcelveldt

 

Looks like a piece of cake - just call sync in the onNottification for 'System.OnWake'

 

Will do this if someone doesn't beat me to it.

 

xnappo

Edited by xnappo
  • Like 1
Link to comment
Share on other sites

I don't know how this work, but just throwing out an idea.

 

Wouldn't it be better to invoke sync on "UpdateLibraries"

 

kodi seem to do this automatic after resume, but also the added bonus of having the sync done if a user manually run update library.

  • Like 2
Link to comment
Share on other sites

xnappo

Yep, I was going to discuss with the other what other events we might want to use.  There are also events for when the screensaver kicks in, for example. 

Link to comment
Share on other sites

marcelveldt

I don't know how this work, but just throwing out an idea.

 

Wouldn't it be better to invoke sync on "UpdateLibraries"

 

kodi seem to do this automatic after resume, but also the added bonus of having the sync done if a user manually run update library.

I like this idea a lot. You'll have it covered for all situations.

Link to comment
Share on other sites

  • 2 weeks later...
xnappo

Please confirm this is fixed in 0.1.0 so we can close.

  • Like 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...