From 3e3ba84394af884bdc86482073baa2f3b161f525 Mon Sep 17 00:00:00 2001 From: Joseph Nuthalapati Date: Mon, 23 Dec 2019 18:23:22 +0530 Subject: [PATCH] Add PeerTube support Now we have two supported video platforms: YouTube and PeerTube Signed-off-by: Joseph Nuthalapati --- README.md | 2 +- clitube.nim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) -- 2.43.0