Add continuation in PlaylistOrAlbum

This commit is contained in:
vfsfitvnm 2022-06-21 11:27:24 +02:00
parent a3332d8f06
commit 0ab184cd85

View file

@ -694,7 +694,8 @@ object YouTube {
val year: String?, val year: String?,
val thumbnail: ThumbnailRenderer.MusicThumbnailRenderer.Thumbnail.Thumbnail?, val thumbnail: ThumbnailRenderer.MusicThumbnailRenderer.Thumbnail.Thumbnail?,
val items: List<Item>?, val items: List<Item>?,
val url: String? val url: String?,
val continuation: String?,
) { ) {
open class Item( open class Item(
val info: Info<NavigationEndpoint.Endpoint.Watch>, val info: Info<NavigationEndpoint.Endpoint.Watch>,
@ -795,7 +796,19 @@ object YouTube {
url = body url = body
.microformat .microformat
?.microformatDataRenderer ?.microformatDataRenderer
?.urlCanonical ?.urlCanonical,
continuation = body
.contents
.singleColumnBrowseResultsRenderer
?.tabs
?.firstOrNull()
?.tabRenderer
?.content
?.sectionListRenderer
?.continuations
?.firstOrNull()
?.nextRadioContinuationData
?.continuation
) )
} }
} }