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

[extractor/nhk] Add NHK Radiru (らじる) extractor #6819

Merged
merged 10 commits into from Apr 19, 2023

Conversation

garret1317
Copy link
Collaborator

IMPORTANT: PRs without the template will be CLOSED

Description of your pull request and other information

This PR adds support for NHK らじる★らじる, the radio streaming site of Japan's public broadcaster.

It supports downloading individual episodes and entire series (or at least, what's available - the episodes expire eventually), but does not support the live streams.

Downloading entire series sometimes gets episodes that aren't listed on the site, but are still in the API. Example: site listing vs actual download.
I'm unsure whether this is a bug or a feature.

Adding live support is definitely possible - the stream urls are sitting out in the open - but there are regional variations. The region is not reflected in the player url, so I'm not sure how to handle it.

Example URLs (chosen at random)

Template

Before submitting a pull request make sure you have:

In order to be accepted and merged into yt-dlp each piece of code must be in public domain or released under Unlicense. Check all of the following options that apply:

  • I am the original author of this code and I am willing to release it under Unlicense
  • I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

yt_dlp/extractor/nhk.py Outdated Show resolved Hide resolved
yt_dlp/extractor/nhk.py Outdated Show resolved Hide resolved
yt_dlp/extractor/nhk.py Outdated Show resolved Hide resolved
yt_dlp/extractor/nhk.py Outdated Show resolved Hide resolved
yt_dlp/extractor/nhk.py Outdated Show resolved Hide resolved
yt_dlp/extractor/nhk.py Outdated Show resolved Hide resolved
yt_dlp/extractor/nhk.py Outdated Show resolved Hide resolved
yt_dlp/extractor/nhk.py Outdated Show resolved Hide resolved
yt_dlp/extractor/nhk.py Outdated Show resolved Hide resolved
@bashonly bashonly added site-request Request to support a new website pending-fixes PR has had changes requested labels Apr 15, 2023
Co-Authored-By: bashonly <88596187+bashonly@users.noreply.github.com>
@garret1317
Copy link
Collaborator Author

oops, didn't check flake8

garret1317 and others added 3 commits April 16, 2023 07:36
news programmes use their own api and list page, but everything else is
still the same format, even the api response
the player js hardcodes a special case for that id (F261) too, so this is fine™
it also does one for id F139, but that seems to be dev-only, so i'm not bothering
slightly less deranged way of doing it
This commit partially reverts e48a646

Co-Authored-By: bashonly <88596187+bashonly@users.noreply.github.com>
yt_dlp/extractor/nhk.py Outdated Show resolved Hide resolved
yt_dlp/extractor/nhk.py Outdated Show resolved Hide resolved
yt_dlp/extractor/nhk.py Outdated Show resolved Hide resolved
yt_dlp/extractor/nhk.py Outdated Show resolved Hide resolved
yt_dlp/extractor/nhk.py Outdated Show resolved Hide resolved
yt_dlp/extractor/nhk.py Outdated Show resolved Hide resolved
yt_dlp/extractor/nhk.py Outdated Show resolved Hide resolved
yt_dlp/extractor/nhk.py Outdated Show resolved Hide resolved
Co-Authored-By: bashonly <88596187+bashonly@users.noreply.github.com>
@bashonly bashonly removed the pending-fixes PR has had changes requested label Apr 17, 2023
yt_dlp/extractor/nhk.py Outdated Show resolved Hide resolved
yt_dlp/extractor/nhk.py Outdated Show resolved Hide resolved
@bashonly bashonly merged commit 8f0be90 into yt-dlp:master Apr 19, 2023
11 checks passed
@garret1317
Copy link
Collaborator Author

thanks!

aalsuwaidi pushed a commit to aalsuwaidi/yt-dlp that referenced this pull request Apr 21, 2024
* Add `NhkRadioNewsPage` extractor

Authored by: garret1317
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
site-request Request to support a new website
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants