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

[NinaProtocol] Add extractor #8946

Merged
merged 7 commits into from Jan 31, 2024
Merged

Conversation

RaduManole
Copy link
Contributor

IMPORTANT: PRs without the template will be CLOSED

Description of your pull request and other information

Implementation of ninaprotocol.com extractor, worked on it some time ago, didn't see it already was PRed. You can use this code or not. I tried to make it fuzzy as possible, by capturing all JavaScript code, then searching the 'release' key in the json substring, and looking for the right 'release', by looking up the name of the album. Then I saw
#8764 (comment) and added it as a another try to find song data.
They treat songs as a release of an album. Individual songs are treated as an album with a single song. So, it doesn't matter if its one or multiple songs. I always treat the generic website link as a list of songs.
Fixes #8709

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?

@seproDev seproDev added the site-request Request to support a new website label Jan 8, 2024
@pukkandan pukkandan added the duplicate This issue or pull request already exists label Jan 19, 2024
@seproDev seproDev added the pending-fixes PR has had changes requested label Jan 21, 2024
@seproDev seproDev added pending-review PR needs a review and removed pending-fixes PR has had changes requested labels Jan 31, 2024
@seproDev
Copy link
Collaborator

A lot of the things your code did can be simplified by using functions from ..utils or the common InfoExtractor class.
I have reworked the extractor a bit.

@bashonly bashonly removed the duplicate This issue or pull request already exists label Jan 31, 2024
yt_dlp/extractor/ninaprotocol.py Outdated Show resolved Hide resolved
yt_dlp/extractor/ninaprotocol.py Show resolved Hide resolved
@bashonly bashonly removed the pending-review PR needs a review label Jan 31, 2024
seproDev and others added 2 commits January 31, 2024 18:15
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
@seproDev seproDev merged commit 62c65bf into yt-dlp:master Jan 31, 2024
6 checks passed
FletcherD pushed a commit to FletcherD/yt-dlp that referenced this pull request Feb 14, 2024
Closes yt-dlp#8709, Closes yt-dlp#8764
Authored by: RaduManole, seproDev

Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com>
aalsuwaidi pushed a commit to aalsuwaidi/yt-dlp that referenced this pull request Apr 21, 2024
Closes yt-dlp#8709, Closes yt-dlp#8764
Authored by: RaduManole, seproDev

Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com>
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.

Add support for ninaprotocol.com
4 participants