6 Commits
Author SHA1 Message Date
Martin Weinelt 2a204988c3 Properly fix version handling with packaging>=22.0
Both the current version and the last startup version can be unparsable.

Hence we now just catch the resulting exception and reset the version
to the new version, which may or may not be parsable, which we'll find
out on the next start up. But either way this prevents crashes from
unparsable versions in the database.
2023-05-29 16:03:47 +02:00
Martin Weinelt 48d54beffd radio: don't get stuck on mpd http streams
MPD HTTP streaming provide the media content at every URL thrown at the
HTTP backend. So requests for shoutcast and icecast metadata get stuck
receiving the actual media content, instead of the expected metadata.

The conclusion is to only request these metadata files, when they're not
actually advertised as audio or video content types in a HEAD request.
2021-06-01 23:16:22 +02:00
Martin Weinelt 849a0a0843 Only fetch changelog, when auto-updates are enabled
Fixes: #268
2021-05-16 16:15:39 +02:00
Martin Weinelt faddf4c6c2 Unescape HTML in URLs parsed from user input
Escapes tokens like & to &, so GET parameters are correctly preserved.

Fixes: #274
2021-05-16 15:04:50 +02:00
Martin Weinelt e6d12e36c7 Don't accumulate playlist items over multiple attemps
Playlist items would previously have been added once for each attempt,
due to items being scoped differently than the playlist parsing
attempts. Each attempt would add to the playlist every time, since we
only returned outside the attempts loop.
2021-05-16 05:51:42 +02:00
Martin Weinelt e6592f5c22 Don't assume text messages have a first character in command parsing
Fixes: #271
2021-05-16 02:53:12 +02:00