Implemented barebones charts tab
This commit is contained in:
parent
a940dbab01
commit
6b8650c9af
|
@ -263,7 +263,11 @@ class Deezer:
|
||||||
return self.api_call('track/isrc:' + isrc)
|
return self.api_call('track/isrc:' + isrc)
|
||||||
|
|
||||||
def get_charts_countries(self):
|
def get_charts_countries(self):
|
||||||
return self.get_user_playlist('637006841')
|
temp = self.get_user_playlist('637006841')['data']
|
||||||
|
result = sorted(temp, key=lambda k: k['title'])
|
||||||
|
if not result[0]['title'].startswith('Top'):
|
||||||
|
result = result[1:]
|
||||||
|
return result
|
||||||
|
|
||||||
def get_charts(self):
|
def get_charts(self):
|
||||||
return self.api_call('chart')
|
return self.api_call('chart')
|
||||||
|
|
Loading…
Reference in New Issue