rework emby collection scanning (#1205)

* optimize emby collection scan frequency

* add button to sync emby collections

* update changelog

* fix scanning; add progress indicator
This commit is contained in:
Jason Dove
2023-03-11 22:29:10 -06:00
committed by GitHub
parent 35445e2b3d
commit 78745de0ca
21 changed files with 4817 additions and 28 deletions
@@ -6,6 +6,7 @@ public interface IEntityLocker
event EventHandler OnPlexChanged;
event EventHandler<Type> OnRemoteMediaSourceChanged;
event EventHandler OnTraktChanged;
event EventHandler OnEmbyCollectionsChanged;
bool LockLibrary(int libraryId);
bool UnlockLibrary(int libraryId);
bool IsLibraryLocked(int libraryId);
@@ -18,4 +19,7 @@ public interface IEntityLocker
bool IsTraktLocked();
bool LockTrakt();
bool UnlockTrakt();
bool LockEmbyCollections();
bool UnlockEmbyCollections();
bool AreEmbyCollectionsLocked();
}
@@ -83,4 +83,5 @@ public interface IMediaSourceRepository
Task<List<int>> DeleteAllEmby();
Task<Unit> EnableEmbyLibrarySync(IEnumerable<int> libraryIds);
Task<List<int>> DisableEmbyLibrarySync(List<int> libraryIds);
Task<Unit> UpdateLastScan(EmbyMediaSource embyMediaSource);
}