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

Sveriges Radio live feature request #24449

Open
robalni opened this issue Mar 23, 2020 · 0 comments
Open

Sveriges Radio live feature request #24449

robalni opened this issue Mar 23, 2020 · 0 comments

Comments

@robalni
Copy link

@robalni robalni commented Mar 23, 2020

Checklist

  • I'm reporting a site feature request
  • I've verified that I'm running youtube-dl version 2020.03.08
  • I've searched the bugtracker for similar site feature requests including closed ones

Description

Youtube-dl already works with Sveriges Radio article URLs but not channel URLs for live listening. Here are a few channel URLs:

I would like to be able to open one of those URLs with youtube-dl to listen to the channel live.

Here is a bash script that successfully does what I want:

function sr {
    id=$(curl "$1" | sed -n 's/.*tabla\.aspx?programid=\([0-9]*\).*/\1/p' | head -n 1)
    url=$(curl "https://sverigesradio.se/playerajax/getaudiourl?id=$id&type=channel&quality=high&format=hls" | jq -r '.audioUrl')
    mpv "$url"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.