Merge pull request #4712 from Chocobozzz/skyfm

Change sky.fm to radiotunes.com
This commit is contained in:
John Maguire 2015-01-15 22:29:13 +01:00
commit c96502ef4b
9 changed files with 17 additions and 17 deletions

View File

@ -334,7 +334,6 @@
<file>providers/radiogfm.png</file> <file>providers/radiogfm.png</file>
<file>providers/rockradio.png</file> <file>providers/rockradio.png</file>
<file>providers/skydrive.png</file> <file>providers/skydrive.png</file>
<file>providers/skyfm.png</file>
<file>providers/somafm.png</file> <file>providers/somafm.png</file>
<file>providers/songkick.png</file> <file>providers/songkick.png</file>
<file>providers/soundcloud.png</file> <file>providers/soundcloud.png</file>
@ -426,5 +425,6 @@
<file>vk/link.png</file> <file>vk/link.png</file>
<file>providers/seafile.png</file> <file>providers/seafile.png</file>
<file>icons/32x32/internet-services.png</file> <file>icons/32x32/internet-services.png</file>
<file>providers/radiotunes.png</file>
</qresource> </qresource>
</RCC> </RCC>

Binary file not shown.

After

Width:  |  Height:  |  Size: 595 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 864 B

View File

@ -24,8 +24,7 @@ DigitallyImportedSearchProvider::DigitallyImportedSearchProvider(
Init(service_->name(), service->api_service_name(), service_->icon(), Init(service_->name(), service->api_service_name(), service_->icon(),
ArtIsInSongMetadata | CanGiveSuggestions | CanShowConfig); ArtIsInSongMetadata | CanGiveSuggestions | CanShowConfig);
set_safe_words(QStringList() << "sky.fm" set_safe_words(QStringList() << "radiotunes"
<< "skyfm"
<< "di.fm" << "di.fm"
<< "difm" << "difm"
<< "digitallyimported"); << "digitallyimported");

View File

@ -94,7 +94,7 @@ InternetModel::InternetModel(Application* app, QObject* parent)
AddService(new RadioGFMService(app, this)); AddService(new RadioGFMService(app, this));
AddService(new RockRadioService(app, this)); AddService(new RockRadioService(app, this));
AddService(new SavedRadio(app, this)); AddService(new SavedRadio(app, this));
AddService(new SkyFmService(app, this)); AddService(new RadioTunesService(app, this));
AddService(new SomaFMService(app, this)); AddService(new SomaFMService(app, this));
AddService(new SoundCloudService(app, this)); AddService(new SoundCloudService(app, this));
AddService(new SpotifyService(app, this)); AddService(new SpotifyService(app, this));
@ -371,7 +371,7 @@ int InternetModel::FindItemPosition(const QString& text) {
int a = 0; int a = 0;
int b = invisibleRootItem()->rowCount() - 1; int b = invisibleRootItem()->rowCount() - 1;
while (a <= b) { while (a <= b) {
int mid = a + (b - a)/2; int mid = a + (b - a) / 2;
if (invisibleRootItem()->child(mid, 0)->text() < text) { if (invisibleRootItem()->child(mid, 0)->text() < text) {
a = mid + 1; a = mid + 1;
} else { } else {

View File

@ -28,7 +28,7 @@
#include "core/network.h" #include "core/network.h"
// The API used here is undocumented - it was reverse engineered by watching // The API used here is undocumented - it was reverse engineered by watching
// calls made by the sky.fm android app: // calls made by the sky.fm (now RadioTunes) android app:
// https://market.android.com/details?id=com.audioaddict.sky // https://market.android.com/details?id=com.audioaddict.sky
const char* DigitallyImportedClient::kApiUsername = "ephemeron"; const char* DigitallyImportedClient::kApiUsername = "ephemeron";

View File

@ -244,11 +244,12 @@ DigitallyImportedService::DigitallyImportedService(Application* app,
QIcon(":/providers/digitallyimported.png"), QIcon(":/providers/digitallyimported.png"),
"di", app, model, true, parent) {} "di", app, model, true, parent) {}
SkyFmService::SkyFmService(Application* app, InternetModel* model, RadioTunesService::RadioTunesService(Application* app, InternetModel* model,
QObject* parent) QObject* parent)
: DigitallyImportedServiceBase( : DigitallyImportedServiceBase("RadioTunes", "RadioTunes.com",
"SKY.fm", "SKY.fm", QUrl("http://www.sky.fm"), QUrl("http://www.radiotunes.com/"),
QIcon(":/providers/skyfm.png"), "sky", app, model, true, parent) {} QIcon(":/providers/radiotunes.png"),
"radiotunes", app, model, true, parent) {}
JazzRadioService::JazzRadioService(Application* app, InternetModel* model, JazzRadioService::JazzRadioService(Application* app, InternetModel* model,
QObject* parent) QObject* parent)

View File

@ -67,7 +67,7 @@ class DigitallyImportedServiceBase : public InternetService {
public slots: public slots:
void ShowSettingsDialog(); void ShowSettingsDialog();
signals: signals:
void StreamsChanged(); void StreamsChanged();
private slots: private slots:
@ -117,10 +117,10 @@ class DigitallyImportedService : public DigitallyImportedServiceBase {
QObject* parent = nullptr); QObject* parent = nullptr);
}; };
class SkyFmService : public DigitallyImportedServiceBase { class RadioTunesService : public DigitallyImportedServiceBase {
public: public:
SkyFmService(Application* app, InternetModel* model, RadioTunesService(Application* app, InternetModel* model,
QObject* parent = nullptr); QObject* parent = nullptr);
}; };
class JazzRadioService : public DigitallyImportedServiceBase { class JazzRadioService : public DigitallyImportedServiceBase {

View File

@ -38,8 +38,8 @@ QString DigitallyImportedUrlHandler::scheme() const {
QIcon DigitallyImportedUrlHandler::icon() const { QIcon DigitallyImportedUrlHandler::icon() const {
if (scheme() == "di") { if (scheme() == "di") {
return QIcon(":providers/digitallyimported.png"); return QIcon(":providers/digitallyimported.png");
} else if (scheme() == "sky") { } else if (scheme() == "radiotunes") {
return QIcon(":providers/skyfm.png"); return QIcon(":providers/radiotunes.png");
} else if (scheme() == "jazzradio") { } else if (scheme() == "jazzradio") {
return QIcon(":providers/jazzradio.png"); return QIcon(":providers/jazzradio.png");
} else if (scheme() == "rockradio") { } else if (scheme() == "rockradio") {