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

Fix for #27455. Adapted StreetVoice extractor to new API and fixed tests #27492

Closed
wants to merge 1 commit into from
Closed

Fix for #27455. Adapted StreetVoice extractor to new API and fixed tests #27492

wants to merge 1 commit into from

Conversation

PaaaulZ
Copy link

@PaaaulZ PaaaulZ commented Dec 20, 2020

flake8

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

Fix for issue #27455 . StreetVoice API changed and support for that site broke, I also fixed the test that pointed to an invalid url because the song was removed.

@remitamine
Copy link
Collaborator

Read youtube-dl coding conventions and adjusted the code to meet them

@PaaaulZ PaaaulZ changed the title Adapter extractor to new API and fixed tests Adapted extractor to new API and fixed tests Dec 20, 2020
@PaaaulZ PaaaulZ changed the title Adapted extractor to new API and fixed tests Fix for #27455. Adapted StreetVoice extractor to new API and fixed tests Dec 20, 2020
@PaaaulZ
Copy link
Author

PaaaulZ commented Dec 20, 2020

I did check the guidelines before submitting the PR, considering that I changed as little as possible from the original code maybe I'm missing something.
Could you point me to a section of the guidelines I did not follow or to where the code does not meet requirements so I can work on it? I'll check again tomorrow and fix it, thanks

@remitamine
Copy link
Collaborator

Mainly, the Mandatory and optional metafields section, the extraction will break if optional fields are not available.

@PaaaulZ
Copy link
Author

PaaaulZ commented Dec 21, 2020

Damn you are right I'm sorry, I'll fix it later and squash the commits

Copy link
Collaborator

@remitamine remitamine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i might not be able to continue the review in a couple of days, will try to check it again when i can.

youtube_dl/extractor/streetvoice.py Outdated Show resolved Hide resolved
youtube_dl/extractor/streetvoice.py Show resolved Hide resolved
youtube_dl/extractor/streetvoice.py Outdated Show resolved Hide resolved
youtube_dl/extractor/streetvoice.py Show resolved Hide resolved
youtube_dl/extractor/streetvoice.py Outdated Show resolved Hide resolved
youtube_dl/extractor/streetvoice.py Outdated Show resolved Hide resolved
youtube_dl/extractor/streetvoice.py Outdated Show resolved Hide resolved
flake8


Adapted to youtube-dl coding conventions and cleaned code


Added check for optional parameters, added all supported meta
@PaaaulZ PaaaulZ deleted the fix-streetvoice branch December 24, 2020 13:23
ThirumalaiK pushed a commit to ThirumalaiK/youtube-dl that referenced this pull request Jan 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants