Add radio station data util
This commit is contained in:
@@ -327,4 +327,18 @@ function getRadioStationIdFromDatabaseId(databaseId) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
// ===========================================================================
|
||||
|
||||
function getRadioStationData(radioStationIndex) {
|
||||
if (radioStationIndex == -1) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (typeof getServerData().radioStations[radioStationIndex] == "undefined") {
|
||||
return false;
|
||||
}
|
||||
|
||||
return getServerData().radioStations[radioStationIndex];
|
||||
}
|
||||
|
||||
// ===========================================================================
|
||||
Reference in New Issue
Block a user