]> njoseph.me Git - nimcoon.git/blobdiff - lib.nim
Add option to play "all" the search results
[nimcoon.git] / lib.nim
diff --git a/lib.nim b/lib.nim
index acc4fc12dd33d46cfb13a905a6f54c28f1fd83ed..893422ecec8138285d2ea1051f28b8ed6f468a30 100644 (file)
--- 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 ""