From ca76c60dc5de1f4a56efadb71196eb3b21e186f9 Mon Sep 17 00:00:00 2001 From: aria blue Date: Thu, 11 Apr 2024 14:04:48 -0400 Subject: [PATCH] remove logging i forgot to remove last version aaaaand bump version --- src/streamers/soundcloud/main.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/streamers/soundcloud/main.ts b/src/streamers/soundcloud/main.ts index 0b3a965..0ee3de4 100644 --- a/src/streamers/soundcloud/main.ts +++ b/src/streamers/soundcloud/main.ts @@ -42,12 +42,6 @@ export default class Soundcloud implements Streamer { } async search(query: string, limit = 20): Promise { const client = await this.#getClient() - console.log(this.#formatURL( - `https://api-v2.soundcloud.com/search?q=${encodeURIComponent( - query - )}&offset=0&linked_partitioning=1&app_locale=en&limit=${limit}`, - client - ), headers(this.oauthToken)) const response = await fetch( this.#formatURL( `https://api-v2.soundcloud.com/search?q=${encodeURIComponent( @@ -63,7 +57,7 @@ export default class Soundcloud implements Streamer { throw new Error(JSON.parse(errMsg)) } catch (error) { if (errMsg) throw new Error(errMsg) - else throw new Error('Soundcloud request failed.') + else throw new Error('Soundcloud request failed. Try removing the OAuth token, if added.') } }