emms-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

script to add to favorites in org file


From: Aleksas Tunikas
Subject: script to add to favorites in org file
Date: Fri, 11 Aug 2023 16:37:10 +0300
User-agent: mu4e 1.10.5; emacs 29.1

speaking of which i also use this script but it is very basic it copy
the content of the file and date/time so i can track down what i was
liking in particular day, also generated with gpt bot!

#!/bin/bash
emacsclient -e "(let ((default-directory \"$HOME\"))
                   (with-current-buffer (find-file-noselect 
\"emms_favorites.org\")
                     (goto-char (point-max))
                     (insert (format \"* %s\n  - Timestamp: %s\n  - Artist: 
%s\n  - Title: %s\n\n\"
                                     (emms-track-description 
(emms-playlist-current-selected-track))
                                     (format-time-string \"%Y-%m-%d %H:%M:%S\")
                                     (emms-track-get 
(emms-playlist-current-selected-track) 'info-artist)
                                     (emms-track-get 
(emms-playlist-current-selected-track) 'info-title)))))" > /dev/null 2>&1

none of this use the extended browser functionality, which is naturally
a shame, but also show how many ways there are in the world to skin a
cat! 
-- 
Aleksas Tunikas
http://www.aleksas.ru



reply via email to

[Prev in Thread] Current Thread [Next in Thread]