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

Handle YouTube results without links #1340

Merged
merged 2 commits into from
Jul 18, 2021
Merged

Handle YouTube results without links #1340

merged 2 commits into from
Jul 18, 2021

Conversation

xnetcat
Copy link
Member

@xnetcat xnetcat commented Jul 17, 2021

Title

Handle YouTube results without links

Description

handles results without 'link' provided by skipping them.

This pr is based on @MikhailZex commit. I am opening PR since he is busy rn

Related Issue

#1337

Motivation and Context

some YouTube results (isrcResult, audioProvider.pyL:170) do not even
contain 'link' as a key. This case is not handled and will error out.

How Has This Been Tested?

pytest

Screenshots (if appropriate)

Types of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project
  • My change requires a change to the documentation
  • I have updated the documentation accordingly
  • I have read the CONTRIBUTING document
  • I have read the CORE VALUES document
  • I have added tests to cover my changes
  • All new and existing tests passed

@xnetcat xnetcat requested a review from Silverarmor July 17, 2021 09:08
@xnetcat xnetcat linked an issue Jul 17, 2021 that may be closed by this pull request
spotdl/search/audioProvider.py Outdated Show resolved Hide resolved
Co-authored-by: Silverarmor <23619946+Silverarmor@users.noreply.github.com>
@Silverarmor Silverarmor merged commit 46afbef into spotDL:dev Jul 18, 2021
@xnetcat xnetcat deleted the isrc-none branch July 18, 2021 15:37
Coddo-Python pushed a commit to Coddo-Python/spotify-downloader-pafy-redesign that referenced this pull request Jul 25, 2021
* Handle YouTube results without links

* Update spotdl/search/audioProvider.py

Co-authored-by: Silverarmor <23619946+Silverarmor@users.noreply.github.com>

Co-authored-by: Silverarmor <23619946+Silverarmor@users.noreply.github.com>
@Silverarmor Silverarmor mentioned this pull request Jul 27, 2021
Silverarmor added a commit that referenced this pull request Jul 28, 2021
* added ability to override youtube url (#1338)
Co-authored-by: Silverarmor <23619946+Silverarmor@users.noreply.github.com>

* Handle YouTube results without links (#1340)
Co-authored-by: Silverarmor <23619946+Silverarmor@users.noreply.github.com>

* restructured project; various bugfixes and improvements (#1339)

Co-authored-by: Jakub Kot <42355410+xnetcat@users.noreply.github.com>
Co-authored-by: Montel Edwards <m@monteledwards.com>
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.

Error when downloading music
2 participants