mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-13 05:40:31 +05:30
Merge pull request #6695 from Bnyro/master
fix: live videos shown as uploaded in 1970 in watch history
This commit is contained in:
commit
d23ae09150
@ -54,7 +54,8 @@ class WatchHistoryAdapter(
|
|||||||
holder.binding.apply {
|
holder.binding.apply {
|
||||||
videoTitle.text = video.title
|
videoTitle.text = video.title
|
||||||
channelName.text = video.uploader
|
channelName.text = video.uploader
|
||||||
videoInfo.text = video.uploadDate?.let { TextUtils.localizeDate(it) }
|
videoInfo.text =
|
||||||
|
video.uploadDate?.takeIf { !video.isLive }?.let { TextUtils.localizeDate(it) }
|
||||||
ImageHelper.loadImage(video.thumbnailUrl, thumbnail)
|
ImageHelper.loadImage(video.thumbnailUrl, thumbnail)
|
||||||
|
|
||||||
if (video.duration != null) {
|
if (video.duration != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user