Jump to content

Update specific library sub-folder


Recommended Posts

Posted (edited)

Hello,

 

I'm looking at /ItemUpdateService and not sure if this is the correct endpoint, but I'm looking to trigger an API call to Emby whenever Sonarr downloads a new episode.

 

However, I do not want to trigger a full library update, just a partial scan. I'm coming from Plex and this was possible. I'm not sure if it's possible in Emby (either via API or command line).

 

Flow:

 

1. Get new episode from Sonarr

2. Trigger partial library scan to add new episode to library (via API, or CLI if thats possible)

3. New episode is immediately added to Emby.

 

The reason I don't want to trigger a full scan is that there may be multiple episodes added within a very short time frame, and a full library scan of over 30k items can take 15 minutes. So it's likely i'd be queuing up many library scans if I add multiple episodes over a short period of time.

 

Again, these a new items, so they do not yet have an ItemId.

 

I should add that file system monitoring won't work as Emby is running in a Docker, which itself is running on an Ubuntu 18.04 LXC container, which is running on an Ubuntu 18.04 physical host. The library folders are passed through the host, to the LXC container and finally to the Emby docker container, so the inotify events do not flow through the different abstractions.

 

Appreciate any insights on this.

 

Thanks!

Edited by Stokkes
Posted

In the server's swagger api docs, please check out this api:

/Library/Media/Updated

Thanks.

Posted

What should the request body be? I'm confused by "UpdateType"

Posted

Hi, did you check out this api in the swagger docs?

Posted

We have submitted pull requests to both Sonarr and Radarr to help them update to the new library update API in Emby 4.0.

 

Have fun !

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...