diff options
| author | Omar Roth <omarroth@protonmail.com> | 2019-10-15 22:09:01 -0400 |
|---|---|---|
| committer | Omar Roth <omarroth@protonmail.com> | 2019-10-15 22:09:01 -0400 |
| commit | 3f3e52d7ae9d5077aea6d534c48555d7cffe71b0 (patch) | |
| tree | 15f6078f81f4564283c828b194353be0c58f44fc | |
| parent | 5c6911065845d2724c7826f3d663a6ee6c7d4774 (diff) | |
| download | invidious-3f3e52d7ae9d5077aea6d534c48555d7cffe71b0.tar.gz invidious-3f3e52d7ae9d5077aea6d534c48555d7cffe71b0.tar.bz2 invidious-3f3e52d7ae9d5077aea6d534c48555d7cffe71b0.zip | |
Fix indexId for created playlist video
| -rw-r--r-- | src/invidious.cr | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
