Exemple #1
0
        private async Task <PlexMediaContainer> GetLibraryContainer(PlexLibraryRow library, bool fullRefresh, string authToken, string plexUri)
        {
            PlexMediaContainer libraryContainer;

            if (fullRefresh)
            {
                libraryContainer = await _plexApi.GetLibrary(authToken, plexUri, library.LibraryKey);
            }
            else
            {
                libraryContainer = await _plexApi.GetRecentlyAdded(authToken, plexUri, library.LibraryKey);
            }

            return(libraryContainer);
        }