1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2025-04-07 19:26:44 +00:00

Comment: maximum length of 50 items

(PR review from @Stypox)
This commit is contained in:
Thiago F. G. Albuquerque 2025-03-11 20:19:54 -03:00
parent c28478ae53
commit f96b8f7b2a

@ -50,7 +50,7 @@ fun exportAsYoutubeTempPlaylist(playlist: List<PlaylistStreamEntry>): String {
val videoIDs = playlist.asReversed().asSequence()
.map { it.streamEntity.url }
.mapNotNull(::getYouTubeId)
.take(50)
.take(50) // YouTube limitation: temp playlists can't have more than 50 items
.toList()
.asReversed()
.joinToString(separator = ",")