Highlight owned stuff (releases, recordings, …) with “mb. COLLECTION HIGHLIGHTER”

Continuing the discussion from Is it possible to get a discography completion stat/missing tracks?:

The main reason I use MusicBrainz is to keep track of my collection.

When I am in a flea market, second hand shop, CD shop, I want to know if that compilation or single will bring me recordings I don’t already own in this artist albums or if I already have any edition of that album, etc.

There used to be such a feature in old version of MB but it was very limited as a feature, only the equivalent of the release groups were managed.

I wish this collection all item highlighting can become part of MBS one day:

Until then, I have to use the following Android funny stuff:

mb. COLLECTION HIGHLIGHTER

But for now, until we can have some visual feedback of our collection, I used my userscript that tells me which release group, release, recording, artist are or are not in my collection(s):

Here I can see the albums I have, they have that purple highlight.

Here I can see that in that other edition, there is a recording that I don’t have in my edition.

I can also prepare an artist wanted albums by going to the artist works tab, click the few works I don’t already have and by browsing through its recordings, see what release I am missing.
The possibilities are wide because this script will highlight my stuff in every conceivable page.

7 Likes

I am working on a huge new version.

The new stuff, for the moment is that

  • the collection loader is at least 7 times faster (also tested on Android 9 Kiwi Browser, super fast, no problems)
  • all kinds of huge releases can be loaded (even those with dozens of mediums and thousands of recordings and works, there is no limit any more)
  • the included release groups will also be highlighten, for instance, if you have an album anthology, all its included album release groups will be highlighten, same with a single anthology of anything else using this relationship
  • small interface (GUI) enhancements

All above features are completely implemented.

More are coming. In particular, a rewrite of a more stable sustainable dynamic loader, to fix recent regressions due to MBS enhancements (release pagination). I plan to do that by using what I just did for the initial collection loader, based on stable, sustainable, maintainable web service code.

@Cheezmo and @kellnerd already have it, but you can install the super cool beta version if you want, before it is complete and released.
There is a link over there:

9 Likes

It’s ready and released now.
I didn’t have time to convert the dynamic Remove feature (OFF and Remove from collection buttons) to web service mode but it still works for most cases and also it is the less used feature, I guess.

I will convert my new entity loader to a library, with a small update, and then I will be able to use it in MASS MERGE RECORDINGS as well.

7 Likes

@bricas @Cheezmo @kellnerd @Lotheric @loujin @Toad_King

I browsed the script bug tickets to try to guess who is using it.
But please other users of this script, join the 2 polls! :slight_smile:

There is a regression around labels, reported by Toad King (now fixed).

Personally, I don’t use labels.
I would like to drop support for labels highlighting.
What about you?

  • I need labels highlighting
  • I don’t care

0 voters

And also, settings are not be required any more IMO because now the collection loading is very very fast, even when all options on (contrary to before, now there is no loading time difference, whatever the settings).
I would like to save my time even more in maintenance and drop support for settings.
What about you?

  • I need on and off settings for recordings, artists and works
  • I don’t care

0 voters

As @kellnerd pointed out, no settings would mean that recordings, artists and works would always be highlighted.

2 Likes

I guess this means the highlighting of recordings, artists and works will also be enabled by default? If that’s the case, I still need the setting to disable the highlighting of artists because I don’t want them to be highlighted (for the same reason I do not highlight labels: I don’t feel like I have collected that label or artist while I have that feeling for release groups, recordings and works).

1 Like

Post rewritten on 2022-02-04

The bug when not highlighting all entity types has been fixed on 2022-01-31! :smile:

I see that the settings are useful and that some people do need them and we don’t all have same needs.
So I keep them, as the bug is fixed.

1 Like

Really nice userscript. Very helpful.

A small question. I have five collections this is linked to. One of those collections is my CDs. Sometimes I Remove a release from a collection (when on the Release page) and add a different Release from the same RG. I have noticed that this sometimes confuses the collection highlighter. At this minute, when I look on my CDs Collection I see some items are not highlighted.

Is there a way to force a refresh of just one collection?

I see this list:
image

That shows one of my collections is intentionally not highlighted. Which is great.

So I hit Reload on the first one… hoping to refresh just that list. And it dropped the highlights to the others.
image

For next time - is there are more correct way I could have refreshed just that first collection? Or a way to drop and then re-add just one collection?

(Meanwhile, it doesn’t take too long to re-add 2000 releases so not really a problem :grin: )

Thanks

1 Like

To remedy this, you can click the force ON link in the release sidebar. It should work.

Except sometimes it is not immediate for me, and I don’t understand why but after some minutes or hours, the release gets highlighted, without reclicking Add or ON.

If you click Append, it will add this collection releases (and their content) to your current list of highlighted releases (and their content).
It does not remove any stuff. And no problem if a release is in more than one collection.

It’s the link you are looking for.

The other links, Load and Reload will wipe your list of highlighted stuff, first, then reconstruct the list with only this collection.

It’s called Load or Reload but it’s the same reset then load.

Maybe I should find better names.

And also, this script is in the middle of a rewrite and some stuff is not working, like, I forgot what.

1 Like

Nice. That makes sense. So in this case “Append” becomes “Refresh” when I click on it.
image

I will also look at the “Force On” link in the release sidebar next time I manage to confuse things. See if that helps. I can especially confuse things when I am “moving” my CD from one release to another one in the same RG. i.e. I add a new Release, and then delete an old one sometimes I end up with a slightly confused set of highlights.

I am good at breaking things. :laughing:

1 Like

I have tested this case many times, it should not cause problems.
There is no preferred order to do it (remove first or add first).
But you must wait for the end of the first task before making the second task.

1 Like

If I ever work out the pattern of how I break it, I will let you know. I run this in Vivaldi on Win10. And yes, I will wait for the dialog to tell me it has finished before closing the browser tab. Maybe it doesn’t like it if I go look at another tab while it is updating?

1 Like

You don’t need to keep this tab the active one.
No problem.
Just not updating the collection in several tabs at the same time.