Vurv78 / WebAudio

A safe, efficient and powerful replacement for Streamcore that adds playing & manipulating URL streams through IGmodAudioChannel/BASS
https://steamcommunity.com/sharedfiles/filedetails/?id=2466875474
MIT License
18 stars 4 forks source link

What is the Whitelist Format? #57

Closed btg611 closed 2 years ago

btg611 commented 2 years ago

Hi,

I'm trying to add broadcastify to the whitelist on my server, but I can't seem to figure out the format for the webaudio_whitelist.txt. Is it the same is what's in the LUA files?

What exactly does the pattern format do? pattern %w+%.sndcdn%.com As opposed to the simple? simple translate.google.com

I added this to the webaudio.lua file to no avail: -- Broadcastify simple [[https://www.broadcastify.com]], and simple https://www.broadcastify.com to webaudio_whitelist.txt, also no success.

The links I desire to use look like this: https://www.broadcastify.com/scripts/playlists/1/20906/-6461706680.m3u

I receive this message when the E2 is turned on: sv: Expression 2 (Motorola Spectra - Pennsylvania Rail Radio Channels): Runtime error 'This URL is not whitelisted! The server has a custom whitelist.' at line 8, char 11

Should I whitelist the exact URLs?

Any help would be appreciated.

Vurv78 commented 2 years ago

Is it the same is what's in the LUA files?

Yes, it's the same as in the lua file, except missing the quotes / [[ ]] square brackets.

What exactly does the pattern format do?

The pattern version uses lua patterns (so you can match urls that vary slightly). you shouldn't have to worry about that unless the url you are trying to whitelist has multiple possible urls like some apis do.

And your issue here is that you're including the https:// and the www. which is unnecessary, you can see from the simple translate.google.com you just need the part after the www.

So try simple broadcastify.com in your custom file or simple [[broadcastify.com]] in the lua file

Then again I could probably just add this to the default whitelist myself it does seem to be a pretty large website

btg611 commented 2 years ago

I see, thanks for the information. This is very helpful!

I would really appreciate adding the website to the default whitelist, if it's not too much trouble.