mirror of
https://github.com/beetbox/beets.git
synced 2025-12-29 20:12:33 +01:00
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:
parent
0206019a0d
commit
670046dd9a
1 changed files with 3 additions and 3 deletions
|
|
@ -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')
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue