Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

https vs http #7

Open
rustyhodge opened this issue Feb 21, 2024 · 2 comments
Open

https vs http #7

rustyhodge opened this issue Feb 21, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@rustyhodge
Copy link

We have changed the channels.json file to return http: links when called via http:// and https:// links when called via https://somafm.com./channels.json

Rather than re-writing URLs to http for players that don't support https, I would suggest just fetching the http channels.json and maybe offer a configuration flag to enable or disable https.

@MS3FGX
Copy link
Owner

MS3FGX commented Feb 22, 2024

Awesome, that will let me simplify things greatly. Appreciate the heads up.

@MS3FGX
Copy link
Owner

MS3FGX commented Mar 17, 2024

This feature has been added as of 3a3ba9c

Giving the script the -S or --ssl option will cause it to re-download channels.json over HTTPS. From that point on, all stream operations will be done over HTTPS, so you don't need to keep passing the option. If you want to go back to HTTP, you can delete the cache data with -d and then just run the script normally.

As mentioned elsewhere, player support for this is spotty at best. In my personal testing on Linux, the only one that seems to work is mpv. Will test on Windows shortly. I'm going to leave this issue open for a bit to see if anyone has any feedback.

@MS3FGX MS3FGX added the enhancement New feature or request label Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants