diff --git a/youtube-music/src/main/kotlin/it/vfsfitvnm/youtubemusic/YouTube.kt b/youtube-music/src/main/kotlin/it/vfsfitvnm/youtubemusic/YouTube.kt index fee64c5..0fe3acc 100644 --- a/youtube-music/src/main/kotlin/it/vfsfitvnm/youtubemusic/YouTube.kt +++ b/youtube-music/src/main/kotlin/it/vfsfitvnm/youtubemusic/YouTube.kt @@ -694,7 +694,8 @@ object YouTube { val year: String?, val thumbnail: ThumbnailRenderer.MusicThumbnailRenderer.Thumbnail.Thumbnail?, val items: List?, - val url: String? + val url: String?, + val continuation: String?, ) { open class Item( val info: Info, @@ -795,7 +796,19 @@ object YouTube { url = body .microformat ?.microformatDataRenderer - ?.urlCanonical + ?.urlCanonical, + continuation = body + .contents + .singleColumnBrowseResultsRenderer + ?.tabs + ?.firstOrNull() + ?.tabRenderer + ?.content + ?.sectionListRenderer + ?.continuations + ?.firstOrNull() + ?.nextRadioContinuationData + ?.continuation ) } }