omit channels from results

This commit is contained in:
Paul Wilde 2024-10-16 15:13:00 +01:00
parent 0c53b754f3
commit 2ce21590e0
3 changed files with 2 additions and 2 deletions

Binary file not shown.

View file

@ -1,6 +1,6 @@
# Package
version = "0.1.0"
version = "0.1.1"
author = "Paul Wilde"
description = "Porninvidious re-made in Nim"
license = "BSD-3-Clause"

View file

@ -28,7 +28,7 @@ proc request(uri: string): string =
client.close()
proc parseUrls(content: string): seq[string] =
let url_re = re"""<div class="thumb"><a href=\"(.*)\">"""
let url_re = re"""<div class="thumb"><a href=\"/video(.*)\">"""
let urls = collect:
for url in content.findAll(url_re):
url.split("\"")[3]