Build https URLS for beatport releases

I'm not sure where these are used, but the website supports https and
the API url already uses https, so this should be a safe call and not
require a util.SNI_SUPPORTED check.
This commit is contained in:
FichteFoll 2019-06-05 22:55:12 +02:00
parent 0206019a0d
commit 670046dd9a
No known key found for this signature in database
GPG key ID: 9FA3981C07CD83C5

View file

@ -224,7 +224,7 @@ class BeatportRelease(BeatportObject):
if 'category' in data:
self.category = data['category']
if 'slug' in data:
self.url = "http://beatport.com/release/{0}/{1}".format(
self.url = "https://beatport.com/release/{0}/{1}".format(
data['slug'], data['id'])
@ -252,8 +252,8 @@ class BeatportTrack(BeatportObject):
except ValueError:
pass
if 'slug' in data:
self.url = "http://beatport.com/track/{0}/{1}".format(data['slug'],
data['id'])
self.url = "https://beatport.com/track/{0}/{1}" \
.format(data['slug'], data['id'])
self.track_number = data.get('trackNumber')