diff options
author | Thanos Apollo <[email protected]> | 2023-07-05 09:38:56 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-07-05 18:13:58 +0300 |
commit | bddb947f80a55eff889f7fc8439aeb6de8eff1fa (patch) | |
tree | c35791e6c6b81462a115cc805cb9b6ff11baef8b | |
parent | b5fa94beef7d33ad0f211bd5be19d038f2dba67a (diff) |
Add yeetube-check-if-youtube
Check if it's youtube
Will be used to differentiate between invidious/youtube
-rw-r--r-- | yeetube.el | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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) |