-
Notifications
You must be signed in to change notification settings - Fork 887
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
Sort videos within playlist #4921
Sort videos within playlist #4921
Conversation
b1b1df7
to
c07dfb9
Compare
I would prefer to not have sorting for remote playlists at all, if we can't do it properly. We don't allow searching in remote playlists for the same reason. |
Also personally I think that there are too many sorting options, it feels a lot like a "because we can" and not because anyone would ever actually use it (all the people that complained just want a way to reverse playlists). I think we just need 2:
|
On it!
Let's talk about that some more in the Dev channel. That conception seems pretty different from what was being recommended by @efb4f5ff-1298-471a-8973-3d47447115dc and @PikachuEXE in the #4870 discussion. |
fe20a20
to
5c03d60
Compare
I think these are good options but the select box definitely seems to have a lot of options for a |
I'm not opposed to that. Thoughts? @absidue @efb4f5ff-1298-471a-8973-3d47447115dc @PikachuEXE |
Disagree |
static/locales/en-US.yaml
Outdated
Custom: Custom | ||
CustomDescending: Custom (descending) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Custom
already sound a bit weird to me
Custom (descending)
makes it even more weird
I guess this means "user specified" order
User-defined
? (Suggest a better if you can
I'm seeing some different perspectives on this from everyone. I think the option I'm leaning to the most is removing "Custom (Descending)", implementing @PikachuEXE's position (& most likely label) changes, and making "added descending" the default. With "Custom (Descending)" gone we're at 7 playlist sort preferences, compared to YT's 5, which isn't what I would call excessive. I think it's more that the current ordering & wording of the labels could stand to be adjusted to reduce cognitive complexity. Let me know what y'all think. |
I don't see the need for this particular sort order.
Why isn't custom the default sort order? |
Rationale being that "Latest added first" is the previous behavior before the Playlist PR, and seems to be the most requested ordering from people. Custom ordering seems to be relatively less leveraged on average and thus less suited to be the default behavior. |
54e4ba7
to
9db7e48
Compare
One step ahead of you: FreeTube/src/renderer/views/Playlist/Playlist.vue Lines 76 to 77 in 9db7e48
Update: Updated the PR description with changes discussed. |
// TODO: store video.published for user playlists | ||
// DatePublishedNewest: 'date_published_newest', | ||
// DatePublishedOldest: 'date_published_oldest', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want to implement this, you'll have to keep in mind that shorts don't have a published date on the shorts channel tab or in shorts only playlists (not returned in youtube's response, thats's why we always use RSS on the shorts tab on the subscriptions page), so if someone were to add a video to a playlist from there, it would make it impossible to sort by published. Also the Invidious API never returns published dates inside playlists, so if someone were to copy a playlist while using the Invidious API, the published dates would be missing for all videos.
For the watch history we just don't store the published date if it isn't available, but we also don't have any sorting functionality that would depend on it.
Also unlike the watch history where marking as watched from a list is probably quite uncommon (most people probably let the watch page do it automatically), adding to a playlist from a list is probably a lot more common (especially the quick bookmark).
TL;DR: I don't think we should even attempt to support it, due to all of the situations where it wouldn't be possible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this context absidue. Just removed the code for these.
Context from absidue: 'I don't think we should even attempt to support it, due to all of the situations where it wouldn't be possible.'
af09a76
to
8fd5055
Compare
Conflicts have been resolved. A maintainer will review the pull request shortly. |
Didn't mean to push that to this branch, intended to put that in a second PR. My bad! Reset now |
src/renderer/components/ft-playlist-add-video-prompt/ft-playlist-add-video-prompt.js
Show resolved
Hide resolved
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
…at/add-playlist-sort-order
a101de7
Conflicts have been resolved. A maintainer will review the pull request shortly. |
Sort videos within playlist
Pull Request Type
Related issue
closes #4870
Description
Implementation details:
Unrelated mini-fix:
locale
property that was being referenced (but was actually missing) insrc/renderer/components/ft-playlist-add-video-prompt/ft-playlist-add-video-prompt.js
Screenshots
Testing
Desktop
More info
I have a PR coming out after this is merged for handling sorting in
watch-video-playlist
. I split this up to ease the testing criteria and the relative unimportance of the other sorting types compared to the big "Added" and "Custom" ones.