From: Joseph Nuthalapati Date: Mon, 23 Dec 2019 12:53:22 +0000 (+0530) Subject: Add PeerTube support X-Git-Tag: 0.1.0~38 X-Git-Url: https://njoseph.me/gitweb/nimcoon.git/commitdiff_plain/3e3ba84394af884bdc86482073baa2f3b161f525?ds=sidebyside Add PeerTube support Now we have two supported video platforms: YouTube and PeerTube Signed-off-by: Joseph Nuthalapati --- diff --git a/README.md b/README.md index 863a48f..3838642 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # CLI Tube -Play videos from YouTube (and maybe other sources in the future) from the +Play videos from YouTube and PeerTube from the command line using your preferred desktop media player. This application is implemented in [Nim language](https://nim-lang.org) using diff --git a/clitube.nim b/clitube.nim index 50a3f67..cc35448 100644 --- a/clitube.nim +++ b/clitube.nim @@ -56,7 +56,7 @@ for kind, key, value in getopt(): discard -if "https://www.youtube.com" in searchQuery: +if "?watch" in searchQuery or "videos/watch" in searchQuery : discard execProcess(&"{player} {searchQuery}") quit(0)