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
5 tasks done
robalni opened this issue Feb 9, 2020 · 0 comments
Open
5 tasks done

New site: riksdagen.se #24007

robalni opened this issue Feb 9, 2020 · 0 comments
Labels
site-support-request Add extractor(s) for a new domain

Comments

@robalni
Copy link

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
}
@robalni robalni added the site-support-request Add extractor(s) for a new domain label Feb 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
site-support-request Add extractor(s) for a new domain
Projects
None yet
Development

No branches or pull requests

1 participant