Merge pull request #6920 from FineFindus/feat/playlist-views

feat(Playlist): display views and upload date
This commit is contained in:
Bnyro 2025-01-07 14:55:49 +01:00 committed by GitHub
commit 9950f18235
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -80,12 +80,14 @@ class PlaylistAdapter(
holder.binding.apply {
videoTitle.text = streamItem.title
videoInfo.text = streamItem.uploaderName
channelImageContainer.isGone = true
videoInfo.text = TextUtils.formatViewsString(root.context, streamItem.views ?: -1, streamItem.uploaded, streamItem.uploaderName)
videoInfo.maxLines = 2
thumbnailDuration.setFormattedDuration(streamItem.duration ?: -1, streamItem.isShort, streamItem.uploaded)
// piped does not load channel avatars for playlist views
channelContainer.isGone = true
ImageHelper.loadImage(streamItem.thumbnail, thumbnail)
thumbnailDuration.setFormattedDuration(streamItem.duration ?: -1, streamItem.isShort, streamItem.uploaded)
root.setOnClickListener {
NavigationHelper.navigateVideo(root.context, streamItem.url, playlistId)