# Script for ripping genre, year & record label from beatport.com

**URL:** https://community.mp3tag.de/t/script-for-ripping-genre-year-record-label-from-beatport-com/11227
**Category:** Web Sources Discussion
**Created:** [December 3, 2010, 1:16am UTC](https://community.mp3tag.de/t/script-for-ripping-genre-year-record-label-from-beatport-com/11227 "2010-12-03T01:16:56Z")
**Posts on this page:** 1
**Showing post:** 39

<div class="post-metadata">

### Author: ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)
#### Post date: [August 24, 2011, 11:30pm UTC](https://community.mp3tag.de/t/script-for-ripping-genre-year-record-label-from-beatport-com/11227/39 "2011-08-24T23:30:32Z")

</div>

> [@Irvin Cee](#):
>
> I still would like to have the beatport track ID in the tracknumber but also the "catalog #" tag

so i would advice you to use a different tag field for the beatport track ID, as this is something different as the catalog #.  
But there seems to be no catalog # in the track-api-page. Only the beatport release id from where the track is taken from. You would have to do an additional run of a script for releases to to get the catalog #.

> [@Irvin Cee](#):
>
> If posible to recup the beatport id from the filename (first part as default by beatport).

Yes. The tracknames are like trackid\_title\_name\_mix\_name.mp3, right? This will give you the frist numbers of the filename:

[SearchBy]=$regexp(%\_filename%,^(\d+).+,$1)

> [@Irvin Cee](#):
>
> Please not that I changed the & when having 2 artists (or more) in a semicolomn.  
> This is more appropriate because some softs like WMP wil then be able to classify this tracks at both artists..

The proper way to write multivalue tags in Mp3tag is to use \\ as a seperator. But this has some points you have to do right:  
You have to write **say "\\"** to get **\\**.  
And you have to save the files a second time after using the script to get the tag seperated.  
see here: [/t/9432/1](https://community.mp3tag.de/t/9432/1)  
But if "; " works for you as a workaround, you can stick to this.

> [@Irvin Cee](#):
>
> It would be nice I could use this scipt to automatiacly fetch data for x number of tracks.  
> Now i need to to 1 at a time ☹

Here was a project to get this done. Don't know if it works. Tested it a while ago and didn't get it going. Produced a system crash after serveral trys. Now it says "project stopped" in the first post.  
[/t/6702/1](https://community.mp3tag.de/t/6702/1)

Your script generally works nice. Good work!

If you replace

outputto "tracks"

with

outputto "title"

you don't get that track number which will be always 1 for a script for one file.

p.s.:  
and here is a working code to get the album name:

outputto "album"

findline "\<release id="  
joinuntil ""  
findinline ""  
sayuntil ""

---

_[View the full topic](https://community.mp3tag.de/t/script-for-ripping-genre-year-record-label-from-beatport-com/11227)._
