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

Add ability to sort by original publication date #4959

Closed
Mike35538 opened this issue May 4, 2022 · 5 comments · Fixed by #4977
Closed

Add ability to sort by original publication date #4959

Mike35538 opened this issue May 4, 2022 · 5 comments · Fixed by #4977
Labels
good first issue Type: Feature Request ✨ UI non-trivial UI changes, that might need discussion

Comments

@Mike35538
Copy link

Describe the problem to be solved

A lot of channels have a huge amount of videos uploaded in one day. They all have the same published on date but often users set the Original publication date to reflect when they first created the video or made it public on other video platforms etc. So it can be difficult to have an idea of the chronological order of the videos based on sorting by Recently Added.

Describe the solution you would like:

On the channel page, eg., https://framatube.org/c/joinpeertube/videos
Add to the sort by drop down menu the option: Sort by "Original Publication Date"
And then it would sort newest to the top and oldest to the bottom based on video Original Publication Date. If a video doesn't have an Original Publication Date filled in then it would use the published on date.

Thanks!

@Chocobozzz Chocobozzz changed the title On Channel Page Add Option Sort by Original Publication Date Add ability to sort by original publication date May 5, 2022
@Chocobozzz Chocobozzz added Type: Feature Request ✨ good first issue UI non-trivial UI changes, that might need discussion labels May 5, 2022
@Jlll1
Copy link
Contributor

Jlll1 commented May 8, 2022

I'd like to work on this one; adding "Original Publication Date" option to the sort dropdown in video-filters and handling sorting by OriginallyPublishedAt.

@kontrollanten
Copy link
Contributor

I've created a plugin to sort by originallyPublishedAt where publishedAt is used; https://framagit.org/kontrollanten/peertube-plugin-sort-originally-published-at

Chocobozzz added a commit that referenced this issue May 24, 2022
)

* Add Original Publication Date sort dropdown option in video filters

* Make the minimal sort dropdown width 250px to acomodate for 'Originally Published At' option

* Improve label

Co-authored-by: Chocobozzz <me@florianbigard.com>
@Mike35538
Copy link
Author

Thanks everyone!

@g4rf
Copy link

g4rf commented Aug 4, 2023

Thanks for this great plugin. It works like a charme on many pages and replaces the "Last added" with "Originally published".

But: On channels it uses still the last-added-date, and not the originally-published-date. I have this bug e.g. here with a videolog that should be sorted in the right way using the originally-published-date: https://tube.g4rf.net/c/smorgasbord/

Is this a bug or do I miss something?

Thanks in advance,
Jan

@kontrollanten
Copy link
Contributor

kontrollanten commented Aug 4, 2023

Hi,

That sounds like a bug. You're welcome till an issue at the repo or just making a PR. Thanks for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Type: Feature Request ✨ UI non-trivial UI changes, that might need discussion
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants