From 6b8650c9afed58dc5f371841f110d658de8bf55f Mon Sep 17 00:00:00 2001 From: RemixDev Date: Sun, 3 May 2020 15:52:42 +0200 Subject: [PATCH] Implemented barebones charts tab --- deemix/api/deezer.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/deemix/api/deezer.py b/deemix/api/deezer.py index c74598c..56814d5 100755 --- a/deemix/api/deezer.py +++ b/deemix/api/deezer.py @@ -263,7 +263,11 @@ class Deezer: return self.api_call('track/isrc:' + isrc) 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): return self.api_call('chart')