X-Git-Url: https://njoseph.me/gitweb/nimcoon.git/blobdiff_plain/d807245d4d9041d9098ea7bb273debfb0224d0ff..72720bec46a37176476c4bb6bc0cb83c0488cbed:/lib.nim diff --git a/lib.nim b/lib.nim index acc4fc1..893422e 100644 --- a/lib.nim +++ b/lib.nim @@ -35,7 +35,7 @@ func extractTitlesAndUrls*(html: string): seq[SearchResult] = {.noSideEffect.}: parseHtml(html).findAll("a"). filter(a => "watch" in a.attrs["href"] and a.attrs.hasKey "title"). - map(a => (a.attrs["title"], "https://www.youtube.com" & a.attrs["href"]))[..(limit-1)] + map(a => (a.attrs["title"], "https://www.youtube.com" & a.attrs["href"])) proc presentVideoOptions*(searchResults: seq[SearchResult]) = echo ""