diff --git a/src/formatters.nim b/src/formatters.nim index 2d937a7..4fd14fb 100644 --- a/src/formatters.nim +++ b/src/formatters.nim @@ -56,7 +56,7 @@ proc replaceUrl*(url: string; prefs: Prefs; absolute=""): string = proc getM3u8Url*(content: string): string = var m: RegexMatch - if content.match(m3u8Regex, m): + if content.find(m3u8Regex, m): result = content[m.group(0)[0]] proc proxifyVideo*(manifest: string; proxy: bool): string =