Commit Graph

27 Commits

Author SHA1 Message Date
Daniel - f982f37d69
Use relative file names when updating playlist
This is the documented behavior, the previous usage of absolute file names was a
mistake.
2021-02-24 13:58:43 +01:00
Daniel - 1df794ebf2
Omit null strings when updating playlists
Inserting a null string results in all files in the current buffer to be added
to that playlist.  Finding this bug was tricky!
2021-02-24 13:58:10 +01:00
Daniel - 015d218431
Fix wrong handling of EMMS' current playlist buffer during export
The macro `with-current-emms-playlist' does not set the current playlist to the
current buffer, but instead switches to it.  Yes, that's reasonable, but not
what I thought it does.  Since I need the reverse (make the current buffer to
temporarily be the current playlist), we simply bind `emms-playlist-buffer' to
the value returned by `current-buffer'.

While we are at it, also make info loading synchronous by binding
`emms-info-asynchronously' to nil.
2021-02-24 13:35:43 +01:00
Daniel - b148c41c98
Sort tracks in auto-generated playlists by title and author
For this, the playlist export of EMMS is used to enable sorting by track
metadata.  The current implementation is a first try and may contain some bugs
when track metadata is not readily available.
2021-02-24 13:10:08 +01:00
Daniel - 8039aad605
Update docstring for git-annex playlist generation function
It's not generating a playlist, but a list of absolute file names that are later
used to generate a playlist proper.
2021-02-06 18:18:35 +01:00
Daniel - 845d5d137c
Add function to generate playlists from git-annex metadata
This had been done manually from the shell until now.
2020-08-15 15:02:06 +02:00
Daniel - 772ee43c2c
Add custom function to play radio stations 2020-08-12 21:57:48 +02:00
Daniel - dd27018420
Rename main music hydra and move it to `db-music'
The `db-music' package is supposed to be an abstract interface to music
functionality, and should thus define the main hydra for this.  Moreover, the
hydra should not contain „emms“ in it's name, although it's using only EMMS
functions.

It's not clear whether EMMS will every be replaced by some other backend, but
it's nicer to have a (more or less) clear separation between user frontend and
implementation backend.
2020-06-27 10:16:53 +02:00
Daniel - 7dbe2445ac
Remove obsolete cache playlist functionality
It has been replaced by a git-annex powered backend long ago.
2020-06-26 22:29:44 +02:00
Daniel - 8bb2d69fb3
Add missing requires for `db-music' 2020-06-26 22:28:15 +02:00
Daniel - 952e6f1c95
[Music] Add simple function to play files from git-annex-find call 2019-06-10 16:27:28 +02:00
Daniel - b6414e118d
[Music] Move cache update function to better place in db-music.el 2019-06-10 16:26:58 +02:00
Daniel - 9e075d6e0c
[Music] Introduce ‘db/play-auto-playlist’
This is the main entry point to play automatically generated playlists (“auto
playlists”).  It is using the value of ‘db/auto-playlist-file-function’ to
generate a list of files to play.  This list if currently played using EMMS, via
‘db/-emms-playlist-from-files’.
2019-06-10 14:11:52 +02:00
Daniel - c309cf7917
[Music] Move customizable variables into db-music.el 2019-06-10 11:33:35 +02:00
Daniel - 402bfc7643
[Music] Check return value of call to git-annex-find 2019-06-10 09:45:24 +02:00
Daniel - 29d138f968
[Music] Simplify call to git-annex-find
And also make it more secure, because no shell is involved anymore.
2019-06-10 09:39:54 +02:00
Daniel - f8c71d96e9
[Music] Check that list of files is not empty before changing EMMS playlist 2019-06-10 09:39:54 +02:00
Daniel - 7cd6d399a4
[Music] Fix name of playlist function from git-annex-find 2019-06-10 09:39:53 +02:00
Daniel - bd29ca9c02
[Music] Simplify implementation of ‘db/play-playlist-from-cache’
Use ‘db/-emms-playlist-from-files’ instead of generating the playlist on our
own.
2019-06-10 09:39:53 +02:00
Daniel - 68d7605deb
[Music] Add playlist function based on git-annex match expressions 2019-06-10 09:39:53 +02:00
Daniel - 9b48edd77f
[Music] Allow for customizing automatic playlist function 2019-06-10 09:39:52 +02:00
Daniel - 90445b6c3d
[Music] Cosmetics
That’s important!
2019-03-02 15:33:55 +01:00
Daniel - f671a44939
[Music] Make updating playlists keep tracks outside of source directory 2019-03-02 15:29:46 +01:00
Daniel - ed285c87d2
[Music] Minor changes and cosmetics 2019-03-02 15:18:19 +01:00
Daniel - 037f0cfbee
[Music] A simple helper function to update ‘db/playlist’ 2019-03-02 14:36:40 +01:00
Daniel - f2c0847ffa
[Music] Move require to top 2019-03-02 14:36:34 +01:00
Daniel - 888e703448
[Music] Introduce ‘db/music’ and move code there
All music related functions that do not directly depend on EMMS will now go into
‘db/music’, with the intention that if we in the future replace EMMS with
something else, the API provided by ‘db/music’ will still be valid.  This does
not mean, however, that functions in ‘db/music’ may not use functions from EMMS.
2019-03-02 13:37:05 +01:00