Change sky.fm to radiotunes.com

This commit is contained in:
Chocobozzz 2015-01-15 18:48:04 +01:00
parent a61eac109c
commit 7e9f8d75c6
9 changed files with 11 additions and 12 deletions

View File

@ -334,7 +334,6 @@
<file>providers/radiogfm.png</file>
<file>providers/rockradio.png</file>
<file>providers/skydrive.png</file>
<file>providers/skyfm.png</file>
<file>providers/somafm.png</file>
<file>providers/songkick.png</file>
<file>providers/soundcloud.png</file>
@ -426,5 +425,6 @@
<file>vk/link.png</file>
<file>providers/seafile.png</file>
<file>icons/32x32/internet-services.png</file>
<file>providers/radiotunes.png</file>
</qresource>
</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(),
ArtIsInSongMetadata | CanGiveSuggestions | CanShowConfig);
set_safe_words(QStringList() << "sky.fm"
<< "skyfm"
set_safe_words(QStringList() << "radiotunes"
<< "di.fm"
<< "difm"
<< "digitallyimported");

View File

@ -94,7 +94,7 @@ InternetModel::InternetModel(Application* app, QObject* parent)
AddService(new RadioGFMService(app, this));
AddService(new RockRadioService(app, this));
AddService(new SavedRadio(app, this));
AddService(new SkyFmService(app, this));
AddService(new RadioTunesService(app, this));
AddService(new SomaFMService(app, this));
AddService(new SoundCloudService(app, this));
AddService(new SpotifyService(app, this));

View File

@ -28,7 +28,7 @@
#include "core/network.h"
// 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
const char* DigitallyImportedClient::kApiUsername = "ephemeron";

View File

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

View File

@ -117,9 +117,9 @@ class DigitallyImportedService : public DigitallyImportedServiceBase {
QObject* parent = nullptr);
};
class SkyFmService : public DigitallyImportedServiceBase {
class RadioTunesService : public DigitallyImportedServiceBase {
public:
SkyFmService(Application* app, InternetModel* model,
RadioTunesService(Application* app, InternetModel* model,
QObject* parent = nullptr);
};

View File

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