[WS] Qobuz (Available in 24 countries)

Hello, MP3TAG users! I decided to post my first Web Source. Please let me know if there are improvements that can be made.

I'm not currently happy with the way COMPOSER is extracted. Inconsistent fields are causing problems. Case in point: https://www.qobuz.com/us-en/album/beyond-the-call-a-musical-tribute-to-courage-honor-and-sacrifice-various-artists/kj1i9cav2gguc

In the above case (Track 2), instead of the credits displaying as "William Arce, MainArtist - Mark Shultz, Composer - Cindy Morgan, Composer", they display as "William Arce, MainArtist - Mark Shultz, Cindy Morgan, Composer". So by removing all roles except the "Composer" role using RegexpReplace, it removes Cindy Morgan in this case. The only way I can think of to get around it is to remove all the spaces from the credit roles, which requires knowing the credit roles. (I'm sure I'm not accounting for everything yet.)

Qobuz_Web_Sources_v2026.04.08.zip (15.9 KB)

7 Likes

Thank you for the Qobuz script. These are the tags I get on files when I download from Qobuz

Fullscreen capture 25-08-2023 113723.bmp

These are the tags that script writes
Fullscreen capture 25-08-2023 114113.bmp

You see UPC, Label, Copyright, ISRC, Genre are all missing

  1. Album artwork is always 600x600 while the ones from Qobuz is 1400x1400

  2. Search only parses the album name and doesn't include the artists name often giving irrelevant results.

IMO, these are the things that can be improved in the script, it's one of it's kind. As far as I'm aware, there are no Qobuz scripts available so thanks again for the effort.

1 Like

Thanks for the suggestions! Unfortunately, I can only get the information from what's available on the page. I don't see the UPC or ISRC when viewing releases on the website. Also, the 600x600 album artwork is the best available from the website, as far as I can tell.

I thought I might try to search Qobuz for that first example by Marcus Mumford, but it doesn't come up in any of my search results. (From which country are you accessing the site?)

The good news is that I can probably add Label, Copyright and Genre.

Lastly, can you give me an example of some search results that are getting irrelevant results? I'm sure it has to do with how the data is parsed.

Thanks again!
GMK

Yea, maybe information is not available for viewing on the website but is available on the tracks downloaded from the store ? Downloaded tracks also have artwork of 1440x1440

Marcus Mumford is a member of South African rock band that has colaborated with the main artist previously, I have no idea why they appear here on a different album
This is the album in question:

Being, Baaba Maal - Qobuz

Extended tags such as Label, Copyright, Genre will be most appreciated.

Thank you for the quality work.

I see the label being duplicated in the "PUBLISHER" tag with this release: Field, Film School - Qobuz

This is due to the following line that is being parsed:

<p class="track__info">2023 felte 2023 felte</p>

I tweaked the src a little bit:

	If "<p class=\"track__info\">"
		KillTag "p"
		KillTag "/p"
		Unspace
		RegexpReplace "^\d{4} " ""
		RegexpReplace " \d{4} .*$" ""
		OutputTo "PUBLISHER"
		SayRest
		Say "|"
	Else
		IfOutput "TEMP_Publisher"
			OutputTo "PUBLISHER"
			SayOutput "TEMP_Publisher"
			Say "|"
					EndIf
	EndIf\

Alternatively, you can fetch PUBLISHER outside the src's do-while loop by finding the line below. This is to avoid labels having 4 digit numerals in middle of their names.

    Released on 8/25/23 by <a class ="album-meta__link" href="/us-en/label/felte-2/download-streaming-albums/120517">felte</a>

Such as:

findline "album-meta__link" 1 1
findinline ">"
SayUntil "<"

I hope the above helps!

1 Like

Great script. Qobuz has some unique metadata!

Of note: I believe that each qobuz album has a qobuz "store" page and a qobuz "streaming" page and I think each of those pages has some unique metadata, or at least they used to. Might be worth a peek if you are interested. In the meantime, I will start poking around myself. :slight_smile:

Thanks again!

Sorry! I mean to incorporate your suggestion into my scripts and I simply forgot! Thanks for the info! I was trying to figure out the RegexpReplace to do that.

If you find the "streaming" page links or how to search, please let me know.

Just take an album id from a store link and put it in the following format:

You may need an account to access the page. I was able to access it with an old account that I don't have a subscription for anymore.

Um...As much as I would love to claim Marcus Mumford as being from a South African band (being a Saffa myself), Mumford & Sons is British....

1 Like

Hello..

The search-results has been changed.. the script wont run anymore :frowning:

Is there maybe a user able and willing to resurrect this script to life again? I was very happy about the extra information it offered and miss it much.

Till

1 Like

Qobuz does offer an API to fetch data.
However, you would need to obtain an access token and adhere to the rate limits.
It is unclear whether such an access would be free or if a fee would be payable.

Scraping HTML (webpage) code is very time-consuming and subject to constant change.
This often leads to broken scripts.

I've moved it to Development > Broken Web Sources for now. Thanks @Till.Eulenspiegel for pointing.

I’m in the process of resurrecting the project, but before I do, I’m going to see if I can set the languages in the settings file. I’m new to settings, but it could definitely simplify things if I can combine all of these into two or three files instead of 25 files.

1 Like

Unfortunately, the API isn’t free and I don’t believe it’s official.

Can we move this back, since I resurrected it? Thank you!

1 Like

Absolutely, thank you for reviving the Qobuz source! Moved it back to Development > Web Sources Scripts

I had a brief look and wanted to ask you, if you could remove or comment out the two lines with Debug "on" ... and the two lines with DebugWriteInput ...

I've also wikified the first post, so you can edit and update new versions freely.

Oh, thanks! I forgot to adjust the Debug commands. Sorry!

1 Like

I’m afraid this one appears to be broken again (which is an awful shame since it’s the only one I’ve found that reliably fetches composers — thank you for your work on that!). It seems to be able to connect to Qobuz, but all searches return no entries