diff --git a/src/invidious/compilations.cr b/src/invidious/compilations.cr index 0315f6ec..e3a4147f 100644 --- a/src/invidious/compilations.cr +++ b/src/invidious/compilations.cr @@ -452,7 +452,7 @@ end def template_compilation(compilation) html = <<-END_HTML
#{recode_length_seconds(video["lengthSeconds"].as_i)}
diff --git a/src/invidious/routes/compilations.cr b/src/invidious/routes/compilations.cr index 4a8a17ca..0ccc67c1 100644 --- a/src/invidious/routes/compilations.cr +++ b/src/invidious/routes/compilations.cr @@ -52,7 +52,7 @@ module Invidious::Routes::Compilations compilation = create_compilation(title, privacy, user) - env.redirect "/compilation?list=#{compilation.id}" + env.redirect "/compilation?comp=#{compilation.id}" end def self.delete_page(env) @@ -264,7 +264,7 @@ module Invidious::Routes::Compilations update_first_video_params(compid) - env.redirect "/compilation?list=#{compid}" + env.redirect "/compilation?comp=#{compid}" end def self.add_compilation_items_page(env) @@ -496,7 +496,7 @@ module Invidious::Routes::Compilations user = env.get?("user").try &.as(User) referer = get_referer(env) - compid = env.params.query["list"]?.try &.gsub(/[^a-zA-Z0-9_-]/, "") + compid = env.params.query["comp"]?.try &.gsub(/[^a-zA-Z0-9_-]/, "") if !compid return env.redirect "/" end @@ -504,10 +504,6 @@ module Invidious::Routes::Compilations page = env.params.query["page"]?.try &.to_i? page ||= 1 - if compid.starts_with? "RD" - return env.redirect "/mix?list=#{compid}" - end - begin compilation = get_compilation(compid) rescue ex : NotFoundException diff --git a/src/invidious/views/add_compilation_items.ecr b/src/invidious/views/add_compilation_items.ecr index e62e860c..d8874930 100644 --- a/src/invidious/views/add_compilation_items.ecr +++ b/src/invidious/views/add_compilation_items.ecr @@ -8,13 +8,13 @@