mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
Minor refactor
This commit is contained in:
parent
64cc0362fb
commit
53c8b5ff2e
1 changed files with 6 additions and 10 deletions
|
@ -390,7 +390,6 @@ get "/playlist" do |env|
|
||||||
page = env.params.query["page"]?.try &.to_i?
|
page = env.params.query["page"]?.try &.to_i?
|
||||||
page ||= 1
|
page ||= 1
|
||||||
|
|
||||||
if plid
|
|
||||||
begin
|
begin
|
||||||
videos = extract_playlist(plid, page)
|
videos = extract_playlist(plid, page)
|
||||||
rescue ex
|
rescue ex
|
||||||
|
@ -398,9 +397,6 @@ get "/playlist" do |env|
|
||||||
next templated "error"
|
next templated "error"
|
||||||
end
|
end
|
||||||
playlist = fetch_playlist(plid)
|
playlist = fetch_playlist(plid)
|
||||||
else
|
|
||||||
next env.redirect "/"
|
|
||||||
end
|
|
||||||
|
|
||||||
templated "playlist"
|
templated "playlist"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue