sualfred 677 Posted October 9, 2016 Posted October 9, 2016 I'm a skin dev for Kodi since years and I got some small questions: - Does the common "update library" button of Kodi trigger the Emby addon to sync or is it out of function? - Is a RunScript argument available to trigger the Emby addon to refresh a ListItem like the context menu entry does it? - Are there any other commands available, which can be added to a hard coded button?
Angelblue05 4132 Posted October 9, 2016 Posted October 9, 2016 (edited) Nice! - No, the update library will not trigger a manual sync tp update Emby items. - Not at this time. - Not really, there's add users to the emby session (plugin.video.emby?mode=addUser) and delete (plugin.video.emby?mode=delete) Most of our scripts are found by launching the emby for kodi add-on. What did you have in mind? Edited October 9, 2016 by Angelblue05
sualfred 677 Posted October 9, 2016 Author Posted October 9, 2016 I think "RunScript(plugin.video.emby?mode=updateItem)" would be useful. With that option I could add a skin setting to replace the regular "update library" button with that command. Another idea is to get a better access to the emby favourites -> "RunScript(plugin.video.emby?mode=addFav)" / "RunScript(plugin.video.emby?mode=remFav)"
marcelveldt 736 Posted October 9, 2016 Posted October 9, 2016 Maybe better if we catch the updatelibrary command in the addon code? That way no modifications are needed to skins.
sualfred 677 Posted October 9, 2016 Author Posted October 9, 2016 (edited) @Marcel:If this is possible -> +1 Maybe it's also possible to set the bools Library.IsScanningVideo / .IsScanningMusic, while a Emby sync is in progress. Edited October 9, 2016 by sualfred
Angelblue05 4132 Posted October 9, 2016 Posted October 9, 2016 I don't really like the idea of mixing the manual sync and the update library. You should avoid using it, especially in the music library. This will cause Kodi to mess with Emby entries and that's never a good thing. The need to run a manual sync should be minimal at best, the add-on is event based. 1
xnappo 1611 Posted October 11, 2016 Posted October 11, 2016 (edited) Agreed - pretty much if a user has to do a manual sync something has gone wrong - and a bug report is needed. What would be nice is to be able to send a server a request to scan for new media. Edited October 11, 2016 by xnappo 1
Angelblue05 4132 Posted October 11, 2016 Posted October 11, 2016 (edited) Well you can refresh the parent folder in Kodi (via the emby context menu), and Emby will automatically pick up new content in that folder. Sent from my iPhone using Tapatalk Edited October 11, 2016 by Angelblue05
im85288 1493 Posted October 12, 2016 Posted October 12, 2016 I think "RunScript(plugin.video.emby?mode=updateItem)" would be useful. With that option I could add a skin setting to replace the regular "update library" button with that command. Another idea is to get a better access to the emby favourites -> "RunScript(plugin.video.emby?mode=addFav)" / "RunScript(plugin.video.emby?mode=remFav)" Slightly confused here, why do you need an update function at all? Changes are pushed to Kodi as they become available (assuming you have the server plugin installed). 1
Recommended Posts