pyradio: add per-station icon url option

This commit is contained in:
magicquark 2026-02-19 03:05:05 +00:00 committed by Austin Horstman
parent ebe3ca5c9c
commit 1efaaf2072
3 changed files with 9 additions and 2 deletions

View file

@ -67,6 +67,12 @@ in
description = "Encoding of the station's metadata block.";
};
iconUrl = mkOption {
type = str;
default = "";
description = "URL of an icon to be shown in desktop notifications.";
};
volume = mkOption {
type = ints.between 0 130;
default = 50;
@ -128,7 +134,7 @@ in
(escapeCSV station.name)
(escapeCSV station.url)
station.encoding
""
(escapeCSV station.iconUrl)
""
""
""

View file

@ -25,6 +25,7 @@
url = "https://somafm.com/defcon256.pls";
volume = 85;
encoding = "utf-8";
iconUrl = "https://somafm.com/img3/defcon400.png";
}
];
};

View file

@ -2,4 +2,4 @@ DEF CON Radio (SomaFM),https://somafm.com/defcon256.pls,,,,,,50
"DEF CON Radio, SomaFM",https://somafm.com/defcon256.pls,,,,,,50
"DEF CON Radio on ""SomaFM""",https://somafm.com/defcon256.pls,,,,,,50
"DEF CON Radio on ""SomaFM""",https://somafm.com/defcon256.pls,,,,,,50
DEF CON Radio (SomaFM),https://somafm.com/defcon256.pls,utf-8,,,,,85
DEF CON Radio (SomaFM),https://somafm.com/defcon256.pls,utf-8,https://somafm.com/img3/defcon400.png,,,,85

1 DEF CON Radio (SomaFM) https://somafm.com/defcon256.pls 50
2 DEF CON Radio, SomaFM https://somafm.com/defcon256.pls 50
3 DEF CON Radio on "SomaFM" https://somafm.com/defcon256.pls 50
4 DEF CON Radio on "SomaFM" https://somafm.com/defcon256.pls 50
5 DEF CON Radio (SomaFM) https://somafm.com/defcon256.pls utf-8 https://somafm.com/img3/defcon400.png 85