Files
beets/docs/plugins
Max Goltzsche 5d96509cfe smartplaylist: change encoding of additional field
URL-encode additional item `fields` within generated EXTM3U playlists instead of JSON-encoding them.
This is because JSON-encoding additional fields/attributes made it difficult to parse the `EXTINF` line but using URL-encoding for these values makes parsing easy (because URL-encoded values cannot contain commas, quotation marks and spaces).

I introduced the generation of additional EXTM3U item fields earlier this year and I want to correct that now.

**Design/definition background:**
Unfortunately, I didn't find a clear definition of how additional playlist item attributes should be encoded - apparently there is none.
Given that item URIs within an M3U playlist can be URL-encoded already, defining the values of additional attributes to be URL-encoded is consistent design.
I didn't find examples of additional EXTM3U item attributes in the web where the attribute value contains a comma, space or quotation mark but examples that specified numeric IDs and URLs as attribute values.
Because the URL attribute examples I found didn't contain URL-encoded characters and because it is more readable and unproblematic for parsing, I've let the attribute URL encoding treat `:` and `/` as safe characters.

**Breaking change:**
While this is a breaking change in theory, in practice it is not since afaik all integrations of the smartplaylist plugin's additional EXTM3U item attribute generation feature (beets-webm3u) work with simple attribute values such as the item ID (numeric) whose formatting/encoding is not affected when changing from JSON to URL-encoding.
In other words the change is backward-compatible with the beets-webm3u plugin (which I'll adjust correspondingly after this beets PR was merged).
2025-02-01 01:14:27 +01:00
..
2024-06-10 13:10:16 +01:00
2024-06-10 13:10:16 +01:00
2024-06-10 13:10:16 +01:00
2017-05-05 19:52:55 +01:00
2024-06-10 13:10:16 +01:00
2019-10-05 20:59:47 -07:00
2024-06-10 13:10:16 +01:00
2023-07-10 08:32:29 -04:00
2024-06-10 13:10:16 +01:00
2024-06-10 13:10:16 +01:00
2024-06-10 13:10:16 +01:00
2024-06-10 13:10:16 +01:00
2015-01-26 23:26:54 +01:00
2022-02-16 16:34:38 -05:00
2021-10-30 14:46:14 +02:00
2016-04-30 15:12:07 -07:00
2016-01-18 16:08:54 -05:00
2024-04-20 05:33:48 +02:00
2019-06-05 03:11:49 +02:00
2024-06-10 13:10:16 +01:00
2024-06-10 13:10:16 +01:00
2023-08-09 21:26:15 -04:00
2023-12-21 11:57:14 -05:00
2019-04-21 15:10:28 +01:00
2024-06-10 13:10:16 +01:00
2017-03-18 19:05:46 -04:00
2024-06-10 13:10:16 +01:00
2024-06-10 13:10:16 +01:00
2016-12-26 16:10:46 -05:00
2024-06-10 13:10:16 +01:00
2024-06-10 13:10:16 +01:00
2024-06-10 13:10:16 +01:00
2024-06-10 13:10:16 +01:00
2024-06-10 13:10:16 +01:00