Radio station db to index util
This commit is contained in:
@@ -307,3 +307,19 @@ function getRadioStationFromParams(params) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
|
function getRadioStationIdFromDatabaseId(databaseId) {
|
||||||
|
if (databaseId <= 0) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
for (let i in getServerData().radioStations) {
|
||||||
|
if (getServerData().radioStations[i].databaseId == databaseId) {
|
||||||
|
return i;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
Reference in New Issue
Block a user