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