unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#48904] [PATCH 0/2] Add ‘emacs-ytel’ and ‘emacs-ytel-show’
@ 2021-06-07 15:55 Xinglu Chen
  2021-06-07 15:56 ` [bug#48904] [PATCH 1/2] gnu: Add emacs-ytel Xinglu Chen
  2021-06-07 15:56 ` [bug#48904] [PATCH 2/2] gnu: Add emacs-ytel-show Xinglu Chen
  0 siblings, 2 replies; 4+ messages in thread
From: Xinglu Chen @ 2021-06-07 15:55 UTC (permalink / raw)
  To: 48904

This patch series adds two Emacs packages, one for searching for YouTube
videos using the Invidious API (emacs-ytel), and one for browsing videos
and comments (emacs-ytel-show).

Xinglu Chen (2):
  gnu: Add emacs-ytel.
  gnu: Add emacs-ytel-show.

 gnu/packages/emacs-xyz.scm | 69 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 69 insertions(+)


base-commit: e3611cc412e7b1c750a56d17fb1b7cde684baa3f
-- 
2.32.0






^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#48904] [PATCH 1/2] gnu: Add emacs-ytel.
  2021-06-07 15:55 [bug#48904] [PATCH 0/2] Add ‘emacs-ytel’ and ‘emacs-ytel-show’ Xinglu Chen
@ 2021-06-07 15:56 ` Xinglu Chen
  2021-06-12 20:31   ` bug#48904: " Nicolas Goaziou
  2021-06-07 15:56 ` [bug#48904] [PATCH 2/2] gnu: Add emacs-ytel-show Xinglu Chen
  1 sibling, 1 reply; 4+ messages in thread
From: Xinglu Chen @ 2021-06-07 15:56 UTC (permalink / raw)
  To: 48904

* gnu/packages/emacs-xyz.scm (emacs-ytel): New variable.
---
 gnu/packages/emacs-xyz.scm | 43 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 1d954ec5bd..8ad6d1e119 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -21204,6 +21204,49 @@ youtube-dl backends are supported.  It is possible to create download profiles
 depending on the downloaded URL.")
     (license license:gpl3+)))
 
+(define-public emacs-ytel
+  ;; No releases.
+  ;; Commit from 2020-11-28
+  (let ((commit "d40bc7ead8d4d7e4d16b03b66a93d63bef51cc5f")
+        (revision "0"))
+    (package
+      (name "emacs-ytel")
+      (version (git-version "0.0.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/grastello/ytel")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32
+           "0pxzfsxzrpv59dssrgx2mmwkm6rzk49ffjkgsa3wks7rdyfil3kf"))))
+      (build-system emacs-build-system)
+      (arguments
+       `(#:phases
+         (modify-phases %standard-phases
+           (add-after 'unpack 'patch-exec-paths
+             (lambda* (#:key inputs #:allow-other-keys)
+               (let ((curl (assoc-ref inputs "curl")))
+                 (substitute* "ytel.el"
+                   (("\"curl\"") (string-append "\"" curl "/bin/curl\"")))))))))
+      (inputs
+       `(("curl" ,curl)))
+      (home-page "https://github.com/grastello/ytel")
+      (synopsis "Query YouTube via Invidious")
+      (description
+       "This package provide a major mode to search YouTube videos via an
+Elfeed-like buffer.  Information about videos displayed in this buffer can be
+extracted and manipulated by user-defined functions to do various things such
+as:
+
+@itemize
+@item playing them in some video player
+@item download them
+@end itemize")
+      (license license:gpl3+))))
+
 (define-public emacs-org-web-tools
   (package
     (name "emacs-org-web-tools")
-- 
2.32.0






^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#48904] [PATCH 2/2] gnu: Add emacs-ytel-show.
  2021-06-07 15:55 [bug#48904] [PATCH 0/2] Add ‘emacs-ytel’ and ‘emacs-ytel-show’ Xinglu Chen
  2021-06-07 15:56 ` [bug#48904] [PATCH 1/2] gnu: Add emacs-ytel Xinglu Chen
@ 2021-06-07 15:56 ` Xinglu Chen
  1 sibling, 0 replies; 4+ messages in thread
From: Xinglu Chen @ 2021-06-07 15:56 UTC (permalink / raw)
  To: 48904

* gnu/packages/emacs-xyz.scm (emacs-ytel-show): New variable.
---
 gnu/packages/emacs-xyz.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 8ad6d1e119..5b9ddfff62 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -21247,6 +21247,32 @@ as:
 @end itemize")
       (license license:gpl3+))))
 
+(define-public emacs-ytel-show
+  ;; No releases.
+  ;; Commit from 2020-11-21.
+  (let ((commit "8b999484eb447ecdb741b24cbef2b5a7260a53e6")
+        (revision "0"))
+    (package
+      (name "emacs-ytel-show")
+      (version (git-version "0.0.0" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/xFA25E/ytel-show")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "0nhgzfzq1bgpbdbljx5z2hzr8ia7ybsyvvr66yj4klz0zj97rghj"))))
+      (build-system emacs-build-system)
+      (propagated-inputs
+       `(("emacs-ytel" ,emacs-ytel)))
+      (home-page "https://github.com/xFA25E/ytel-show")
+      (synopsis "Browse YouTube in Emacs")
+      (description "This package provides an Emacs interface for browsing
+YouTube videos and comments.")
+      (license license:gpl3+))))
+
 (define-public emacs-org-web-tools
   (package
     (name "emacs-org-web-tools")
-- 
2.32.0






^ permalink raw reply related	[flat|nested] 4+ messages in thread

* bug#48904: [PATCH 1/2] gnu: Add emacs-ytel.
  2021-06-07 15:56 ` [bug#48904] [PATCH 1/2] gnu: Add emacs-ytel Xinglu Chen
@ 2021-06-12 20:31   ` Nicolas Goaziou
  0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Goaziou @ 2021-06-12 20:31 UTC (permalink / raw)
  To: Xinglu Chen; +Cc: 48904-done

Hello,

Xinglu Chen <public@yoctocell.xyz> writes:

> * gnu/packages/emacs-xyz.scm (emacs-ytel): New variable.

Applied. Thank you.

> +      (version (git-version "0.0.0" revision commit))

I made it "0.1.0" according to the main file.  Same for the other package.

> +      (synopsis "Query YouTube via Invidious")

I rewrote the synopsis, since this one does not seem clearly related to
the project.

> +      (description
> +       "This package provide a major mode to search YouTube videos via an
> +Elfeed-like buffer.  Information about videos displayed in this buffer can be
> +extracted and manipulated by user-defined functions to do various things such
> +as:
> +
> +@itemize
> +@item playing them in some video player
> +@item download them
> +@end itemize")

The list wasn't strictly necessary so I appended it to the last
paragraph instead.

Regards,
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-06-12 20:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-07 15:55 [bug#48904] [PATCH 0/2] Add ‘emacs-ytel’ and ‘emacs-ytel-show’ Xinglu Chen
2021-06-07 15:56 ` [bug#48904] [PATCH 1/2] gnu: Add emacs-ytel Xinglu Chen
2021-06-12 20:31   ` bug#48904: " Nicolas Goaziou
2021-06-07 15:56 ` [bug#48904] [PATCH 2/2] gnu: Add emacs-ytel-show Xinglu Chen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).