Beispiel #1
0
    public async Task <Either <BaseError, Unit> > Handle(
        DisconnectJellyfin request,
        CancellationToken cancellationToken)
    {
        List <int> ids = await _mediaSourceRepository.DeleteAllJellyfin();

        await _searchIndex.RemoveItems(ids);

        _searchIndex.Commit();
        await _jellyfinSecretStore.DeleteAll();

        _entityLocker.UnlockRemoteMediaSource <JellyfinMediaSource>();

        return(Unit.Default);
    }