-
Notifications
You must be signed in to change notification settings - Fork 879
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
[Feature] Playlist: Sort videos by published date #6280
base: development
Are you sure you want to change the base?
[Feature] Playlist: Sort videos by published date #6280
Conversation
Head branch was pushed to by a user without write access
@efb4f5ff-1298-471a-8973-3d47447115dc Yes, minutes or hours are fine. However, I checked the existing list view in terms of formatting, and it turned that upcoming events formatted as date and time. I did the same: |
This is probably out of scope of this PR but im going to mention it anyway. This was an upcoming video but i fetched it through my subscription page using RSS (see #3356 for more info on that) therefore it saved an incorrect publish date. The video is live now so i tried going to the video in the hope that the publish date would get updated in the playlist but it didnt. VirtualBoxVM_OSIA7fnKU9.mp4 |
@efb4f5ff-1298-471a-8973-3d47447115dc Yeah, this is a little out of scope of a simple sorting options. With regular videos (which is most cases I believe) dates work fine though... |
Everything lgtm, i sign off when @absidue does |
A few observations on the dates issue... There is a sort of mix of the "premiere" and "published" date definition in the list view (see ft-list-video.js:710-721). "publish" can become "premiere" in certain cases. One more limitation is that when you playlist a video AFAIK it actually stores it's metadata as of current moment (see ft-list-video.js:820-832), so it won't update over the time, unlike in RSS feed when each time you receive fresh metadata. |
I haven't reviewed this fully but I've noticed that instead of using the existing premiereDate or premiereTimestamp fields, this pull request does its own thing, could you please use one of the existing two properties instead. |
@efb4f5ff-1298-471a-8973-3d47447115dc That is expected we never update data in the playlists after they have been added, you are thinking of the watch history. |
Head branch was pushed to by a user without write access
Alright, I've simplified code a little by reusing the existing |
Non-blocking: I just want to point out that if we ever add support for importing the playlists from Google Takeout exports, the method we would be using to get the information would not provide the published dates (wouldn't have been a problem before this pull request as FreeTube didn't save them itself). |
Playlist: Sort videos by published date
Pull Request Type
Related issue
closes #6223
Description
Add new video order options in user playlists:
Screenshots
Testing
The following scenarios tested:
Side effects:
published = 0
).Desktop
Additional context
N/A