From e188ba6114f86e5a86fb79d2ac16353c159eb738 Mon Sep 17 00:00:00 2001 From: lolcat Date: Sat, 7 Oct 2023 00:21:07 -0400 Subject: [PATCH] soundcloud fix --- scraper/sc.php | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/scraper/sc.php b/scraper/sc.php index 1774c20..1f49f95 100644 --- a/scraper/sc.php +++ b/scraper/sc.php @@ -6,6 +6,8 @@ class sc{ include "lib/nextpage.php"; $this->nextpage = new nextpage("sc"); + $this->client_id = "ArYppSEotE3YiXCO4Nsgid2LLqJutiww"; + $this->user_id = "766585-580597-163310-929698"; } public function getfilters($page){ @@ -109,12 +111,12 @@ class sc{ "q" => $search, "variant_ids" => "", "facet" => "model", - "user_id" => "351062-302234-707916-795081", - "client_id" => "iMxZgT5mfGstBj8GWJbYMvpzelS8ne0E", + "user_id" => $this->user_id, + "client_id" => $this->client_id, "limit" => 20, "offset" => 0, "linked_partitioning" => 1, - "app_version" => 1693487844, + "app_version" => 1696577813, "app_locale" => "en" ]; break; @@ -125,12 +127,12 @@ class sc{ "q" => $search, "variant_ids" => "", "facet_genre" => "", - "user_id" => "351062-302234-707916-795081", - "client_id" => "iMxZgT5mfGstBj8GWJbYMvpzelS8ne0E", + "user_id" => $this->user_id, + "client_id" => $this->client_id, "limit" => 20, "offset" => 0, "linked_partitioning" => 1, - "app_version" => 1693487844, + "app_version" => 1696577813, "app_locale" => "en" ]; break; @@ -141,12 +143,12 @@ class sc{ "q" => $search, "variant_ids" => "", "facet" => "place", - "user_id" => "351062-302234-707916-795081", - "client_id" => "iMxZgT5mfGstBj8GWJbYMvpzelS8ne0E", + "user_id" => $this->user_id, + "client_id" => $this->client_id, "limit" => 20, "offset" => 0, "linked_partitioning" => 1, - "app_version" => 1693487844, + "app_version" => 1696577813, "app_locale" => "en" ]; break; @@ -157,12 +159,12 @@ class sc{ "q" => $search, "variant_ids" => "", "facet" => "genre", - "user_id" => "351062-302234-707916-795081", - "client_id" => "iMxZgT5mfGstBj8GWJbYMvpzelS8ne0E", + "user_id" => $this->user_id, + "client_id" => $this->client_id, "limit" => 20, "offset" => 0, "linked_partitioning" => 1, - "app_version" => 1693487844, + "app_version" => 1696577813, "app_locale" => "en" ]; break; @@ -173,12 +175,12 @@ class sc{ "q" => $search, "variant_ids" => "", "facet" => "genre", - "user_id" => "351062-302234-707916-795081", - "client_id" => "iMxZgT5mfGstBj8GWJbYMvpzelS8ne0E", + "user_id" => $this->user_id, + "client_id" => $this->client_id, "limit" => 20, "offset" => 0, "linked_partitioning" => 1, - "app_version" => 1693487844, + "app_version" => 1696577813, "app_locale" => "en" ]; break; @@ -190,12 +192,12 @@ class sc{ "variant_ids" => "", "filter.content_tier" => "SUB_HIGH_TIER", "facet" => "genre", - "user_id" => "351062-302234-707916-795081", - "client_id" => "iMxZgT5mfGstBj8GWJbYMvpzelS8ne0E", + "user_id" => $this->user_id, + "client_id" => $this->client_id, "limit" => 20, "offset" => 0, "linked_partitioning" => 1, - "app_version" => 1693487844, + "app_version" => 1696577813, "app_locale" => "en" ]; break; @@ -340,7 +342,7 @@ class sc{ "endpoint" => "audio_sc", "url" => $item["media"]["transcodings"][0]["url"] . - "?client_id=iMxZgT5mfGstBj8GWJbYMvpzelS8ne0E" . + "?client_id=" . $this->client_id . "&track_authorization=" . $item["track_authorization"] ];