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

feat(ecau): Seed cover art from Harmony release actions pages #810

Merged
merged 4 commits into from
Mar 9, 2025

Conversation

YoGo9
Copy link
Contributor

@YoGo9 YoGo9 commented Mar 4, 2025

Added support for harmony.pulsewidth.org.uk to the Enhanced Cover Art Uploads userscript. This allows users to easily add cover art from the Harmony importer to MusicBrainz releases with a single click, similar to the existing a-tisket integration.

@YoGo9
Copy link
Contributor Author

YoGo9 commented Mar 4, 2025

I've compiled a version with these changes that you can test here:

https://github.com/YoGo9/mb-userscripts/raw/refs/heads/working/dist/mb_enhanced_cover_art_uploads.user.js

@kellnerd kellnerd self-assigned this Mar 9, 2025
YoGo9 added 2 commits March 9, 2025 12:53
- Create index.tsx

  Add harmony seeder

- Update index.ts

  HarmonySeeder

- Update meta.ts

	Added harmony
@kellnerd kellnerd changed the title Adding Harmony feat(ecau): Seed cover art from Harmony release actions pages Mar 9, 2025
@kellnerd
Copy link
Collaborator

kellnerd commented Mar 9, 2025

/deploy-preview

Edit: Unfortunately the preview command is still broken (#801), I was hoping it might work again since codecov is currently working again.

Copy link
Collaborator

@kellnerd kellnerd left a comment

Choose a reason for hiding this comment

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

Thank you!

I've fixed a few things which were causing CI checks to fail:

Additionally I've turned the clickable div containers into proper HTML links, which the users can open in the same or a new tab, as they prefer. This also gives them a blue background and the appropriate cursor, so the injected CSS is no longer necessary.
And finally I'm manipulating the origin URL to point to a cached version of the Harmony release actions page (leveraging an undocumented feature 😏).

Two potential improvements remain, but they can be done in subsequent PRs:

  • Display image dimensions. We can probably reuse the entire atisket/dimensions.ts module for that.
  • Seed the release URL instead of the image URL. This would allow ECAU to grab multiple images for supported providers (currently: Bandcamp) and we can remove the assumption that the image is a front cover (which is not always true, Bandcamp again).

kellnerd added 2 commits March 9, 2025 13:45
- Resolve linter warnings
- Harmony release actions are always for one specific release
- Drop iTunes image URL hack, ECAU already uses Image Max URL
@kellnerd kellnerd merged commit 3cf6b76 into ROpdebee:main Mar 9, 2025
10 checks passed
github-actions bot added a commit that referenced this pull request Mar 9, 2025
feat(ecau): Seed cover art from Harmony release actions pages (#810)
Copy link

github-actions bot commented Mar 9, 2025

🚀 Released 1 new userscript version(s):

  • mb_enhanced_cover_art_uploads 2025.3.9 in 8af057a

@YoGo9
Copy link
Contributor Author

YoGo9 commented Mar 9, 2025

Amazing!

@kellnerd kellnerd mentioned this pull request Mar 9, 2025
3 tasks
@kellnerd kellnerd linked an issue Mar 10, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add cover art addition links to Harmony
2 participants