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

deezer: Tolerate missing fields when searching for singletons #4196

Merged
merged 2 commits into from
Dec 12, 2021

Conversation

ybnd
Copy link
Contributor

@ybnd ybnd commented Dec 12, 2021

Description

Fixes #4116

When searching for singletons, Deezer doesn't return track_position or disk_number information.
Made these fields optional, confirmed that candidates load as expected without these fields.

To Do

  • Documentation. (If you've add a new command-line flag, for example, find the appropriate page under docs/ to describe it.)
  • Changelog. (Add an entry to docs/changelog.rst near the top of the document.)
  • Tests. (Encouraged but not strictly required.) AFAIK the deezer plugin is not tested yet, seems out of scope to write tests from scratch for this PR

Copy link
Member

@sampsyo sampsyo left a comment

Choose a reason for hiding this comment

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

Looks good; thanks for tackling this! Just one suggestion in here for simplifying the lookup code.

beetsplug/deezer.py Outdated Show resolved Hide resolved
@ybnd ybnd force-pushed the pr_deezer_tolerate_missing_fields branch from c0eb7e2 to 82a2a22 Compare December 12, 2021 14:55
Copy link
Member

@sampsyo sampsyo left a comment

Choose a reason for hiding this comment

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

Perfect; thanks!!

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.

deezer: Tolerate missing track_position field
2 participants