Compare commits
2 Commits
bcaf6006bf
...
57b978c4ec
Author | SHA1 | Date | |
---|---|---|---|
![]() |
57b978c4ec | ||
![]() |
c44e84eb55 |
@ -39,9 +39,9 @@ Item {
|
||||
// ---------------------------------------------------------------------------------------
|
||||
|
||||
onOnlineChanged: {
|
||||
if (online && serverUrl !== "") {
|
||||
if (online && serverUrl.length > 7) {
|
||||
countriesModel.source = serverUrl + "/xml/countrycodes?hidebroken=true"
|
||||
}
|
||||
} else getRandom()
|
||||
}
|
||||
// Not used?!?!?
|
||||
/* function getServer(s,u) {
|
||||
@ -102,7 +102,7 @@ Item {
|
||||
tagCount = obj.tags
|
||||
if (obj.status === "OK") {online = true} else {online = false}
|
||||
}
|
||||
} else if (req.readyState === 4 && req.status > 299) getRandom()
|
||||
}
|
||||
};
|
||||
req.open("get", serverUrl+"/json/stats");
|
||||
req.setRequestHeader('User-Agent',_useragent);
|
||||
|
@ -55,10 +55,7 @@ MediaPlayer {
|
||||
|
||||
onPlaying: if (!playerPageOpen) pageStack.push("../pages/RadioPlayerPage.qml")
|
||||
|
||||
on_CcChanged: console.log(_cc)
|
||||
|
||||
onMetaInfoChanged: {
|
||||
console.log( " *** MetaInfo")
|
||||
if (metaInfo.search(" - ") > -1) {
|
||||
var res = metaInfo.split(" - ")
|
||||
radioArtist = res[0]
|
||||
@ -70,7 +67,6 @@ MediaPlayer {
|
||||
}
|
||||
|
||||
onStationOkChanged: {
|
||||
console.log(" *** StationOk "+stationOk)
|
||||
if (stationOk === 1) {
|
||||
setStationClick()
|
||||
getStationFavorite(_stationuuid)
|
||||
@ -82,7 +78,6 @@ MediaPlayer {
|
||||
}
|
||||
|
||||
on_StationuuidChanged: {
|
||||
console.log(" *** StationuuidChanged: "+_cc)
|
||||
radioCountryName = radioBrowser.getCountryName(_cc)
|
||||
stop()
|
||||
source = ""
|
||||
|
Loading…
x
Reference in New Issue
Block a user