From 25f5a0342dbd064790637fc5c05d8058d4da25f2 Mon Sep 17 00:00:00 2001 From: Joseph Nuthalapati Date: Fri, 26 Jun 2020 06:49:18 +0530 Subject: [PATCH] Support http in addition to https Some of the old YouTube videos still have http links. They will redirect to https. Signed-off-by: Joseph Nuthalapati --- src/nimcoon.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nimcoon.nim b/src/nimcoon.nim index 265409d..3844d40 100644 --- a/src/nimcoon.nim +++ b/src/nimcoon.nim @@ -45,7 +45,7 @@ proc main() = if(not isValidOptions(options)): quit(1) - if searchQuery.startswith("https:") or searchQuery.startswith("magnet:"): + if searchQuery.startswith("http") or searchQuery.startswith("magnet"): if options["download"]: directDownload(sanitizeURL(searchQuery), options["musicOnly"]) else: -- 2.43.0