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

New site: riksdagen.se #24007

Open
robalni opened this issue Feb 9, 2020 · 0 comments
Open

New site: riksdagen.se #24007

robalni opened this issue Feb 9, 2020 · 0 comments

Comments

@robalni
Copy link

@robalni robalni commented Feb 9, 2020

Checklist

  • I'm reporting a new site support request
  • I've verified that I'm running youtube-dl version 2020.01.24
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that none of provided URLs violate any copyrights
  • I've searched the bugtracker for similar site support requests including closed ones

Example URLs

Description

The ID can be extracted from the last part in the URL (after the _) or in some places in the HTML code. The ID can then be appended to "https://www.riksdagen.se/api/videostream/get/" to get a JSON file that contains the video URL.

Example bash function that does the job:

function riksdagen { 
    json=https://www.riksdagen.se/api/videostream/get/$(echo $1 | sed 's/.*_//');
    video=$(curl $json | jq -r '.videodata[0].streams.files[0].downloadfileurl');
    mpv $video
}
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.