# 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:** 36

<div class="post-metadata">

**Author:** ![ErwinC](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/e/db5fbb/32.png) [@ErwinC](https://community.mp3tag.de/u/ErwinC)\
**Post date:** [August 24, 2011, 5:23pm UTC](https://community.mp3tag.de/t/script-for-ripping-genre-year-record-label-from-beatport-com/11227/36 "2011-08-24T17:23:24Z")

</div>

Hi again

I managed to do some good work on it, so I can moge a bit on...

I still would like to have the beatport track ID in the tracknumber but also the "catalog #" tag  
If posible to recup the beatport id from the filename (first part as default by beatport).  
I now first put the id in the "catalog #" tag and let the script read that tag.  
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..

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 ☹

Very much tanks if you wanna look into this.  
I'm very much sure people will apprciate this.

[Name]=[beatport.com](http://beatport.com)  
[BasedOn]=http://api.beatport.com  
[AlbumUrl]=http://api.beatport.com/catalog/tracks?v=1.0&format=xml&id=%s  
[SearchBy]=%catalog #%

[ParserScriptAlbum]=...  
outputto "tracks"  
findline ""  
findinline "\>"  
sayuntil "\</"  
findline ""  
findinline "\>"  
say " ("  
sayuntil "\</"  
say ")|"

outputto "year"  
findline ""  
findinline ""  
sayuntil "\</"

outputto "coverurl"  
findline "width="60" height="60" ref="release""  
moveline 1  
findinline "image url=""  
sayuntil "" "

#outputto "album""  
#findline "\<release exclusive="false""   
#findinline ""  
#sayuntil "\</"

outputto "publisher"  
findline "\<label id"  
findline ""  
findinline ""  
sayuntil "\</"

outputto "genre"  
findline "\<genre id"  
findline ""  
findinline ""  
sayuntil "\</"

outputto "artist"  
findline "\<performer ref="Artist""  
joinuntil ""  
findinline ""  
sayuntil "\</"  
moveline 1  
unspace  
if "\<performer ref="Artist""  
joinuntil ""  
say "; "  
findinline ""  
sayuntil "\</"  
moveline 1  
unspace  
if "\<performer ref="Artist""  
set "albumartist", "Various Artists"  
endif  
endif  
replace "|" "/"

---

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