From 8a6fbe81ab5f85ecda9a64ac05900d32791d9a8d Mon Sep 17 00:00:00 2001 From: Zed Date: Wed, 12 Jan 2022 19:19:14 +0100 Subject: [PATCH] Fix video processing crash Closes #512 --- src/formatters.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/formatters.nim b/src/formatters.nim index 8ac61b7..31dfb76 100644 --- a/src/formatters.nim +++ b/src/formatters.nim @@ -87,7 +87,7 @@ proc proxifyVideo*(manifest: string; proxy: bool): string = let url = if line.startsWith("#EXT-X-MAP:URI"): line[16 .. ^2] else: line - if url[0] == '/': + if url.startsWith('/'): let path = "https://video.twimg.com" & url replacements.add (url, if proxy: path.getVidUrl else: path) return manifest.multiReplace(replacements)