Skip to content

Conversation

@aereaux
Copy link
Contributor

@aereaux aereaux commented Jul 15, 2025

Description

Genres is a filtered list based on what musicbrainz considers a genre, tags are all the user-submitted tags. [1]

  1. https://musicbrainz.org/doc/MusicBrainz_API#:~:text=Since%20genres%20are,!).

To Do

  • Documentation. (If you've added a new command-line flag, for example, find the appropriate page under docs/ to describe it.)
  • Changelog. (Add an entry to docs/changelog.rst to the bottom of one of the lists near the top of the document.)
  • Tests. (Very much encouraged but not strictly required.)

@github-actions
Copy link

Thank you for the PR! The changelog has not been updated, so here is a friendly reminder to check if you need to add an entry.

@aereaux aereaux force-pushed the genre-or-tag branch 7 times, most recently from 4698b56 to e348566 Compare July 16, 2025 19:48
@codecov
Copy link

codecov bot commented Aug 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 67.44%. Comparing base (f3da80e) to head (672bf0b).
⚠️ Report is 4 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5874      +/-   ##
==========================================
+ Coverage   67.39%   67.44%   +0.04%     
==========================================
  Files         136      136              
  Lines       18523    18526       +3     
  Branches     3129     3129              
==========================================
+ Hits        12484    12494      +10     
+ Misses       5375     5369       -6     
+ Partials      664      663       -1     
Files with missing lines Coverage Δ
beetsplug/musicbrainz.py 79.11% <100.00%> (+2.00%) ⬆️
🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@aereaux aereaux force-pushed the genre-or-tag branch 2 times, most recently from d3bf316 to 62d1d60 Compare August 11, 2025 22:47
@aereaux aereaux force-pushed the genre-or-tag branch 2 times, most recently from 9c2d293 to b396dfe Compare September 4, 2025 15:24
@aereaux aereaux requested a review from snejus September 4, 2025 15:25
@aereaux
Copy link
Contributor Author

aereaux commented Sep 4, 2025

Hi! Anything else I need to do for this PR?

@snejus
Copy link
Member

snejus commented Sep 27, 2025

Apologies - couldn't review this earlier. The build seems to be failing due to documentation formatting and typing issues - are you happy to address these?

@aereaux aereaux requested a review from a team as a code owner October 1, 2025 01:55
@aereaux aereaux force-pushed the genre-or-tag branch 2 times, most recently from 23cb9f8 to ff9f2ef Compare October 1, 2025 02:06
@aereaux
Copy link
Contributor Author

aereaux commented Oct 1, 2025

Thanks!

I fixed the typing error and one of the docs formatting, but I'm not sure what it's complaining about with the other docs file.

@snejus
Copy link
Member

snejus commented Oct 2, 2025

I fixed the typing error and one of the docs formatting, but I'm not sure what it's complaining about with the other docs file.

Just try running poe format-docs command and it should get fixed!

@aereaux
Copy link
Contributor Author

aereaux commented Oct 2, 2025

I tried that but ran into this error: FileNotFoundError: [Errno 2] No such file or directory: '/home/<me>/.local/lib/beets/*.rst'.

After some experimenting I ran docstrfmt -p /dev/null docs/plugins/musicbrainz.rst, and that reformatted the entire document (not the parts that I changed), so I was wondering if I was doing something wrong.

@snejus
Copy link
Member

snejus commented Oct 2, 2025

dr

docstrfmt -p /dev/null docs/plugins/musicbrainz.rst

Try

docstrfmt -p pyproject.toml docs/plugins/musicbrainz.rst

@aereaux
Copy link
Contributor Author

aereaux commented Oct 15, 2025

Sorry, for the late response, I didn't get a notification for that. I still get this error with that command: FileNotFoundError: [Errno 2] No such file or directory: '/home/user/.local/lib/beets/*.rst'

@aereaux aereaux force-pushed the genre-or-tag branch 2 times, most recently from 962b4bd to f46c0e5 Compare October 22, 2025 05:30
@aereaux
Copy link
Contributor Author

aereaux commented Oct 22, 2025

OK, it was a little complicated and I'm not sure why it wasn't working but I think I got the linting to pass. Anything else I need to do for this?

@aereaux
Copy link
Contributor Author

aereaux commented Nov 11, 2025

Hi again! Anything else I need to do for this PR?

@JOJ0
Copy link
Member

JOJ0 commented Nov 11, 2025

LGTM but since @snejus requested changes initially I'd like to ask them for the final go :-)

…genres

Genres is a filtered list based on what musicbrainz considers a genre,
tags are all the user-submitted tags. [1]

1. https://musicbrainz.org/doc/MusicBrainz_API#:~:text=Since%20genres%20are,!).

Also apply suggestions from code review

Co-authored-by: Šarūnas Nejus <[email protected]>
@snejus
Copy link
Member

snejus commented Nov 11, 2025

Also @aereaux would you mind including genre-list field with some example values somewhere in the test release data in test/plugins/test_musicbrainz.py to make sure that this new configuration is covered?

@aereaux aereaux force-pushed the genre-or-tag branch 4 times, most recently from 075d5bd to 0b329e4 Compare November 12, 2025 01:07
@aereaux
Copy link
Contributor Author

aereaux commented Nov 12, 2025

OK, I think I got the tests right. Let me know how that looks!

Thanks!

@aereaux aereaux requested a review from snejus November 12, 2025 01:08
Copy link
Member

@snejus snejus left a comment

Choose a reason for hiding this comment

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

Nice, thanks!

@snejus snejus enabled auto-merge November 12, 2025 01:35
@snejus snejus merged commit e326aaf into beetbox:master Nov 12, 2025
17 checks passed
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.

3 participants