# \[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:** 1

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [September 21, 2009, 11:30am UTC](https://community.mp3tag.de/t/ws-rateyourmusic/8995/1 "2009-09-21T11:30:28Z")

</div>

**Mp3tag 2.40 or higher required**

[How do I install the script?](https://community.mp3tag.de/t/2748/1) / [Wie installiere ich das Script?](https://community.mp3tag.de/t/2749/1)

- **RateYourMusic#Search by Album** _Search by:_ **Album** _Imports:_ Artist, Album, Titles, Year, Style, Cover

rate your music

---

<div class="post-metadata">

### Author: ![Windjammer](https://community.mp3tag.de/user_avatar/community.mp3tag.de/windjammer/32/68_2.png) [@Windjammer](https://community.mp3tag.de/u/Windjammer)
#### Post date: [November 8, 2009, 8:19pm UTC](https://community.mp3tag.de/t/ws-rateyourmusic/8995/2 "2009-11-08T20:19:07Z")

</div>

> [@dano](#):
>
> [\*] **RateYourMusic#Search by Album**  
> _Search by:_ **Album**  
> _Imports:_ Artist, Album, Titles, Year, Genres, Cover  
> [/list]

Hi dano,

So, this script does actually not add a lot of new tag in the over all fantastic collection of scripts you have made. I have a few suggestions to make this more useful. First of all I think the info that goes into GENRES should go into STYLES instead since they are almost always more than one...

In the existing scripts you can find what language the songs are in and where albums are released, but, as far as I know, not where the band/artist is from. Don't know if it's even possible but the tags I would like to see this script grab are of that kind and from the ARTIST page of the album...

ALSO KNOWN AS  
BORN  
CURRENTLY  
FORMED  
MEMBERS  
MEMBER OF

What do you think, is this useful for anyone else than me? I run theme nights with songs from artists from only one country or region (like Sweden) and I would love to have this info in my collection of songs...

Regards,

/Windjammer

---

<div class="post-metadata">

### Author: ![Windjammer](https://community.mp3tag.de/user_avatar/community.mp3tag.de/windjammer/32/68_2.png) [@Windjammer](https://community.mp3tag.de/u/Windjammer)
#### Post date: [November 13, 2010, 12:04am UTC](https://community.mp3tag.de/t/ws-rateyourmusic/8995/3 "2010-11-13T00:04:56Z")

</div>

Hi Dano,

This one isn't working anymore, right? Anyway I can't get it to work on any of my resent searches like for instance [Santogold](http://rateyourmusic.com/release/album/santigold/santogold/)

Regards,

Windjammer

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [November 13, 2010, 10:24am UTC](https://community.mp3tag.de/t/ws-rateyourmusic/8995/4 "2010-11-13T10:24:12Z")

</div>

I've fixed it.

---

<div class="post-metadata">

### Author: ![Windjammer](https://community.mp3tag.de/user_avatar/community.mp3tag.de/windjammer/32/68_2.png) [@Windjammer](https://community.mp3tag.de/u/Windjammer)
#### Post date: [November 21, 2010, 7:57pm UTC](https://community.mp3tag.de/t/ws-rateyourmusic/8995/5 "2010-11-21T19:57:01Z")

</div>

Hi again Dano,

Thanks for the last fix, now that works, but the script still doesn't grab the cover.

Thanks for your work!

> [@dano](#):
>
> I've fixed it.

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [November 21, 2010, 8:13pm UTC](https://community.mp3tag.de/t/ws-rateyourmusic/8995/6 "2010-11-21T20:13:17Z")

</div>

Cover works for me.

---

<div class="post-metadata">

### Author: ![pdrpdr](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/f04885/32.png) [@pdrpdr](https://community.mp3tag.de/u/pdrpdr)
#### Post date: [April 1, 2012, 6:00am UTC](https://community.mp3tag.de/t/ws-rateyourmusic/8995/7 "2012-04-01T06:00:43Z")

</div>

Hi, thanks for the script, it works perfectly.

But I would like to download only primary genres (and not the secondaries). I tried to edit it myself (I didn't knew anything about this scripting language), I understood the basics of it, but I couldn't find a way to only import primary genres.

What should I change here?

# Genre / Style

outputto "CONTENTGROUP"  
findline ""genrelist\_"  
findinline ""genrelist\_"  
sayregexp "(?\<=/"\>)[^\<]+(?=\</a)" ", "

Thanks a lot.

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [April 1, 2012, 6:53am UTC](https://community.mp3tag.de/t/ws-rateyourmusic/8995/8 "2012-04-01T06:53:50Z")

</div>

Replace the last line of that code with  
sayregexp "(?\<=/"\>)[^\<]+" ", " "\</a"

---

<div class="post-metadata">

### Author: ![pdrpdr](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/f04885/32.png) [@pdrpdr](https://community.mp3tag.de/u/pdrpdr)
#### Post date: [April 1, 2012, 5:50pm UTC](https://community.mp3tag.de/t/ws-rateyourmusic/8995/9 "2012-04-01T17:50:33Z")

</div>

Thanks a lot! That didn't do what I wanted but it made me understand how I should edit it!

For example, this album:

[http://rateyourmusic.com/release/album/asi...s\_and\_fictions/](http://rateyourmusic.com/release/album/asian_dub_foundation/facts_and_fictions/)

Has as genres:

Genres Breakbeat, UK Hip Hop, Dub  
World Music, Ragga, Dub, Alternative Rock, Drum and Bass, Alternative Dance

But the 2nd list is just a list of "Secondary genres include influences and undertones that are less predominant, or not representative of the album as a whole. "

So i want to filter out those and only import the first 3: Breakbeat, UK Hip Hop, Dub.

But as I said your post helped me a lot, I edited it as this and I thnk it's working:

"sayregexp "(?\<=/"\>)[^\<]+" ", " "genrelist\_s" "

Thanks again. Your script will save me a lot of work! Because of it now I'm an user of MP3Tag 😃.

---

<div class="post-metadata">

### Author: ![91JK](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/9/2acd7d/32.png) [@91JK](https://community.mp3tag.de/u/91JK)
#### Post date: [October 9, 2013, 12:57pm UTC](https://community.mp3tag.de/t/ws-rateyourmusic/8995/10 "2013-10-09T12:57:28Z")

</div>

This should be updated now that RYM changed to 2.5. It doesn't work at all. I really like to get the genre tags off RYM using this script.

---

<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: [November 1, 2013, 10:20pm UTC](https://community.mp3tag.de/t/ws-rateyourmusic/8995/11 "2013-11-01T22:20:13Z")

</div>

I made a mod for the new RYM layout, it's probably very much perfectible (I'm new to the scripting framework) but at least it worked with the few releases I wanted to get the genres and covers for (a few regular albums and one Various Artists soundtrack).  
Is it OK for me to post it here?

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [November 2, 2013, 12:12pm UTC](https://community.mp3tag.de/t/ws-rateyourmusic/8995/12 "2013-11-02T12:12:46Z")

</div>

Go ahead.

---

<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: [November 2, 2013, 12:15pm UTC](https://community.mp3tag.de/t/ws-rateyourmusic/8995/13 "2013-11-02T12:15:46Z")

</div>

There you go. Obviously, feel free to improve it! 🙂  
I only modified the Album part, the Search part was still working.

## Updates

2013-11-10 -- Genres: fixed when there are no secondary ones; Tracks: ignore disc headers

[RateYourMusic\_03.zip](https://community.mp3tag.de/uploads/default/original/2X/b/b0d0ea37a2004f1b67776873502b423697d975ed.zip) (2.06 KB)

---

<div class="post-metadata">

### Author: ![91JK](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/9/2acd7d/32.png) [@91JK](https://community.mp3tag.de/u/91JK)
#### Post date: [November 3, 2013, 11:29am UTC](https://community.mp3tag.de/t/ws-rateyourmusic/8995/14 "2013-11-03T11:29:27Z")

</div>

Thank you so much, nathbot! Looks really good. I was wondering if it would be possible to get the specific date too. For example, on RYM: "January 2, 2003" and on Mp3tag: "2003-01-02".

---

<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: [November 6, 2013, 7:30am UTC](https://community.mp3tag.de/t/ws-rateyourmusic/8995/15 "2013-11-06T07:30:07Z")

</div>

Glad I could help. 🙂  
Regarding your request, this worked with the couple of albums I used to test. Place this between the #Year and the #Genre sections, it will put the value into a "DATE" tag.  
(It might work if you place it somewhere else, actually)

```
# Full date
findLine "<th class=\"info_hdr\">Released" 1
### Remove tags in date
KillTag "a"
KillTag "/a"
KillTag "b"
KillTag "/b"
# ### change order to year-month-day
Replace " " " "
RegexpReplace "([A-Za-z]+) ([0-9]+), ([0-9]+)" "\3-\1-\2"
# ### replace month string by numbers
Replace "January" "01"
Replace "February" "02"
Replace "March" "03"
Replace "April" "04"
Replace "May" "05"
Replace "June" "06"
Replace "July" "07"
Replace "August" "08"
Replace "September" "09"
Replace "October" "10"
Replace "November" "11"
Replace "December" "12"
### Add leading zero to days 1-9
RegexpReplace "([0-9]{4}-[0-9]{2}-)([0-9] <)" "\10\2"
OutputTo "DATE"
findinline "<td colspan=\"2\">" 1
SayUntil "</td>"
```

---

<div class="post-metadata">

### Author: ![91JK](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/9/2acd7d/32.png) [@91JK](https://community.mp3tag.de/u/91JK)
#### Post date: [December 7, 2013, 6:24pm UTC](https://community.mp3tag.de/t/ws-rateyourmusic/8995/16 "2013-12-07T18:24:04Z")

</div>

It stopped working again. ☹

---

<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: [December 10, 2013, 8:50am UTC](https://community.mp3tag.de/t/ws-rateyourmusic/8995/17 "2013-12-10T08:50:05Z")

</div>

Some minor things seem to have changed in the RYM search results page... enough to break everything! 🙂 Try this mod (not extensively tested, it has worked with a few searches so far).

It also contains your "Full date" request.

Download link: [RateYourMusic\_03.zip](https://preview.cubby.com/pl/RateYourMusic_03.zip/_8df0d6fcf7fb40f7902e8506bf48f7c7)

**Updates**  
14 Aug 2014

- Fixed: starting with v2.62 Tracks were getting duplicated in the album details  
28 Dec 2013
- Fixed error when there are no tracks
- Fixed error in search when an album has no artist
- Handle split albums (2 artists)

---

<div class="post-metadata">

### Author: ![liberator](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/2acd7d/32.png) [@liberator](https://community.mp3tag.de/u/liberator)
#### Post date: [August 14, 2014, 11:02am UTC](https://community.mp3tag.de/t/ws-rateyourmusic/8995/18 "2014-08-14T11:02:19Z")

</div>

> [@nathbot](#):
>
> Some minor things seem to have changed in the RYM search results page... enough to break everything! 🙂 Try this mod (not extensively tested, it has worked with a few searches so far).
> 
> It also contains your "Full date" request.
> 
> Download link: [RateYourMusic\_03.zip](https://preview.cubby.com/pl/RateYourMusic_03.zip/_8df0d6fcf7fb40f7902e8506bf48f7c7)
> 
> **Updates**  
> 28 Dec 2013
> 
> - Fixed error when there are no tracks
> - Fixed error in search when an album has no artist
> - Handle split albums (2 artists)

I seem to be getting double result sets. For example;

Filenames

01 - Name of track 1.mp3  
02 - Name of track 2.mp3  
03 - Name of track 3.mp3

Tracks

1 Name of track 1  
2 Name of track 1  
3 Name of track 2  
4 Name of track 2  
5 Name of track 3  
6 Name of track 3

I have tried many albums - all are the same ☹

---

<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: [August 14, 2014, 11:12am UTC](https://community.mp3tag.de/t/ws-rateyourmusic/8995/19 "2014-08-14T11:12:46Z")

</div>

> [@Liberator](#):
>
> I seem to be getting double result sets.

Odd, I guess they changed something again! I'll have a look over the weekend.

---

<div class="post-metadata">

### Author: ![liberator](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/2acd7d/32.png) [@liberator](https://community.mp3tag.de/u/liberator)
#### Post date: [August 14, 2014, 11:16am UTC](https://community.mp3tag.de/t/ws-rateyourmusic/8995/20 "2014-08-14T11:16:56Z")

</div>

> [@nathbot](#):
>
> Odd, I guess they changed something again! I'll have a look over the weekend.

Many thanks 😉

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