From: Joseph Nuthalapati Date: Fri, 26 Jun 2020 01:19:18 +0000 (+0530) Subject: Support http in addition to https X-Git-Tag: 0.5.0~2 X-Git-Url: https://njoseph.me/gitweb/nimcoon.git/commitdiff_plain/25f5a0342dbd064790637fc5c05d8058d4da25f2 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 --- 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: