pyradio: refactor generation of csv row
This commit is contained in:
parent
53069c542e
commit
fd40fa91a4
1 changed files with 11 additions and 1 deletions
|
|
@ -117,7 +117,17 @@ in
|
|||
stations:
|
||||
let
|
||||
body = lib.concatMapStringsSep "\n" (
|
||||
station: "${escapeCSV station.name},${escapeCSV station.url},,,,,,${toString station.volume}"
|
||||
station:
|
||||
lib.concatStringsSep "," [
|
||||
(escapeCSV station.name)
|
||||
(escapeCSV station.url)
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
(toString station.volume)
|
||||
]
|
||||
) stations;
|
||||
in
|
||||
"${body}\n";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue