add ability to deep scan just a single tv show for Plex, Emby, and Jellyfin (#2318)

* add ability to deep scan just a single tv show for Plex, Emby, and Jellyfin

Including "/api/libraries/{id:int}/scan-show" REST API endpoint to
trigger.

* restrict plex search results to the intended library

* restrict scanning to media server libraries that are marked to sync with etv

* fix previous commit

* also guard library scan api

* add scan buttons to show ui

* scan single plex show by id

* scan jellyfin and emby single shows by id

* update changelog

---------

Co-authored-by: Jeff Slutter <MrMustard@gmail.com>
Co-authored-by: Jason Dove <1695733+jasongdove@users.noreply.github.com>
This commit is contained in:
midnite8177
2025-08-14 16:07:56 +00:00
committed by GitHub
co-authored by Jeff Slutter Jason Dove
parent f626954eb7
commit d0af507bef
52 changed files with 1793 additions and 53 deletions
@@ -29,6 +29,20 @@ public class QueueLibraryScanByLibraryIdHandler(
foreach (Library library in maybeLibrary)
{
bool shouldSyncItems = library switch
{
PlexLibrary plexLibrary => plexLibrary.ShouldSyncItems,
JellyfinLibrary jellyfinLibrary => jellyfinLibrary.ShouldSyncItems,
EmbyLibrary embyLibrary => embyLibrary.ShouldSyncItems,
_ => true
};
if (!shouldSyncItems)
{
logger.LogWarning("Library sync is disabled for library id {Id}", library.Id);
return false;
}
if (locker.LockLibrary(library.Id))
{
logger.LogDebug("Queued library scan for library id {Id}", library.Id);