# \[WS\] RateYourMusic

**URL:** https://community.mp3tag.de/t/ws-rateyourmusic/8995
**Category:** Web Sources Scripts
**Created:** [September 21, 2009, 11:30am UTC](https://community.mp3tag.de/t/ws-rateyourmusic/8995 "2009-09-21T11:30:28Z")
**Posts on this page:** 20
**Page:** 6

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [July 25, 2023, 2:04pm UTC](https://community.mp3tag.de/t/ws-rateyourmusic/8995/101 "2023-07-25T14:04:55Z")

</div>

I've moved this to #Web Sources Scripts after the recent fixes. Thanks for keeping this updated.

---

<div class="post-metadata">

### Author: ![magnumforce2006](https://community.mp3tag.de/user_avatar/community.mp3tag.de/magnumforce2006/32/15866_2.png) [@magnumforce2006](https://community.mp3tag.de/u/magnumforce2006)
#### Post date: [January 10, 2024, 2:34am UTC](https://community.mp3tag.de/t/ws-rateyourmusic/8995/102 "2024-01-10T02:34:05Z")

</div>

Hey @nathbot thank you so much for this script. Rateyourmusic is my favorite repository for expanded metadata and I love using this tool to apply it to my library.

I've noticed that with the **Descriptors** field, there's no spaces between values. Could this be updated to put a space in between the **;** character and the next description? If not, programs like foobar will not recognize the multiple fields as distinct, and group them together.

Thank you!

---

<div class="post-metadata">

### Author: ![User\_name](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/u/bbce88/32.png) [@User\_name](https://community.mp3tag.de/u/User_name)
#### Post date: [January 10, 2024, 3:48am UTC](https://community.mp3tag.de/t/ws-rateyourmusic/8995/103 "2024-01-10T03:48:25Z")

</div>

I'm not sure, it's been a while since I used this script, but maybe this will suit you: on line 280 of the "Search by Album" file, replace this line :

```auto
Replace ", " ";"

```

with this:

```auto
Replace ", " "\\\\"

```

There's even a note about this in the file (line 279). You can choose the separator by putting whatever you want between the last `" "`.  
I don't think adding a space behind the semicolon will separate the values, but I'm not sure.  
We had a discussion about these separators, which started [here](https://community.mp3tag.de/t/ws-rateyourmusic/8995/65).  
If I remember correctly, `\\` is the Mp3tag separator, so it's the one I put in my settings. I also use foobar2000.

---

<div class="post-metadata">

### Author: ![nathbot](https://community.mp3tag.de/user_avatar/community.mp3tag.de/nathbot/32/9028_2.png) [@nathbot](https://community.mp3tag.de/u/nathbot)
#### Post date: [January 10, 2024, 6:04pm UTC](https://community.mp3tag.de/t/ws-rateyourmusic/8995/104 "2024-01-10T18:04:36Z")

</div>

Hi,  
sorry I can't play with this at the moment, I haven't been able to start mp3tag even after reinstalling or with a portable version.  
But out of curiosity I loaded a few mp3s into my very basic foobar2000 installation, and the "; " separator appears to be correctly interpreted:  
 ![image](https://community.mp3tag.de/uploads/default/original/2X/4/4776ee9b7bdcba44c81ddb4eaa42d869487ae6d1.png)

 ![image](https://community.mp3tag.de/uploads/default/original/2X/2/26d87902c7b82835a82a1e29b7aaa81ee85bebc7.png)  
I didn't tweak much on it (I'm far too rusty with foobar), all I added to the default config was this:  
 ![image](https://community.mp3tag.de/uploads/default/original/2X/5/5f670125a5da489c34133700b5df73bcd2f47c24.png)  
I see that by default the Genre field is defined as multivalue:  
 ![image](https://community.mp3tag.de/uploads/default/original/2X/9/94d4cb314774b85357197466aa30b3eb1970fa10.png)  
That's a lot of screenshots, all to say... could it simply be a matter of configuring foobar?

---

<div class="post-metadata">

### Author: ![User\_name](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/u/bbce88/32.png) [@User\_name](https://community.mp3tag.de/u/User_name)
#### Post date: [January 10, 2024, 9:00pm UTC](https://community.mp3tag.de/t/ws-rateyourmusic/8995/105 "2024-01-10T21:00:50Z")

</div>

I did a quick test and the `; ` separator was recognized by foobar with mp3s but not with flac files. I mainly use flac files. (recognized by foobar... or it comes from the way Mp3tag saves files, I don't know)

![Screenshot foobar2000](https://community.mp3tag.de/uploads/default/original/2X/4/4a15c6bff8764748482e96d83c7d375710575c67.png)

I put the same values in "Genre" in Mp3Tag: `AA; BB; CC; DD`, and saved.  
I used this in my Genre column in foobar: `$meta_sep(genre, * )` ([reference](https://wiki.hydrogenaud.io/index.php?title=Foobar2000:Title_Formatting_Reference#.24meta_sep.28name.2Csep.29)).  
I checked, the "Genre" tag is indeed present in my "Multivalue fields" setting in foobar's advanced preferences.

---

<div class="post-metadata">

### Author: ![magnumforce2006](https://community.mp3tag.de/user_avatar/community.mp3tag.de/magnumforce2006/32/15866_2.png) [@magnumforce2006](https://community.mp3tag.de/u/magnumforce2006)
#### Post date: [January 11, 2024, 1:59am UTC](https://community.mp3tag.de/t/ws-rateyourmusic/8995/106 "2024-01-11T01:59:00Z")

</div>

this worked! Thank you.

---

<div class="post-metadata">

### Author: ![magnumforce2006](https://community.mp3tag.de/user_avatar/community.mp3tag.de/magnumforce2006/32/15866_2.png) [@magnumforce2006](https://community.mp3tag.de/u/magnumforce2006)
#### Post date: [January 11, 2024, 1:54pm UTC](https://community.mp3tag.de/t/ws-rateyourmusic/8995/107 "2024-01-11T13:54:07Z")

</div>

Next question for everyone... Is there a good strategy, perhaps bot, to tagging your whole library with this tool? Doing so manually is obviously an option, but seeing if anyone has dabbled in automated ways of doing so.

---

<div class="post-metadata">

### Author: ![nathbot](https://community.mp3tag.de/user_avatar/community.mp3tag.de/nathbot/32/9028_2.png) [@nathbot](https://community.mp3tag.de/u/nathbot)
#### Post date: [January 11, 2024, 2:12pm UTC](https://community.mp3tag.de/t/ws-rateyourmusic/8995/108 "2024-01-11T14:12:45Z")

</div>

I know nothing about automation, but considering what's happened to me a few times when I ran the script on many albums in a short time, I tend to think that RYM will automatically (at least temporarily) ban your IP if you ping them for 500 albums in 5 seconds... 🙂

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [January 11, 2024, 2:41pm UTC](https://community.mp3tag.de/t/ws-rateyourmusic/8995/109 "2024-01-11T14:41:46Z")

</div>

> [@magnumforce2006](#):
>
> Is there a good strategy, perhaps bot, to tagging your whole library with this tool?

Do you mean _Mp3tag_ or _[WS] RateYourMusic_ with "this tool"?  
Anyway, there is no such strategy for your whole library.  
There are too much edge cases and exceptions that such an automatism would work.  
Just imagine:  
It is not possible to guess which song from which album in which release year and from which country do you own and do you want to tag. Is it the LP version? Or the CD version? Or a digital download? Is it a song from a compilation?  
Every step involving guessing will ultimately lead to wrong data in your songs.

---

<div class="post-metadata">

### Author: ![User\_name](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/u/bbce88/32.png) [@User\_name](https://community.mp3tag.de/u/User_name)
#### Post date: [January 11, 2024, 10:43pm UTC](https://community.mp3tag.de/t/ws-rateyourmusic/8995/110 "2024-01-11T22:43:54Z")

</div>

> [@magnumforce2006](#):
>
> Is there a good strategy, perhaps bot, to tagging your whole library with this tool? Doing so manually is obviously an option, but seeing if anyone has dabbled in automated ways of doing so.

I've tagged my library manually.

Not what you're looking for, but if anyone's interested... I made an [AutoHotkey](https://www.autohotkey.com) script that allows me to manually search for the album or artist page in my web browser, instead of doing the search in Mp3tag. The script monitors the clipboard and writes the web address to the Mp3tag source file. It's a bit complicated and really amateurish. If you want, I can share it. It will require some explanation, translation and adjustments to adapt it to your tags.

In foobar, I've also made a button with [Run services](https://www.foobar2000.org/components/view/foo_run) to launch a search on the Rate Your Music site in my browser, from the selected song. I can also show you the settings if you like.

---

<div class="post-metadata">

### Author: ![nathbot](https://community.mp3tag.de/user_avatar/community.mp3tag.de/nathbot/32/9028_2.png) [@nathbot](https://community.mp3tag.de/u/nathbot)
#### Post date: [January 12, 2024, 12:21am UTC](https://community.mp3tag.de/t/ws-rateyourmusic/8995/111 "2024-01-12T00:21:27Z")

</div>

MusicBee addition (sorry if it's a bit out of topic):

In that spirit, while for tagging I don't know anything more efficient than drag-and-drop from MusicBee onto mp3tag + the RYM script... I sometimes also just want to run a search from MusicBee for the album on RYM.  
This can be done by adding a custom web link.  
Preferences \> Internet \> custom web links  
using this URL pattern: `https://rateyourmusic.com/search?searchterm=<Artist>%20<Album>&searchtype=l`  
Then it's available on the track's contextual menu: Search \> Open in web browser.  
Simple stuff but I only became aware of it recently...  
Following this [wiki](https://musicbee.fandom.com/wiki/Web_Encyclopedia_List) there is also this pattern for a direct link:  
`http://rateyourmusic.com/release/album/$lower($replace($replace($replace(<Artist>"/"<Album>," ",-),"'",),",",-))`  
but it's probably not 100% reliable for "special" artist/album names.  
It would be cool to be able to use the RATEYOURMUSIC ALBUM URL and RATEYOURMUSIC ARTIST URL tags in those web links too, but I haven't found how yet.

---

<div class="post-metadata">

### Author: ![User\_name](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/u/bbce88/32.png) [@User\_name](https://community.mp3tag.de/u/User_name)
#### Post date: [January 12, 2024, 2:39am UTC](https://community.mp3tag.de/t/ws-rateyourmusic/8995/112 "2024-01-12T02:39:08Z")

</div>

> [@nathbot](#):
>
> It would be cool to be able to use the RATEYOURMUSIC ALBUM URL and RATEYOURMUSIC ARTIST URL tags in those web links too, but I haven't found how yet.

I use this in foobar with Run services to open the album page if it's present in my `RYM_URL` tag (my tag for `RateYourMusic Album URL`), otherwise search for the artist:

```auto
$if2($meta(rym_url),https'://'rateyourmusic.com/search?searchterm=$replace($replace(%artist%,&,'%'26), ,'%'20)&searchtype=a)

```

This `$if2(X,Y)` is the same as `$if(X,X,Y)`.  
If X contains at least one present field, executes/displays X, otherwise executes/displays Y.  
If `RYM_URL` is present, open it, otherwise open a search url.

I'm not familiar with Musicbee, but maybe with the [$IsNull](https://musicbee.fandom.com/wiki/Functions#IsNull) function (or [$if](https://musicbee.fandom.com/wiki/Functions#If) and $IsMatch) you can do something like this:

`$IsNull(<Tag>,True Result,False Result)`  
`$IsNull(<RateYourMusic Album URL>,Search URL pattern,<RateYourMusic Album URL>)`

**[IsNull](https://musicbee.fandom.com/wiki/Functions#IsNull)** : This is a variant of `$If` for dealing with null values (empty fields). Expressed as `$IsNull(<Tag>,True Result,False Result)`. If the checked tag has any value at all, even 0, you will get the False result. Only if it is blank or non-existent will you get the True result.

---

<div class="post-metadata">

### Author: ![nathbot](https://community.mp3tag.de/user_avatar/community.mp3tag.de/nathbot/32/9028_2.png) [@nathbot](https://community.mp3tag.de/u/nathbot)
#### Post date: [January 30, 2024, 9:05pm UTC](https://community.mp3tag.de/t/ws-rateyourmusic/8995/113 "2024-01-30T21:05:35Z")

</div>

I feel like sharing my very obvious tip of the month (maybe the year)...

Sometimes the album has such a generic title that it ends up on page 2 or 3 of the results.  
What I do is duplicate the RYM source file, rename it "page 2" (and another one for page 3 for good measure), then just go and change the value of the "page" parameter in the declaration of [IndexUrl] (line 22).  
And voilà, I don't have to go edit the one script every time this case occurs.  
 ![image](https://community.mp3tag.de/uploads/default/original/3X/f/c/fca9b733709480eb1d03521259e6d7c86ac3b5ac.png)

---

<div class="post-metadata">

### Author: ![nathbot](https://community.mp3tag.de/user_avatar/community.mp3tag.de/nathbot/32/9028_2.png) [@nathbot](https://community.mp3tag.de/u/nathbot)
#### Post date: [May 23, 2024, 11:07am UTC](https://community.mp3tag.de/t/ws-rateyourmusic/8995/114 "2024-05-23T11:07:46Z")

</div>

Sadly, I'm getting a 403 Forbidden error from RYM now (only when calling from mp3tag, the website is fine).  
Am I the only one?  
I tried changing the URLs to https, to no avail.

---

<div class="post-metadata">

### Author: ![User\_name](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/u/bbce88/32.png) [@User\_name](https://community.mp3tag.de/u/User_name)
#### Post date: [May 23, 2024, 12:11pm UTC](https://community.mp3tag.de/t/ws-rateyourmusic/8995/115 "2024-05-23T12:11:35Z")

</div>

I also have a 403: Forbidden error with Mp3tag.  
I had a problem going to the site with my browser because of a captcha.

 ![Screenshot](https://community.mp3tag.de/uploads/default/original/3X/2/7/278641e694dd4216b9bca1bfa0ea998b412facc7.png)  
Maybe it's because of that.  
I need to disable an extension in my browser (CanvasBlocker) to pass this test, otherwise it reappears in a loop.  
Even after passing the captcha in my browser, I still get the 403 error in Mp3tag.

---

<div class="post-metadata">

### Author: ![magnumforce2006](https://community.mp3tag.de/user_avatar/community.mp3tag.de/magnumforce2006/32/15866_2.png) [@magnumforce2006](https://community.mp3tag.de/u/magnumforce2006)
#### Post date: [May 31, 2024, 1:27am UTC](https://community.mp3tag.de/t/ws-rateyourmusic/8995/116 "2024-05-31T01:27:08Z")

</div>

It has something to do with the newest version of mp3tag @nathbot and @User_name . I noticed the issue when i upgraded to 3.26. When i downgraded back to 3.25 the script worked fine again.

---

<div class="post-metadata">

### Author: ![User\_name](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/u/bbce88/32.png) [@User\_name](https://community.mp3tag.de/u/User_name)
#### Post date: [May 31, 2024, 4:17pm UTC](https://community.mp3tag.de/t/ws-rateyourmusic/8995/117 "2024-05-31T16:17:03Z")

</div>

I've tried Mp3tag 3.25 and 3.24 with RateYourMusic\_20230722, and I still get error 403.

---

<div class="post-metadata">

### Author: ![nathbot](https://community.mp3tag.de/user_avatar/community.mp3tag.de/nathbot/32/9028_2.png) [@nathbot](https://community.mp3tag.de/u/nathbot)
#### Post date: [June 2, 2024, 7:50pm UTC](https://community.mp3tag.de/t/ws-rateyourmusic/8995/118 "2024-06-02T19:50:15Z")

</div>

Searching through the RYM forum, I've seen user complaints about the Cloudflare check popping up too often, even during the same browser session. So there must be something fishy going on there. Wait and see...

---

<div class="post-metadata">

### Author: ![Micksen90](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/6bbea6/32.png) [@Micksen90](https://community.mp3tag.de/u/Micksen90)
#### Post date: [September 25, 2024, 7:34am UTC](https://community.mp3tag.de/t/ws-rateyourmusic/8995/119 "2024-09-25T07:34:08Z")

</div>

I have created a script with auto hotkey that copies primary and secondary genres to the clipboard, and then pastes them into Musicbee and seperates the genres with ; . You need to run firefox, and the tag inspector in musicbee has to be a floating window. I can edit the file so it doesn't paste the genres into musicbee, but keeps it in the clipboard.

---

<div class="post-metadata">

### Author: ![nathbot](https://community.mp3tag.de/user_avatar/community.mp3tag.de/nathbot/32/9028_2.png) [@nathbot](https://community.mp3tag.de/u/nathbot)
#### Post date: [September 26, 2024, 1:51pm UTC](https://community.mp3tag.de/t/ws-rateyourmusic/8995/120 "2024-09-26T13:51:38Z")

</div>

Great minds think (almost) alike... 🙂  
I also created a AutoHotkey script, just less fancy because it was my first AHK script ever.

The process is: I select and copy the two lines of genres and subgenres on RYM, I do Ctrl+Alt+V to convert the content of my clipboard, joining the lines and applying the ; separator. Then I paste in whatever MusicBee window I've opened to fill the Genres field.

If anyone is interested:

```auto
^!v:: ; Ctrl+Alt+V
{
    A_Clipboard := Trim(A_Clipboard)
    A_Clipboard := StrReplace(A_Clipboard, "`r`n", ";")
    A_Clipboard := StrReplace(A_Clipboard, ",", ";")
    A_Clipboard := StrReplace(A_Clipboard, ";;", ";")
}

```

But oh how I miss being able to use mp3tag for this...

[Previous page](https://community.mp3tag.de/t/ws-rateyourmusic/8995.md?page=5)

[Next page](https://community.mp3tag.de/t/ws-rateyourmusic/8995.md?page=7)
