@@ -549,12 +549,15 @@ public async Task<IActionResult> GetReadingLists(string apiKey, [FromQuery] int
549549 Id = readingListDto . Id . ToString ( ) ,
550550 Title = readingListDto . Title ,
551551 Summary = readingListDto . Summary ,
552- Links = new List < FeedLink > ( )
553- {
554- CreateLink ( FeedLinkRelation . SubSection , FeedLinkType . AtomNavigation , $ "{ prefix } { apiKey } /reading-list/{ readingListDto . Id } ") ,
555- CreateLink ( FeedLinkRelation . Image , FeedLinkType . Image , $ "{ baseUrl } api/image/readinglist-cover?readingListId={ readingListDto . Id } &apiKey={ apiKey } ") ,
556- CreateLink ( FeedLinkRelation . Thumbnail , FeedLinkType . Image , $ "{ baseUrl } api/image/readinglist-cover?readingListId={ readingListDto . Id } &apiKey={ apiKey } ")
557- }
552+ Links =
553+ [
554+ CreateLink ( FeedLinkRelation . SubSection , FeedLinkType . AtomNavigation ,
555+ $ "{ prefix } { apiKey } /reading-list/{ readingListDto . Id } ") ,
556+ CreateLink ( FeedLinkRelation . Image , FeedLinkType . Image ,
557+ $ "{ baseUrl } api/image/readinglist-cover?readingListId={ readingListDto . Id } &apiKey={ apiKey } ") ,
558+ CreateLink ( FeedLinkRelation . Thumbnail , FeedLinkType . Image ,
559+ $ "{ baseUrl } api/image/readinglist-cover?readingListId={ readingListDto . Id } &apiKey={ apiKey } ")
560+ ]
558561 } ) ;
559562 }
560563
@@ -573,7 +576,7 @@ private static UserParams GetUserParams(int pageNumber)
573576
574577 [ HttpGet ( "{apiKey}/reading-list/{readingListId}" ) ]
575578 [ Produces ( "application/xml" ) ]
576- public async Task < IActionResult > GetReadingListItems ( int readingListId , string apiKey )
579+ public async Task < IActionResult > GetReadingListItems ( int readingListId , string apiKey , [ FromQuery ] int pageNumber = 0 )
577580 {
578581 var userId = await GetUser ( apiKey ) ;
579582 if ( ! ( await _unitOfWork . SettingsRepository . GetSettingsDtoAsync ( ) ) . EnableOpds )
@@ -592,7 +595,7 @@ public async Task<IActionResult> GetReadingListItems(int readingListId, string a
592595 var feed = CreateFeed ( readingList . Title + " " + await _localizationService . Translate ( userId , "reading-list" ) , $ "{ apiKey } /reading-list/{ readingListId } ", apiKey , prefix ) ;
593596 SetFeedId ( feed , $ "reading-list-{ readingListId } ") ;
594597
595- var items = ( await _unitOfWork . ReadingListRepository . GetReadingListItemDtosByIdAsync ( readingListId , userId ) ) . ToList ( ) ;
598+ var items = await _unitOfWork . ReadingListRepository . GetReadingListItemDtosByIdAsync ( readingListId , userId ) ;
596599 foreach ( var item in items )
597600 {
598601 var chapterDto = await _unitOfWork . ChapterRepository . GetChapterDtoAsync ( item . ChapterId ) ;
0 commit comments