From 3f3e52d7ae9d5077aea6d534c48555d7cffe71b0 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Tue, 15 Oct 2019 22:09:01 -0400 Subject: [PATCH] Fix indexId for created playlist video --- src/invidious.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious.cr b/src/invidious.cr index ad313269..3f0cc69e 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -5003,7 +5003,7 @@ post "/api/v1/auth/playlists/:plid/videos" do |env| host_url = make_host_url(config, Kemal.config) - env.response.headers["Location"] = "#{host_url}/api/v1/auth/playlists/#{plid}/videos/#{playlist_video.index}" + env.response.headers["Location"] = "#{host_url}/api/v1/auth/playlists/#{plid}/videos/#{playlist_video.index.to_u64.to_s(16).upcase}" env.response.status_code = 201 playlist_video.to_json(locale, config, Kemal.config, index: playlist.index.size) end