Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Playlist): display views and upload date #6920

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

FineFindus
Copy link
Contributor

@FineFindus FineFindus commented Jan 5, 2025

As the Piped API now provides the number of views/upload date for a playlist item, we can display them in the playlist view.

Ref: #4401

This however leads to the channel being displayed below the views/upload date, which is suboptimal. I'm not sure what is the best way to solve that, either displaying it the info line itself (like for other related streams) or modifying to view to display it above the video info?
Since related streams already show channel, views and upload date in this way, I think it is best to continue doing so here. It also works when the information is missing, such as when using created playlists.

Before After
Playlist with items only showing the uploader Playlist with items showing views

@FineFindus FineFindus marked this pull request as draft January 5, 2025 21:25
As the Piped API now provides the number of views/upload date for a playlist item, we can
display them in the playlist view.

Ref: libre-tube#4401
@FineFindus FineFindus force-pushed the feat/playlist-views branch from aeb6a50 to d0d9deb Compare January 6, 2025 13:36
@FineFindus FineFindus marked this pull request as ready for review January 6, 2025 13:41
Copy link
Member

@Bnyro Bnyro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thank you!

@Bnyro Bnyro merged commit 9950f18 into libre-tube:master Jan 7, 2025
2 of 3 checks passed
@FineFindus FineFindus deleted the feat/playlist-views branch January 7, 2025 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants