Skip to content

Commit

Permalink
Revert "Merge zedeus#1148"
Browse files Browse the repository at this point in the history
This reverts commit 24bf781, reversing
changes made to 9634e81.
  • Loading branch information
ButteredCats committed Jan 15, 2024
1 parent 24bf781 commit 3d3bf03
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
5 changes: 5 additions & 0 deletions public/js/hls.light.min.js

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions public/js/hls.min.js

This file was deleted.

2 changes: 0 additions & 2 deletions src/formatters.nim
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ proc proxifyVideo*(manifest: string; proxy: bool): string =
for line in manifest.splitLines:
let url =
if line.startsWith("#EXT-X-MAP:URI"): line[16 .. ^2]
elif line.startsWith("#EXT-X-MEDIA") and "URI=" in line:
line[line.find("URI=") + 5 .. ^2]
else: line
if url.startsWith('/'):
let path = "https://video.twimg.com" & url
Expand Down
2 changes: 1 addition & 1 deletion src/views/general.nim
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ proc renderHead*(prefs: Prefs; cfg: Config; req: Request; titleText=""; desc="";
link(rel="alternate", type="application/rss+xml", href=rss, title="RSS feed")

if prefs.hlsPlayback:
script(nonce=cfg.nonceString, src="/js/hls.min.js", `defer`="")
script(nonce=cfg.nonceString, src="/js/hls.light.min.js", `defer`="")
script(nonce=cfg.nonceString, src="/js/hlsPlayback.js", `defer`="")

if prefs.infiniteScroll:
Expand Down

0 comments on commit 3d3bf03

Please sign in to comment.