diff options
| author | BardofSprites <[email protected]> | 2025-04-04 11:21:13 -0400 |
|---|---|---|
| committer | BardofSprites <[email protected]> | 2025-04-04 11:21:13 -0400 |
| commit | b44a03de044ca07d84ce5c924a4c308ce5294174 (patch) | |
| tree | 3a684114d62d99e513edb14aa39631c80ee57036 /bard-elisp/bard-videos.el | |
| parent | 49a3ce51b13b09804166e021dc8ce8cbaa2e3dbc (diff) | |
media library
Diffstat (limited to 'bard-elisp/bard-videos.el')
| -rw-r--r-- | bard-elisp/bard-videos.el | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/bard-elisp/bard-videos.el b/bard-elisp/bard-videos.el deleted file mode 100644 index ae1fadc..0000000 --- a/bard-elisp/bard-videos.el +++ /dev/null @@ -1,20 +0,0 @@ -(require 'cl-lib) -(require 'seq) -(require 'emms) - -(defun bard/play-youtube-video () - "Prompt for a YouTube URL and play it in mpv." - (interactive) - (let ((url (read-string "Enter YouTube URL: "))) - (if (and url (string-match-p "https?://\\(www\\.\\)?youtube\\.com\\|youtu\\.be" url)) - (async-shell-command (format "mpv '%s'" url)) - (message "The URL is not a valid YouTube link: %s" url)))) - -(defun bard/save-emms-watch-later () - "Save the current EMMS playlist to `bard/watch-later-file` using `bard/emms-playlist-format`." - (interactive) - (when (and bard/watch-later-file bard/emms-playlist-format) - (emms-playlist-save bard/emms-playlist-format bard/watch-later-file) - (message "Playlist saved to %s" bard/watch-later-file))) - -(provide 'bard-videos.el) |
