mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
fix(audio): resolve HTTP 403 on radio streams and improve direct media decode fallback
- Update default User-Agent across SafeHttp, HttpStreams, FluxerAudioBridge, and Player to a modern Chrome browser string, preventing HTTP 403 blocks on Icecast/SomaFM streams. - Guard SafeHttp probe in Route C with try/catch to gracefully fall through to in-process FFmpeg decode when direct HTTP streaming probes fail. - Restrict YouTube origin and referer headers in FFmpeg to YouTube/Googlevideo domains only so external audio hosts and radio CDNs are not rejected. - Prevent false error rejections on FFmpeg exit when audio has already been delivered to the voice connection. - Improve error reporting in Route 3d so enabled allowLoadstream configurations report actual underlying decode errors instead of false toggle prompts.
This commit is contained in:
1 parent
3ea54939b9
commit
e3dd7ad914
4 files changed
+38
-24
No files matched your search
@@ -424,7 +424,7 @@ class Player extends EventEmitter {
|
||||
path: urlObj.pathname + urlObj.search,
|
||||
method: options.method || "GET",
|
||||
headers: {
|
||||
"User-Agent": "Mozilla/5.0 (compatible; Bot/1.0)",
|
||||
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
|
||||
"Accept": "*/*",
|
||||
...options.headers,
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user