Jump to content

Some questions for skin integration


Recommended Posts

sualfred
Posted

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
Posted (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 by Angelblue05
sualfred
Posted

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
Posted

Maybe better if we catch the updatelibrary command in the addon code? That way no modifications are needed to skins.

sualfred
Posted (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 by sualfred
Angelblue05
Posted

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. 

  • Like 1
Posted (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 by xnappo
  • Like 1
Angelblue05
Posted (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 by Angelblue05
Posted

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).

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