Referer cleanup

This commit is contained in:
Zed
2019-09-05 22:53:23 +02:00
parent 1e55f21fa5
commit 7bdf5b0f76
3 changed files with 15 additions and 10 deletions

View File

@@ -58,10 +58,7 @@ proc renderVideoDisabled(video: Video; path: string): VNode =
of mp4:
p: text "mp4 playback disabled in preferences"
of m3u8, vmap:
form(`method`="post", action=("/enablehls")):
verbatim "<input name=\"referer\" style=\"display: none\" value=\"$1\"/>" % path
button(`type`="submit"):
text "Enable hls playback"
buttonReferer "/enablehls", "Enable hls playback", path
proc renderVideoUnavailable(video: Video): VNode =
buildHtml(tdiv):