diff options
author | lolcat <will@lolcat.ca> | 2023-07-22 14:41:14 -0400 |
---|---|---|
committer | lolcat <will@lolcat.ca> | 2023-07-22 14:41:14 -0400 |
commit | bca265aea67ec62499aaa113a6490ce9ec7fe730 (patch) | |
tree | 3f05ec5ea542e41b474947e180034f42e99648e9 /audio.php |
still missing things on google scraper
Diffstat (limited to 'audio.php')
-rw-r--r-- | audio.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/audio.php b/audio.php new file mode 100644 index 0000000..bb018da --- /dev/null +++ b/audio.php @@ -0,0 +1,19 @@ +<?php + +if(!isset($_GET["s"])){ + + http_response_code(404); + header("X-Error: No SOUND(s) provided!"); + die(); +} + +include "lib/curlproxy.php"; +$proxy = new proxy(); + +try{ + + $proxy->stream_linear_audio($_GET["s"]); +}catch(Exception $error){ + + header("X-Error: " . $error->getMessage()); +} |