コード例 #1
0
ファイル: PlexSync.cs プロジェクト: Jbond312/PlexRequestsApi
        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);
        }