HD Tracks Importer Script?

Tags: #<Tag:0x00007f6d4e438b28> #<Tag:0x00007f6d4e438948> #<Tag:0x00007f6d4e4386c8> #<Tag:0x00007f6d4e4383d0>

I don’t know how to do it, so I’m asking the script makers (you know who you are :-). ) to make an importer for HD Tracks. It seems to me it’d be relatively easy as all HD Tracks have a very easily accessed API. Example:

In The Wee Small Hours (hdtracks.com)

API: https://hdtracks.azurewebsites.net/api/v1/album/5df2295f0bee25c09bc1a367

As you can see the API just has the hd tracks number after the # on the end.

Thanks.

3 Likes

It might help if we had URL verification for HDTracks.

2 Likes

Gods among men :raised_hands:

2 Likes

Their API looks promising at first sight:

  • barcode & ISRCs
  • durations with sub-second precision
  • copyrights and label are separate fields
  • differentiates between release date and original release date
  • provides performer credits

Shortcomings of their data:

  • artists and labels are only identified by name
  • multiple artists/labels are a single entity

Maybe I will have a look at it, but I do not have enough time to do this at the moment. I have bookmarked the topic for later :sweat_smile:

12 Likes

Here you go! In addition to the release editor on MusicBrainz you can also seed @kepstin’s MagicISRC with the ISRCs from HDtracks:

Please install it from the above page (by clicking the Raw button) and give it some testing to see if it works as expected for you (before I will submit a PR to include it in murdos’ repository where most of the other importers have their home). I have only tested the userscript without having an account there, so let me know if it behaves different for logged in users.

There were also some decisions I had to made on which I would like to hear your thoughts:

  • Link type: purchase for download (you can’t stream music there, can you?)
  • Release country: empty (definitely not worldwide, see screenshot above)
  • Script: Latin (I have seen nothing else, not even for K-Pop releases I had a look at)
  • Disambiguation: e.g. 192kHz/24bit
  • Annotation: (C) & (P) copyright lines, release credits (unclear to which tracks they apply)
    → both could also be copied from the page manually
8 Likes

As an aside, I really should document the seeding protocol for magicisrc - it actually supports an alternate parameter form like isrc2-12=XXX to set the isrc for track 12 on disc 2, if your source has the discs in the release separated.

1 Like

(draft from 17 Sep)

A rather short test. It seems many releases are not available to German customers. Even specifically German releases. Guess I have two reasons now to ignore HDtracks ¯\_(ツ)_/¯
Funnily enough the sample streams do work.

www.hdtracks.com_

All the while it’s available on other platforms. Same barcode mind you:

2 Likes

So according to the spare explicit (thanks @chaban) and implicit feedback I should probably…

  • Drop the release credits from the annotation (there are better sources for credits and you can still copy them after clicking the (i) button if you want to).
  • Keep the copyright lines from the API as annotation (they are sometimes different from and/or longer than those shown on the page).
  • Stop using the resolution as disambiguation comment since the barcode is sometimes also used for standard resolution on other platforms? Maybe it’s safer to add this into the annotation (e.g. as “24bit/192kHz available on HDtracks”).

Not completely sure about the last point, I have seen many of these disambiguations and I don’t want to stop people from adding them if this is accepted. Any thoughts or comments?

P.S. Unfortunately there seems to be no reliable way to split fields with multiple artists (joinphrases are ambiguous) or multiple labels (only separated by spaces).

2 Likes

There were some discussions in September, unfortunately a bit fragmented:
Partly IRC, partly edit notes

I agree with @tigerman325’s sentiment. It seems ridiculous to keep releases separate merely because of “muh hi-res”

2 Likes

If people want to split something and they disambiguate them nicely I’m all for it.

I think allowing people to add the granular data they want to fits with MusicBrainz mission of being “The ultimate source of music information”.

Note: there has never been consensus on this so I think you can make a call :smiley:

That’s what I’ve been doing. I’ve just been adding it in the annotation, just like you stated. The lines are getting blurry. Apple Music has hi-res now, but they don’t advertise it on a release page. The only way you’d know is to right click, go to “view page source” and search for “audiotraits”. But how many editors check. Very, very few would do that, and I couldn’t expect them to. a-tisket wouldn’t know the difference about it, so it would get lumped automatically in with the Spotify & Deezer release if they have the same barcode, which many of them do. That audioTraits value also will tell you if it’s Spatial Audio, Atmos, mono, stereo, etc.

