summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-10-14 13:53:35 +0300
committerThanos Apollo <[email protected]>2023-10-17 09:24:21 +0300
commit81d72a650564b719807aa16942145142d07d5fc0 (patch)
tree8b0135e5d50c238ca6e6f31d1272eaa86f8f567a
parent810ea52bc1aed75a18b560aafa076c3442983c5f (diff)
Add yeetube-url variable
Avoid hardcoding youtube.com, user can change this to an invidious instance if they desire so
-rw-r--r--yeetube.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/yeetube.el b/yeetube.el
index 6d4f898..f112db5 100644
--- a/yeetube.el
+++ b/yeetube.el
@@ -90,7 +90,10 @@ Example Usage:
(defvar yeetube-last-played nil
"Last played url.")
-;; TODO: Rewrite without hardcoding youtube.com
+(defvar yeetube-url "https://youtube.com/watch?v="
+ "URL used to play videos from.
+
+You can change the value to an invidious instance.")
(defun yeetube-get-url ()
"Get url for subject in *yeetube* buffer at point."
(let ((video-url (concat "https://youtube.com/watch?v="