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

[peloton] Add Peloton as new extractor #192

Merged
merged 5 commits into from
Aug 29, 2021
Merged

Conversation

IONECarter
Copy link
Contributor

@IONECarter IONECarter commented Mar 22, 2021

Please follow the guide below

  • You will be asked some questions, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your pull request (like that [x])
  • Use Preview tab to see how your pull request will actually look like

Before submitting a pull request make sure you have:

In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:

  • 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?

  • Bug fix
  • Improvement
  • New extractor
  • New feature

Description of your pull request and other information

Adds an extractor for Peloton (onepeloton.com) live and on-demand workout videos and audio recordings. An account is needed to download all media.

As referenced below original code pulled over from ytdl-org/youtube-dl#24985 where code was submitted as a PR to youtube-dl but was not merged. Part of overall issue ytdl-org/youtube-dl#28054 where there are a number of new/updated extractors that need testing prior to merge.

@pukkandan
Copy link
Member

I am the original author of this code and I am willing to release it under Unlicense

I see the code is taken from ytdl-org/youtube-dl#24985

@pukkandan
Copy link
Member

related: ytdl-org/youtube-dl#21853

@2ShedsJackson
Copy link
Contributor

I see the code is taken from ytdl-org/youtube-dl#24985

What's the procedure for adding code from youtube-dl and youtube-dlc, especially if the code has to be fixed before those programs merge the updates?

@pukkandan
Copy link
Member

Since all PRs made to youtube-dl/dlc are already unlicensed, there is no issue with merging them here. But explain in the PR description where it is taken from and clarify whether you have made modifications. That way I can give proper credits and also have easy reference to the original PR/issue.

Also don't tick "I am the original author" when you are not!

@2ShedsJackson
Copy link
Contributor

Since all PRs made to youtube-dl/dlc are already unlicensed, there is no issue with merging them here. But explain in the PR description where it is taken from and clarify whether you have made modifications. That way I can give proper credits and also have easy reference to the original PR/issue.

Also don't tick "I am the original author" when you are not!

If you've made modifications, you'd have to mark both checkboxes. Maybe the guide should have an additional checkbox for modified unlicensed code, and a note to reference the original PR/issue.

@IONECarter
Copy link
Contributor Author

Since all PRs made to youtube-dl/dlc are already unlicensed, there is no issue with merging them here. But explain in the PR description where it is taken from and clarify whether you have made modifications. That way I can give proper credits and also have easy reference to the original PR/issue.

Also don't tick "I am the original author" when you are not!

I have updated the PR description and provided additional description of where the code was from as well as the related issues it came from on youtube-dl. As it was also apart of the bulk request for evaluation of new extractors ytdl-org/youtube-dl#28054

@pukkandan
Copy link
Member

@IONECarter Are you familiar with the actual code of this PR? I am asking to know whether you will be able to make changes if I review or I need to make any necessary changes myself

Also, since I cannot test this, please run all the tests yourself and confirm that all the cases pass


pinging @capntrips just to let them know of this

@capntrips
Copy link

I'm just happy to see that it might get some use, since it went nowhere on youtube-dl.

@IONECarter
Copy link
Contributor Author

@IONECarter Are you familiar with the actual code of this PR? I am asking to know whether you will be able to make changes if I review or I need to make any necessary changes myself

Also, since I cannot test this, please run all the tests yourself and confirm that all the cases pass

pinging @capntrips just to let them know of this

I have tested this with incorporating it into my local version of 2021.03.21 and it worked for a number of videos that I tested as of yesterday when the PR was made.

I've looked over the code to familiarize myself with it when I was testing it to see if any updates were required to get it to work (none were needed), but may require additional help from yourself or @capntrips should you have significant updates wanted.

@pukkandan
Copy link
Member

I have tested this with incorporating it into my local version of 2021.03.21 and it worked for a number of videos that I tested as of yesterday when the PR was made.

What I meant is that you need to run the test cases defined in the extractor. Or maybe @capntrips can confirm that all the tests are working and up to date?

@IONECarter
Copy link
Contributor Author

I have tested this with incorporating it into my local version of 2021.03.21 and it worked for a number of videos that I tested as of yesterday when the PR was made.

What I meant is that you need to run the test cases defined in the extractor. Or maybe @capntrips can confirm that all the tests are working and up to date?

Yes, I've performed all three test cases that are noted in the extractor and all are working and up to date.

yt_dlp/extractor/peloton.py Outdated Show resolved Hide resolved
yt_dlp/extractor/peloton.py Outdated Show resolved Hide resolved
yt_dlp/extractor/peloton.py Outdated Show resolved Hide resolved
yt_dlp/extractor/peloton.py Outdated Show resolved Hide resolved
yt_dlp/extractor/peloton.py Outdated Show resolved Hide resolved
yt_dlp/extractor/peloton.py Outdated Show resolved Hide resolved
yt_dlp/extractor/peloton.py Outdated Show resolved Hide resolved
yt_dlp/extractor/peloton.py Outdated Show resolved Hide resolved
yt_dlp/extractor/peloton.py Outdated Show resolved Hide resolved
yt_dlp/extractor/peloton.py Outdated Show resolved Hide resolved
@pukkandan
Copy link
Member

@IONECarter

@IONECarter
Copy link
Contributor Author

@IONECarter

Still here and working through. Will provide code updates & comment responses once I am comfortable with it. Learning as I go :)

@IONECarter IONECarter marked this pull request as draft April 1, 2021 02:15
@pukkandan pukkandan force-pushed the master branch 2 times, most recently from 2502e40 to 2305e2e Compare May 20, 2021 10:27
@delikat
Copy link

delikat commented Jul 17, 2021

heads up for anyone trying to get this branch working: /auth/login now throws a 403 for the default random user agents. running with --user-agent web works 🙃

@pukkandan pukkandan force-pushed the master branch 2 times, most recently from 162dd51 to da503b7 Compare July 20, 2021 01:52
@IONECarter
Copy link
Contributor Author

heads up for anyone trying to get this branch working: /auth/login now throws a 403 for the default random user agents. running with --user-agent web works 🙃

Thank you very much for posting this. I have not be comfortable enough with my coding to get the above comments addressed. Not sure if you want to look at it @delikat or if @capntrips is still around, but would be great if this was able to get merged in for a broader use.

@pukkandan
Copy link
Member

I have not be comfortable enough with my coding to get the above comments addressed.

@IONECarter You should have said so. I can address most of the points myself. I didn't bother with it since you said you'd do it

@IONECarter
Copy link
Contributor Author

I have not be comfortable enough with my coding to get the above comments addressed.

@IONECarter You should have said so. I can address most of the points myself. I didn't bother with it since you said you'd do it

Many, many thanks. I was really hoping that I could learn and teach myself, but that has not been going as well as I had hoped and I have not had near enough time to really dig in. You're the BEST!

@pukkandan
Copy link
Member

I pulled the PR and made some changes, but then realized that an account is needed for all content. Please provide me with account details if you want me to work on this

@pukkandan pukkandan added the account-needed Account details are needed to test/fix this label Aug 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
account-needed Account details are needed to test/fix this
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants