Just to let you know I came across a URL which didn't work,
John Dahlbäcks - Out There http://www.beatport.com/release/out-there/170967
I thought it was my mod to the script but I referenced it against the original one and it had the same problem.
Everything worked as it should do its just I have a few things I need to ask, simple Q's for you but just to help clear my mind a little!!
How come the order in which the headings belong is so important?
Are you a web developer as such or do you need to be in order to do this lark?
Regards the script is it possible to parse beatport for compilations?
And I have a further Q down the page regards the "currentStatus (string)" which includes "exlusive, classics etc"
outputto "album artist"
sayoutput "albumartist"<!--QuoteEnd--></div><!--QuoteEEnd-->
WORKS: Adding the Beatport URL to "www". I've tested this out on a couple of albums and no problems as yet. Thanks.
outputto "WWW"
sayoutput "currentpreview"
I have put this also inside my own mod of the script. But it seems not work for all releases. Sometime you get a URL to a beatport page that doesn't seem to exist. Like with you example release. It seems as if beatport has put it out of their shop, but still keeps the data in it's API.
If you have a look at the artist page, you will see that "Serious Remixes" is not listed (anymore?).
http://www.beatport.com/artist/manufacture...perstars/126978
but the API page is still their:
http://api.beatport.com/catalog/releases/d...l&id=399988
NOTE
If you take a look here http://bit.ly/qtXs3k on there releases page you'll find it, the page you were referring to is just the artist page which only shows there LATEST RELEASES WORKS: Adding the id from beatport to the "discogs_release_id".
outputto "discogs_release_id"
gotoline 1
findline "<release id="
findinline "<release id=\""
sayuntil "\""<!--QuoteEnd--></div><!--QuoteEEnd-->
WORKS: Checking if a release is exclusive and adding it to the unsyncedlyrics.
But I was hoping to get the following as beatport has it:
currentStatus (string): The state of the track on Beatport.com. Can be any of ["New Release", "Exclusive", "General Content", "Classic"].
It would be quite handy to refer some tracks as classic because it would make putting playlist together that bit easier.
outputto "_length"
findline "<trackLength>"
findinline ">"
sayuntil "</"
say "|"
outputto "unsyncedlyrics"
findline "<release id="
findinline " exclusive=\""
if "true"
say "Exclusive to beatport.com"
endif
say "|"outputto "Genre"
findline "<genre"
joinuntil "</genre>"
findinline "<name>"
sayuntil "</"
say "|.<!--QuoteEnd--></div><!--QuoteEEnd-->
WORKS: Appends the "catolog #" to the end of the "album" with square brackets.
outputto "album"
say " ["
sayoutput "catalog #"
say "]"<!--QuoteEnd--></div><!--QuoteEEnd-->
Not sure why I done that to be honest, but I know one thing these scripts are fickle buggers!!! :slight_smile:
WORKS: Taking the beatport year format YYYY-MM-DD and putting the %date% as MMDD.
put this after the year part (only the part in the Code window. the rest is for you to see where exactly to put it in):
outputto "year"
findline ""
findinline ""
sayuntil "</"
outputto "date"
gotochar 1
findinline "<dateReleased>"
findinline "-"
sayuntil "-"
findinline "-"
sayuntil "</"<!--QuoteEnd--></div><!--QuoteEEnd-->
Thanks once again pone for your help.
######EDIT######
I've attached the mod version I done with the kind help of @pone. I attached screen shots of it for anyone to see before downloading.
BTW in case ur wondering how I got the add info screen larger? Photoshop (Would love that window to resize though!!)
_Beatport__Release___stevehero_edit.src (5.92 KB)