summaryrefslogtreecommitdiff
path: root/scraper/sc.php
diff options
context:
space:
mode:
authorlolcat <will@lolcat.ca>2024-02-17 23:22:19 -0500
committerlolcat <will@lolcat.ca>2024-02-17 23:22:19 -0500
commitaddc5a14a93547f630f23e5b6a79cffa2e37d71a (patch)
treea9163ba3a2e24c3c493cdde95e506c0e7e8a772d /scraper/sc.php
parentedc917f5ee984160a0eef436dabd51696d675964 (diff)
boobs
Diffstat (limited to 'scraper/sc.php')
-rw-r--r--scraper/sc.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/scraper/sc.php b/scraper/sc.php
index 02cf087..23742f1 100644
--- a/scraper/sc.php
+++ b/scraper/sc.php
@@ -16,7 +16,7 @@ class sc{
"option" => [
"any" => "Any type",
"track" => "Tracks",
- "people" => "People",
+ "author" => "People",
"album" => "Albums",
"playlist" => "Playlists",
"goplus" => "Go+ Tracks"
@@ -143,7 +143,7 @@ class sc{
];
break;
- case "people":
+ case "author":
$url = "https://api-v2.soundcloud.com/search/users";
$params = [
"q" => $search,
@@ -237,7 +237,10 @@ class sc{
"npt" => null,
"song" => [],
"playlist" => [],
- "author" => []
+ "album" => [],
+ "podcast" => [],
+ "author" => [],
+ "user" => []
];
/*
@@ -346,7 +349,7 @@ class sc{
if(stripos($item["monetization_model"], "TIER") === false){
$stream = [
- "endpoint" => "audio_sc",
+ "endpoint" => "sc",
"url" =>
$item["media"]["transcodings"][0]["url"] .
"?client_id=" . config::SC_CLIENT_TOKEN .