mirror of
https://gitlab.com/RemixDev/deezer-js.git
synced 2024-12-29 10:56:12 +00:00
Fixed get_countries_charts
This commit is contained in:
parent
3c2918751e
commit
896722cea5
|
@ -417,8 +417,8 @@ class API{
|
||||||
// Extra calls
|
// Extra calls
|
||||||
|
|
||||||
async get_countries_charts(){
|
async get_countries_charts(){
|
||||||
let temp = await this.get_user_playlists('637006841', {index:0, limit:-1})['data']
|
let temp = await this.get_user_playlists('637006841', {index:0, limit:-1})
|
||||||
let result = temp.sort((a, b) => a.title.localeCompare(b.title)) // Sort all playlists
|
let result = temp['data'].sort((a, b) => a.title.localeCompare(b.title)) // Sort all playlists
|
||||||
if (!result[0].title.startsWith('Top')) result.shift() // Remove loved tracks playlist
|
if (!result[0].title.startsWith('Top')) result.shift() // Remove loved tracks playlist
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
"name": "deezer-js",
|
"name": "deezer-js",
|
||||||
"version": "0.0.5",
|
"version": "0.0.6",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"version": "0.0.5",
|
"version": "0.0.6",
|
||||||
"license": "GPL-3.0-or-later",
|
"license": "GPL-3.0-or-later",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"got": "^11.8.2",
|
"got": "^11.8.2",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "deezer-js",
|
"name": "deezer-js",
|
||||||
"version": "0.0.5",
|
"version": "0.0.6",
|
||||||
"description": "A wrapper for all Deezer's APIs",
|
"description": "A wrapper for all Deezer's APIs",
|
||||||
"main": "deezer/index.js",
|
"main": "deezer/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
Loading…
Reference in a new issue