1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-18 12:28:31 +01:00

Change some API URLs to use https.

This commit is contained in:
John Maguire 2014-01-28 12:57:05 +01:00
parent 3e46b6134e
commit 59cb17c08d
6 changed files with 11 additions and 11 deletions

View File

@ -8,7 +8,7 @@
#include "core/network.h"
const char* KittenLoader::kFlickrKittenUrl =
"http://api.flickr.com/services/rest/"
"https://api.flickr.com/services/rest/"
"?method=flickr.photos.search"
"&api_key=808b52887b3cc7fe098abd62f6ed1745"
"&tags=kitten"
@ -17,7 +17,7 @@ const char* KittenLoader::kFlickrKittenUrl =
"&content_type=1";
const char* KittenLoader::kFlickrPhotoUrl =
"http://farm%1.static.flickr.com/%2/%3_%4_m.jpg";
"https://farm%1.static.flickr.com/%2/%3_%4_m.jpg";
KittenLoader::KittenLoader(QObject* parent)
: AlbumCoverLoader(parent) {

View File

@ -30,9 +30,9 @@ using std::mem_fun;
namespace {
static const char* kReleaseSearchUrl =
"http://musicbrainz.org/ws/2/release/";
"https://musicbrainz.org/ws/2/release/";
static const char* kAlbumCoverUrl =
"http://coverartarchive.org/release/%1/front";
"https://coverartarchive.org/release/%1/front";
} // namespace

View File

@ -27,8 +27,8 @@
#include "core/network.h"
#include "core/utilities.h"
const char* MusicBrainzClient::kTrackUrl = "http://musicbrainz.org/ws/2/recording/";
const char* MusicBrainzClient::kDiscUrl = "http://musicbrainz.org/ws/2/discid/";
const char* MusicBrainzClient::kTrackUrl = "https://musicbrainz.org/ws/2/recording/";
const char* MusicBrainzClient::kDiscUrl = "https://musicbrainz.org/ws/2/discid/";
const char* MusicBrainzClient::kDateRegex = "^[12]\\d{3}";
const int MusicBrainzClient::kDefaultTimeout = 5000; // msec

View File

@ -51,10 +51,10 @@ QUrl PodcastUrlLoader::FixPodcastUrl(const QString& url_text) {
// Thanks gpodder!
QuickPrefixList quick_prefixes = QuickPrefixList()
<< QuickPrefix("fb:", "http://feeds.feedburner.com/%1")
<< QuickPrefix("yt:", "http://www.youtube.com/rss/user/%1/videos.rss")
<< QuickPrefix("sc:", "http://soundcloud.com/%1")
<< QuickPrefix("yt:", "https://www.youtube.com/rss/user/%1/videos.rss")
<< QuickPrefix("sc:", "https://soundcloud.com/%1")
<< QuickPrefix("fm4od:", "http://onapp1.orf.at/webcam/fm4/fod/%1.xspf")
<< QuickPrefix("ytpl:", "http://gdata.youtube.com/feeds/api/playlists/%1");
<< QuickPrefix("ytpl:", "https://gdata.youtube.com/feeds/api/playlists/%1");
// Check if it matches one of the quick prefixes.
for (QuickPrefixList::const_iterator it = quick_prefixes.constBegin() ;

View File

@ -31,7 +31,7 @@
const char* SongkickConcerts::kSongkickArtistBucket = "id:songkick";
const char* SongkickConcerts::kSongkickArtistCalendarUrl =
"http://api.songkick.com/api/3.0/artists/%1/calendar.json?"
"https://api.songkick.com/api/3.0/artists/%1/calendar.json?"
"per_page=5&"
"apikey=8rgKfy1WU6IlJFfN";

View File

@ -90,7 +90,7 @@ void SongKickConcertWidget::Init(const QString& title, const QString& url,
void SongKickConcertWidget::SetMap(const QString& lat, const QString& lng,
const QString& venue_name) {
static const char* kStaticMapUrl =
"http://maps.googleapis.com/maps/api/staticmap"
"https://maps.googleapis.com/maps/api/staticmap"
"?key=AIzaSyDDJqmLOeE1mY_EBONhnQmdXbKtasgCtqg"
"&sensor=false"
"&size=%1x%2"