summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--yeetube.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/yeetube.el b/yeetube.el
index b9b0780..8834601 100644
--- a/yeetube.el
+++ b/yeetube.el
@@ -100,6 +100,12 @@ Example Usage:
(define-key yeetube-mode-map (kbd "a") 'yeetube-change-download-audio-format)
yeetube-mode-map))
+(defun yeetube-check-if-youtube (url)
+ "Check if URL contain youtube."
+ (if (string-match-p "youtube" url)
+ t
+ nil))
+
(defun yeetube-play ()
"Open the url at point in an `'org-mode buffer using 'yeetube-player'."
(interactive)