mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Fix sort options for Atom feed
This commit is contained in:
parent
6135006b26
commit
e180cf70f8
1 changed files with 3 additions and 3 deletions
|
@ -1022,11 +1022,11 @@ get "/feed/private" do |env|
|
|||
case sort
|
||||
when "alphabetically"
|
||||
videos.sort_by! { |video| video.title }
|
||||
when "alphabetically - reverse"
|
||||
when "reverse_alphabetically"
|
||||
videos.sort_by! { |video| video.title }.reverse!
|
||||
when "channel name"
|
||||
when "channel_name"
|
||||
videos.sort_by! { |video| video.author }
|
||||
when "channel name - reverse"
|
||||
when "reverse_channel_name"
|
||||
videos.sort_by! { |video| video.author }.reverse!
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue