[rhythmbox] artsearch: use https for last.fm and musicbrainz apis



commit a1bb53a35653ee2bf66fdf8f273ca8cf70619f3d
Author: Jonathan Matthew <jonathan d14n org>
Date:   Tue Nov 12 20:58:34 2019 +1000

    artsearch: use https for last.fm and musicbrainz apis

 plugins/artsearch/lastfm.py      | 2 +-
 plugins/artsearch/musicbrainz.py | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plugins/artsearch/lastfm.py b/plugins/artsearch/lastfm.py
index 2169ebab2..04091054b 100644
--- a/plugins/artsearch/lastfm.py
+++ b/plugins/artsearch/lastfm.py
@@ -43,7 +43,7 @@ REPEAT_SEARCH_PERIOD = 86400 * 7
 # this API key belongs to jonathan d14n org
 # and was generated specifically for this use
 API_KEY = 'ff56d530598d65c1a4088e57da7be2f9'
-API_URL = 'http://ws.audioscrobbler.com/2.0/'
+API_URL = 'https://ws.audioscrobbler.com/2.0/'
 
 # LASTFM_LOGO = "lastfm_red_small.png"
 # LASTFM_TOOLTIP = (LASTFM_LOGO, _("Image provided by Last.fm"))
diff --git a/plugins/artsearch/musicbrainz.py b/plugins/artsearch/musicbrainz.py
index 077c51be7..e69dcb707 100644
--- a/plugins/artsearch/musicbrainz.py
+++ b/plugins/artsearch/musicbrainz.py
@@ -31,12 +31,12 @@ import rb
 from gi.repository import RB
 
 # musicbrainz URLs
-MUSICBRAINZ_RELEASE_URL = "http://musicbrainz.org/ws/2/release/%s?inc=artists";
+MUSICBRAINZ_RELEASE_URL = "https://musicbrainz.org/ws/2/release/%s?inc=artists";
 MUSICBRAINZ_RELEASE_PREFIX = "http://musicbrainz.org/release/";
 MUSICBRAINZ_RELEASE_SUFFIX = ".html"
 
 MUSICBRAINZ_SEARCH_QUERY = "artist:\"%s\" AND release:\"%s\""
-MUSICBRAINZ_SEARCH_URL = "http://musicbrainz.org/ws/2/release/?query=%s&limit=1";
+MUSICBRAINZ_SEARCH_URL = "https://musicbrainz.org/ws/2/release/?query=%s&limit=1";
 
 # musicbrainz IDs
 MUSICBRAINZ_VARIOUS_ARTISTS = "89ad4ac3-39f7-470e-963a-56509c546377"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]