pyradio: add per-station player profile option

This commit is contained in:
magicquark 2026-02-26 05:04:31 +00:00 committed by Austin Horstman
parent 358bafaf95
commit 56c1ceb3c8
3 changed files with 9 additions and 2 deletions

View file

@ -97,6 +97,12 @@ in
description = "URL of an icon to be shown in desktop notifications.";
};
profile = mkOption {
type = str;
default = "";
description = "Name of the profile to use when using mpv or mplayer.";
};
volume = mkOption {
type = ints.between 0 130;
default = 50;
@ -159,7 +165,7 @@ in
(escapeCSV station.url)
station.encoding
(escapeCSV station.iconUrl)
""
(escapeCSV station.profile)
(lib.optionalString (
station.buffering != null
) "${toString station.buffering.seconds}@${toString station.buffering.bitrate}")