Skip to content

Commit

Permalink
Soundcloud: Remove artist extrainfo
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovenoboyo committed Dec 28, 2024
1 parent ba46f00 commit d66620d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 20 deletions.
5 changes: 2 additions & 3 deletions soundcloud/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,12 @@ class SoundCloudExtension {
})

api.on('getSearch', async (term) => {
console.log('inside search', term)
const songs = await this.soundcloudApi.searchSongs(term, false)
const artists = await this.soundcloudApi.searchArtist(term, false)
const playlists = await this.soundcloudApi.searchPlaylists(term, false)
return {
songs: [],
artists: [],
songs,
artists,
albums: [],
playlists,
genres: []
Expand Down
20 changes: 3 additions & 17 deletions soundcloud/src/soundcloudApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class SoundcloudApi {

console.log('setting key', key)
this.key = key
// this.updateKeyCallback(key)
this.updateKeyCallback(key)
}

private getRaw(url: URL) {
Expand Down Expand Up @@ -146,14 +146,7 @@ export class SoundcloudApi {
ret.push({
artist_id: data.urn.toString(),
artist_name: data.full_name || data.username,
artist_coverPath: data.avatar_url,
artist_extra_info: {
extensions: {
'moosync.soundcloud': {
artist_id: data.urn.replace('soundcloud:users:', '')
}
}
}
artist_coverPath: data.avatar_url
})
}

Expand Down Expand Up @@ -288,14 +281,7 @@ export class SoundcloudApi {
{
artist_id: t.user_id.toString(),
artist_name: t.user.full_name || t.user.username,
artist_coverPath: t.user.avatar_url,
artist_extra_info: {
extensions: {
'moosync.soundcloud': {
artist_id: t.urn.replace('soundcloud:users:', '')
}
}
}
artist_coverPath: t.user.avatar_url
}
],
type: 'URL'
Expand Down

0 comments on commit d66620d

Please sign in to comment.