Browse Source

vocaroo.lua: pass HTTP referrer to media URL request

Since last month, requests without a valid referrer get rejected with an
HTTP 403 error.

We might want to consider that the lua script API should track and pass
such referrers by itself.
pull/134/head
Pierre Ynard 5 years ago
committed by Rémi Denis-Courmont
parent
commit
3c9c32ab3b
  1. 4
      share/lua/playlist/vocaroo.lua

4
share/lua/playlist/vocaroo.lua

@ -1,7 +1,7 @@
--[[
$Id$
Copyright © 2016, 2019-2020 the VideoLAN team
Copyright © 2016, 2019-2020, 2022 the VideoLAN team
Authors: Pierre Ynard
@ -39,6 +39,6 @@ function parse()
or "//media.vocaroo.com/mp3/"
local path = vlc.access..":"..cdn..id
return { { path = path } }
return { { path = path; options = { ":http-referrer="..vlc.access.."://"..vlc.path } } }
end

Loading…
Cancel
Save