3 Likes

I don’t think we will see another physical format. CD is already dying off. One day MB will wake up and give us a way of showing this kind of data in a recording. Trouble is we still have people who think a 320kbps MP3 is the same as a hi-res Atmos track. Such a pity none of this can be documented, but MB hasn’t even worked out how to show mono\stereo\5.1 SACD recordings apart.

4 Likes

+1
I tested the importer mostly with compilation and even theses informations are valuable for adding credits, it quickly becomes a mess as we don’t know which credit is for which recording.

1 Like

I have now updated the importer to drop the release credits from the annotation.
The audio quality is now included in the form “192kHz/24bit available on HDtracks” and will only be added as disambiguation comment if it is not the standard quality of 44.1kHz/16bit. So it’s up to the users to decide whether they want to keep that information.
In addition I have fixed a small release date bug which lead to dates that were off by one day if the user’s timezone is UTC-x.

If you don’t want to wait until the above PR is merged, you have to update the script manually (for the last time), until then automatic updates will not work.

4 Likes

Sometimes the hi-res release has a different mastering engineer than the 16-bit release. If so, they really need to be separate MB releases, even if the identifiers look the same, because the release-level relationships will differ. (However, the current industry trend seems to be to create one hi-res master which is used for both the CD release and the digital formats, or at least only use one mastering engineer for all masters.)

Sony Music Japan has changed their practices several times. They used to assign a different catalog number and barcode; currently they don’t; and they’ll probably do so again in the future.

1 Like

I’ve never seen a different release with the same barcode with different mastering. To me it’s not any different than playing an audiophile 180g record on a bad record player. It’s not the releases fault, just the technology that delivers it. It’s no more apparent than the fact that Apple just all of a sudden turned millions of their 16 bit releases into 24 bit releases over night. Because they already had the release, they just updated their software to play it. Many times I go to a release on a “hi-res” site, they offer the same release in different formats and you can just pick the one you want. Same ID, Same barcode, etc. Do you want to add the different ones as different releases, even though they have the same barcode and link, etc. It does appear that the sites are getting better at it though. Also, iTunes now has hi-res lossless on many of their releases. You wouldn’t know this without loading it in the app or looking at the “view-source” data on a page. They don’t advertise it on the release pages. They will be added as the same release as Spotify and Deezer and have been by the 1000s by a-tisket, because an average editor wouldn’t even know they were different. Honestly, I haven’t seen people separating them out for a few years until very recently. Of course, if there is anything different on a release it can be a separate release, I just fail to see how 16 bit or 24 bit, etc. is enough to say it’s a different release, when it’s only the limitations of the site that are the issue. I’ve changed on merging them, but unless I can figure out a clear difference by comparing the data, I don’t think we should ask people to separate out that hi-res Apple Music file from that CD quality Deezer link if everything else is the same. Mainly because when I stream them, it’s only CD quality because I’m not spending the money for hi-res lossless. It’s still the same release. I’m able to play it. It just doesn’t sound as good as it’s full potential.

4 Likes

I agree here, especially as it is very common to have different download options in various formats, in case of streaming services the quality often even changes dynamically without the user necessarily noticing.

I think listing every possible format doesn’t make sense, especially as the source material is stored lossless and store fronts will just add and remove downloadable formats as technology advances. What is of interest to me is the highest available quality, that is something that IMHO should be noted in MB. But as you also explained even this is not fixed. We don’t know what the highest possible quality is the store could offer.

1 Like

It’s possible the difference in barcode reflects mastering. In this example of Sony Music Japan doing it, they did have different barcodes:

CDに収録されているものと、通常配信はTed Jensenマスタリング。ハイレゾはHowie Weinbergのマスタリングです。

The CD and normal digital distribution is mastered by Ted Jensen. The hi-res is mastered by Howie Weinberg.

This is actually an argument in favor of splitting them for me when the store considers them to be different products. If you buy the 16bit product on a store, you don’t get access to the 24bit/48kHz or the 24bit/96kHz. You have to buy those versions separately. It’s similar to how you have to buy separate editions of the CD separately.

(Not counting Bandcamp where they probably transcode from 24bit to 16bit, and thus neither the store nor the artist/label consider them to be different products.)

1 Like

That’s my point. There is a different barcode. It’s not the same barcode on different masterings.

1 Like