Commit graph

3700 commits

Author SHA1 Message Date
Alok Saboo
3ead37775e Update listenbrainz.py 2023-12-20 09:47:42 -05:00
Alok Saboo
fc9e68eccf Update listenbrainz.py 2023-12-20 09:46:06 -05:00
Alok Saboo
aa117bb760 Update listenbrainz.py 2023-12-20 09:45:02 -05:00
Alok Saboo
4a46769a2c Update listenbrainz.py 2023-12-19 18:40:34 -05:00
Alok Saboo
84da424fae Update listenbrainz.py 2023-12-19 18:39:36 -05:00
Alok Saboo
f5735f6e09 Update listenbrainz.py 2023-12-19 18:24:53 -05:00
Alok Saboo
d17d1468c9 Update listenbrainz.py 2023-12-19 18:23:21 -05:00
Alok Saboo
b39779d838 Update listenbrainz.py 2023-12-19 18:16:22 -05:00
Alok Saboo
a0b41e8474 Update listenbrainz.py 2023-12-19 18:13:11 -05:00
Alok Saboo
f376c21b03 Update listenbrainz.py 2023-12-19 18:12:16 -05:00
Alok Saboo
a35d7648b1 Update listenbrainz.py 2023-12-19 18:10:36 -05:00
Alok Saboo
af55c1ecb8 Update listenbrainz.py 2023-12-19 18:06:45 -05:00
Alok Saboo
9e7b70903c Update listenbrainz.py 2023-12-19 17:24:24 -05:00
Alok Saboo
14063951bf Update listenbrainz.py 2023-12-19 17:18:54 -05:00
Alok Saboo
3000664344 Update listenbrainz.py 2023-12-19 17:13:08 -05:00
Alok Saboo
f3d8655ee5 Update listenbrainz.py 2023-12-19 17:12:12 -05:00
Alok Saboo
92bb8584d4 Update listenbrainz.py 2023-12-19 17:10:29 -05:00
Alok Saboo
cac7f7d2dd Update listenbrainz.py 2023-12-19 17:06:50 -05:00
Alok Saboo
efcb54995e Update listenbrainz.py 2023-12-19 17:06:11 -05:00
Alok Saboo
e884d78351 Update listenbrainz.py 2023-12-19 17:05:07 -05:00
Alok Saboo
cd4e44ec06 Update listenbrainz.py 2023-12-19 16:55:58 -05:00
Alok Saboo
6a94276af9 Update listenbrainz.py 2023-12-19 16:53:22 -05:00
Alok Saboo
240faaa619 Update listenbrainz.py 2023-12-19 16:51:54 -05:00
Alok Saboo
03888fa5b3 Update listenbrainz.py 2023-12-19 16:49:40 -05:00
Alok Saboo
c99cd85083 Update listenbrainz.py 2023-12-19 16:47:40 -05:00
Alok Saboo
7cae5eb70e Update listenbrainz.py 2023-12-19 16:46:43 -05:00
Alok Saboo
702570f495 Update listenbrainz.py 2023-12-19 16:44:17 -05:00
Alok Saboo
04dc0f6862 Update listenbrainz.py 2023-12-19 16:40:41 -05:00
Alok Saboo
2be00a4d17 Update listenbrainz.py 2023-12-19 16:39:44 -05:00
Alok Saboo
69a0ce6e7d Update listenbrainz.py 2023-12-19 16:36:58 -05:00
Alok Saboo
eeb4c4b5cc Update listenbrainz.py 2023-12-19 16:34:00 -05:00
Alok Saboo
393ff0c7bd Update listenbrainz.py 2023-12-19 15:51:03 -05:00
Alok Saboo
549827a46a Update listenbrainz.py 2023-12-19 15:49:02 -05:00
Alok Saboo
ed98370077 Update listenbrainz.py 2023-12-19 15:48:19 -05:00
Alok Saboo
cb58f32173 Update listenbrainz.py 2023-12-19 15:41:08 -05:00
Alok Saboo
658d1d7340 Update listenbrainz.py 2023-12-19 15:39:10 -05:00
Alok Saboo
a2428f4845 Update listenbrainz.py 2023-12-19 15:38:20 -05:00
Alok Saboo
444fd2e83d Update listenbrainz.py 2023-12-19 15:37:00 -05:00
Alok Saboo
4afd992fbd Update listenbrainz.py 2023-12-19 15:34:06 -05:00
Alok Saboo
b12a59ed58 Update listenbrainz.py 2023-12-19 15:31:12 -05:00
Alok Saboo
0d56ec7232 Update listenbrainz.py 2023-12-19 15:30:19 -05:00
Alok Saboo
969ff61cf9 Update listenbrainz.py 2023-12-19 15:28:10 -05:00
Alok Saboo
7d6c123436 Update listenbrainz.py 2023-12-19 15:18:27 -05:00
Alok Saboo
619fb17383 Update listenbrainz.py 2023-12-19 14:57:44 -05:00
Alok Saboo
2c25076fbf Update listenbrainz.py 2023-12-19 14:55:30 -05:00
Alok Saboo
d4cb8ff654 Create listenbrainz.py 2023-12-19 14:28:46 -05:00
Max Goltzsche
58e5b02929
smartplaylist: add --uri-format option
Beets web API already allows remote players to access audio files but it doesn't provide a way to expose the playlists defined using the smartplaylist plugin.
Now the smartplaylist plugin provides an option to generate ID-based item URIs/URLs instead of paths.
Once playlists are generated this way, they can be served using a regular HTTP server such as nginx.

To provide sufficient flexibility for various ways of integrating beets remotely (e.g. beets API, beets API with context path, AURA API, mopidy resource URI, etc), the new option has been defined as a template with an `$id` placeholder (assuming each remote integration requires a different path schema but they all rely on using the beets item `id` as identifier/path segment).

To prevent local path-related plugin configuration from leaking into a HTTP URL-based playlist generation (invoked with CLI option in addition to the local playlists generated into another directory), setting the new option makes the plugin ignore the other path-related options `prefix`, `relative_to`, `forward_slash` and `urlencode`.

Usage examples:
* `beet splupdate --uri-format 'http://beets:8337/item/$id/file'` (for beets web API)
* `beet splupdate --uri-format 'http://beets:8337/aura/tracks/$id/audio'` (for AURA API)

(While it was already possible to generate playlists containing HTTP URLs previously using the `prefix` option, it did not allow to generate ID-based URLs pointing to the beets web API but required to expose the audio files using a web server directly and refer to them using their file system `$path`.)

Relates to #5037
2023-12-16 05:37:27 +01:00
Max Goltzsche
385c05f98e
smartplaylist: change option --extm3u to --output
The boolean flags `--extm3u` and `--no-extm3u` are replaced with a string option `--output=m3u|m3u8`.
This reduces the amount of options and allows to evolve the CLI to support more playlist output formats in the future (e.g. JSON) without polluting the CLI at that point.
2023-12-16 00:23:03 +01:00
Maxr1998
41719d7b49
advancedrewrite: Apply same rewrite to more corresponding album fields 2023-12-15 17:23:40 +01:00
Adrian Sampson
1efd67cb82
Merge pull request #5044 from Maxr1998/advancedrewrite-rewrite
advancedrewrite: Support simple syntax and improve advanced syntax
2023-12-15 09:34:25 -05:00