IPB

Welcome Guest ( Log In | Register )

30 Pages V   1 2 3 > »   
Reply to this topicStart new topic
> beatport.com scripts by stevehero (search & direct) - jaimz mod, rips cover, album, year, date, catalog #, publisher, genre, www + more
stevehero
post Oct 5 2011, 00:07
Post #1


Member


Group: Full Members
Posts: 837
Joined: 3-December 10
From: Ireland
Member No.: 13334
Mp3tag Version: 2.84



.



**V4.2 OUT NOW**

12.02.16

Attached File  beatport_by_stevehero_v4.2_Scripts.zip ( 67.93K ) Number of downloads: 16265


INFO PANELS + TAG EXAMPLES:
Attached Image


RELEASE PARSING: (CLICK EXAMPLE RELEASE HERE)
Use scripts for this type below:
- RELEASE Direct by BEATPORT_RELEASE_ID (SHORT-CUT ALT>S>S>B)
- RELEASE Direct by WWW(URL) (SHORT-CUT ALT>S>S>W)
- RELEASE Direct by WWW(URL) Without Genre + Comment Tag (SHORT-CUT NONE)
- RELEASE Search by Artist (SHORT-CUT ALT>S>S>A)
- RELEASE Search by (Album)Artist + Release (SHORT-CUT ALT>S>S>R)
- RELEASE Search by (Album)Artist + Title (SHORT-CUT ALT>S>S>T)
- RELEASE Search by Release (SHORT-CUT ALT>S>S>S)
- RELEASE Search by Title (SHORT-CUT ALT>S>S>E)

NB. These are for full releases only. Albums, EP's etc. Not single tracks on full releases.

SINGLE TRACK PARSING: (CLICK EXAMPLE TRACK HERE)
Use scripts for this type below:
- SINGLE TRACK Direct by BEATPORT_TRACK_ID (SHORT-CUT NONE)
- SINGLE TRACK Direct by BEATPORT_TRACK_URL (SHORT-CUT NONE)
- SINGLE TRACK Direct by WWW(URL) (SHORT-CUT NONE)
- SINGLE TRACK Direct by WWW(URL) Without Genre + Comment Tag (SHORT-CUT NONE)
- SINGLE TRACK Search by (Album)Artist + Title (SHORT-CUT NONE)
- SINGLE TRACK Search by Title (SHORT-CUT NONE)

NB. Using these scripts to search a release will not work. To be used where you only download a song or songs from a particular release.

UPDATE HISTORY:
CODE
# v4.2
FIX: Problem with parsing the index URL (Thanks Florian: https://forums.mp3tag.de/index.php?s=&showtopic=14479&view=findpost&p=88315)
FIX: Problem ' Remix (Original Mix)'. http://btprt.dj/1HgeAs6
FIX: Problem on INITIALKEY on ( http://classic.beatport.com/release/treasured-soul-the-remixes/1520130 ) where name contained Amin.
FIX: WWW(URL) Scripts fix
FIX: When | (verticalbar) appeared in BPs listings
FIX: Minor fixes in formattings. EP,feat
# ---------------------------------------------------------------
# v4.3
FIX: BP Classic update: Various scripts that use the URL parsing method
FIX: BP Classic update: Camelot Key conversion wasn't working with the new beatport classic URL
# ----------
ADDED: 2 scripts with both Genre + Comment Tag not parsed from beatport, handy when retagging mp3's
FIX: Various other bugs: & to & | (( & )) to ( & )
FIX: Bug when COMPILATION was set
FIX: ALBUMARTIST field when they contain '-' (http://www.beatport.com/release/defjam/359225)
FIX: Small bug in index search UI when Remixer appeared 'Cedric Gervais ● x' is now just 'Cedric Gervais'
FIX: Small bug in index single track search when a "quote" appeared in the release
FIX: "(Origninal)" to "(OM)" bug fix when it appeared in a release
# ---------------------------------------------------------------
# for v3.1 downwards please read 'Beatport by &stevehero v4.0#Version History + Readme (View In Notepad ++).src'


HOW TO USE THE SCRIPTS: **PLEASE READ CAREFULLY**
1. Download the "beatport_by_stevehero_vX.X.zip" file & extract it to "%appdata%\mp3tag\data\sources" directory. See this post for more info.

2. Click ▼ to have the choice of parsing beatport.com:
- RELEASE Direct by BEATPORT_RELEASE_ID (SHORT-CUT ALT>S>S>B)
- RELEASE Direct by WWW(URL) (SHORT-CUT ALT>S>S>W)
- RELEASE Search by Artist (SHORT-CUT ALT>S>S>A)
- RELEASE Search by (Album)Artist + Release (SHORT-CUT ALT>S>S>R)
- RELEASE Search by (Album)Artist + Title (SHORT-CUT ALT>S>S>T)
- RELEASE Search by Release (SHORT-CUT ALT>S>S>S)
- RELEASE Search by Title (SHORT-CUT ALT>S>S>E)
- SINGLE TRACK Direct by BEATPORT_TRACK_ID (SHORT-CUT NONE)
- SINGLE TRACK Direct by BEATPORT_TRACK_URL (SHORT-CUT NONE)
- SINGLE TRACK Direct by WWW(URL) (SHORT-CUT NONE)
- SINGLE TRACK Search by (Album)Artist + Title (SHORT-CUT NONE)
- SINGLE TRACK Search by Title (SHORT-CUT NONE)

2a. or Ctrl + I to use the same script as before.

WHAT IS OUTPUTTED WITH THE SCRIPT: **PLEASE READ CAREFULLY**
_TIME CHECK OUTPUTS length to this field as _LENGTH does not show when only one track in tag adjust window (See action in post)
ALBUM OUTPUTS release to album.
ALBUMARTIST OUTPUTS "VA" if beatport says so, which is 99% correct.
ALBUM ARTIST OUTPUTS ALBUMARTIST like above.
ALBUM [CATALOG #] APPENDS album/release with catalog no. to "ALBUM [CATALOG #]".
ARTIST OUTPUTS artist/s.
BEATPORT_ARTIST_URL OUTPUTS beatports URL of artist/s (This is a multi-field)
BEATPORT_ITEM_TYPE OUTPUTS beatports type (Track mostly)
BEATPORT_LABEL_URL OUTPUTS beatports URL of label.
BEATPORT_RELEASE_ID OUTPUTS ID of release you see at the end of the beatports url e.g. "438196".
BEATPORT_TRACK_ID OUTPUTS beatports track ID of each track.
BEATPORT_TRACK_URL OUTPUTS beatports track URL of each track.
BPM OUTPUTS bpm of each track.
CATALOG # OUTPUTS release catalog number.
COMMENT OUTPUTS INITIAL KEY field to it.
COMPILATION OUTPUTS "1" if ALBUMARTIST is 'VA'
COVERURL OUTPUTS release cover art @ 500x500px (if 500px cannot be found, it gets 60px version).
COUNTRY No longer available.
DATE OUTPUTS year to DATE in MMDD format.
DISCNUMBER USER DEFINED FIELD.
GENRE OUTPUTS genre and changes "Deep House" to "House Deep". (See options throughout scripts).
INITIAL KEY OUTPUTS key of each track.
^^^ TO CAMELOT NOTATION CHANGES values of INITIAL KEY to camelot notation . e.g. 'D#min' becomes '1A' (Delete between the headings if not needed)
ISRC No longer available.
MEDIATYPE USER DEFINED FIELD.
MIXARTIST OUTPUTS mixartist/s.
PUBLISHER OUTPUTS record label.
RELEASETIME OUTPUTS year to RELEASETIME in same format as whatever year is.
TRACK OUTPUTS track name/s.
TOTALDISKS USER DEFINED FIELD.
TOTALTRACKS OUTPUTS total amount of tracks on release.
TRACK / TOTALTRACKS OUTPUTS TRACK/TOTALTRACKS to TRACK.
UNSYNCEDLYRICS OUTPUTS release info you sometimes see under artwork e.g. "Time for another Fedde le Grand anthem!...".
WWW OUTPUTS url of release e.g. "www.beatport.com/release/so-much-love/438196".
YEAR OUTPUTS year in YYYY format.


DISABLING COMMANDS:
• See the .:: R E M O V E F I E L D S ::. section at bottom of scripts.

NOTES:
• Add these to your remove fields except action if you have one, to retain custom fields generated by this script: BEATPORT_LABEL_URL;BEATPORT_TRACK_ID;BEATPORT_TRACK_URL;BEATPORT_RELEASE_ID;BEAT
PORT_ARTIST_URL;BEATPORT_ITEM_TYPE


• Removed options for VA as beatports HTML pages now show whether this is so.

_LENGTH is now outputted to _LENGTH CHECK as _LENGTH does not appear when one track is been parsed (See action attached below to remove this field).

• I've tried to have all the options at the top of the script to enable you to modify them easier as the code is not spread out throughout the script but they are clearly label with OPTION. Please download notepad++ here and use this stylesheet Attached File  steveheros_Mp3Tag_Web_Sources_Language_for_Notpad__.zip ( 1.27K ) Number of downloads: 17139
I've created to enable much easier viewing than in normal notepad.

• The only other sections you should be concerned with are both the .:: C U S T O M I Z A T I O N S T A R T S ::. + .:: R E M O V E F I E L D S ::. sections.

CODE
# .:: C U S T O M I Z A T I O N   S T A R T S ::.
# • You can add your own web source scripting here
# • ONLY disable the ALBUM [CATALOG #] here
# • Disable the other fields in the .:: R E M O V E    F I E L D S ::. section below
# • To disable place a "#" in front of each line of code between the headings. e.g.
# ALBUM [CATALOG #]
        # outputto "ALBUM"
        # say " ["
        # sayoutput "CATALOG #"
        # say "]"
        # COMMENT

# .:: R E M O V E    F I E L D S ::.
# • To remove fields from parsing delete the # in front of 'set'
# • Only use this section to remove fields


Attached File  beatport_by_stevehero_v4.0_Actions.zip ( 336bytes ) Number of downloads: 17426


A BIG THANK YOU.
To pone for his invaluable help and guidance throughout V1.0 and for the TRACK/TOTALTRACKS fix and to Jaimz for the original code which got me scripting and developing/coding it to where it is now.

LEGACY SCRIPT: Attached File  beatport_by_stevehero_v4.0_Scripts.zip ( 56.89K ) Number of downloads: 18708




YOU CAN THANK ME BY DONATING **ANY AMOUNT WILL BE APPRECIATED**



Also, please feel free to comment

This post has been edited by stevehero: Jun 5 2017, 21:03


--------------------
Go to the top of the page
 
+Quote Post
pone
post Oct 5 2011, 00:42
Post #2


Member


Group: Full Members
Posts: 1692
Joined: 15-March 09
From: Germany
Member No.: 9103
Mp3tag Version: 2.59b



Nice to see the final version.
Good work!
Go to the top of the page
 
+Quote Post
stevehero
post Oct 5 2011, 01:12
Post #3


Member


Group: Full Members
Posts: 837
Joined: 3-December 10
From: Ireland
Member No.: 13334
Mp3tag Version: 2.84



QUOTE (pone @ Oct 5 2011, 00:42) *
Nice to see the final version.
Good work!

Thanks pone. Means a lot to hear you say that. :]


--------------------
Go to the top of the page
 
+Quote Post
chodor
post Oct 11 2011, 21:26
Post #4


Member


Group: Full Members
Posts: 5
Joined: 30-September 09
Member No.: 11017
Mp3tag Version: 2.49



Thanks a lot. Very useful and seems to work flawlessly!
Go to the top of the page
 
+Quote Post
dumdidum
post Oct 17 2011, 18:24
Post #5


Member


Group: Full Members
Posts: 20
Joined: 17-October 11
Member No.: 15443
Mp3tag Version: 2.49



hey,

i just registered to say thanks. great work! it blows my mind what can be done with the web sources scripts API.
Go to the top of the page
 
+Quote Post
Stomper
post Oct 17 2011, 22:03
Post #6


Member


Group: Full Members
Posts: 26
Joined: 23-July 07
Member No.: 5314
Mp3tag Version: v2.38



Any chance of this little beauty pulling the Key information of tracks? Is it offered in the api?
Go to the top of the page
 
+Quote Post
stevehero
post Oct 17 2011, 23:42
Post #7


Member


Group: Full Members
Posts: 837
Joined: 3-December 10
From: Ireland
Member No.: 13334
Mp3tag Version: 2.84



EDIT
The script now offers BPM and INITIAL KEY parsing. See starting post.

This post has been edited by stevehero: Sep 16 2012, 11:59


--------------------
Go to the top of the page
 
+Quote Post
Papo
post Nov 8 2011, 02:52
Post #8


Member


Group: Members
Posts: 2
Joined: 7-November 11
Member No.: 15551
Mp3tag Version: 2.49



For some reason, when I try to tag by URL, it says the following:

"Error connecting to server: http://api.beatport.com"

This is the URL of one of the songs I am trying to tag.

http://www.beatport.com/track/so-much-love...lub-mix/2439233
Go to the top of the page
 
+Quote Post
stevehero
post Nov 9 2011, 02:06
Post #9


Member


Group: Full Members
Posts: 837
Joined: 3-December 10
From: Ireland
Member No.: 13334
Mp3tag Version: 2.84



QUOTE (Papo @ Nov 8 2011, 01:52) *
For some reason, when I try to tag by URL, it says the following:

"Error connecting to server: http://api.beatport.com"

This is the URL of one of the songs I am trying to tag.

http://www.beatport.com/track/so-much-love...lub-mix/2439233

Your error relates to using the wrong URL to parse beatport.com. Instead of using the track url use the release one such as http://www.beatport.com/release/so-much-love/438196 whereas track is like the url you posted relates to the individual track itself.

The script is not intended for individual tracks. The way I use it if there I have only one track from a release But in is to parse the album it relates too.

But in your case the track you are parsing is the only one on your realease.


--------------------
Go to the top of the page
 
+Quote Post
stevehero
post Nov 17 2011, 03:06
Post #10


Member


Group: Full Members
Posts: 837
Joined: 3-December 10
From: Ireland
Member No.: 13334
Mp3tag Version: 2.84



UPDATE VERSION 1.1 OF 'BEATPORT.COM SCRIPTS BY STEVEHERO'

1. added a search by title script.
2. added leading zeros to track and totaltracks.
3. added output of TRACK / TOTALTRACKS

See this post for update.


--------------------
Go to the top of the page
 
+Quote Post
aberger
post Nov 19 2011, 13:18
Post #11


Member


Group: Members
Posts: 3
Joined: 24-March 09
Member No.: 9298
Mp3tag Version: 2.42



QUOTE (Papo @ Nov 8 2011, 02:52) *
For some reason, when I try to tag by URL, it says the following:
"Error connecting to server: http://api.beatport.com"


Had the same problem and could fix it by applying the following changes to the source-files:

Change the line with
[AlbumUrl]=http://api.beatport.com/catalog/releases/detail?v=1.0&format=xml&id=
to
[AlbumUrl]=http://api.beatport.com

and then change
regexpreplace ">\s+<" "><"
findinline "<release"

to
regexpreplace ">\s+<" "><"
say "/catalog/releases/detail?v=1.0&format=xml&id="
findinline "<release"


Hope this helps

adrian
Go to the top of the page
 
+Quote Post
The Sheriff
post Dec 11 2011, 21:02
Post #12


Member


Group: Full Members
Posts: 22
Joined: 28-March 09
From: Liverpool, UK
Member No.: 9368
Mp3tag Version: 2.49a



Firstly thanks stevehero, dano and pone for these fantastics scripts. I only discovered the web sources forum yesterday and I've been tagging using the scripts since.

Ok the problem I'm having is that I'm happy with the existing ARTIST fields of the releases I'm tagging using the Steve's beatport script so I've been trying to customise it slightly so that this field is skipped when it comes to tagging. Not having much look I'm afraid.

Firstly I tried commenting out, using #, the lines below but the script no longer works properly when I do this (attachment 1)

# ARTIST
findline "<performer"
unspace
joinuntil "</track>"
regexpreplace ">\s+<" "><"
regexpreplace "<performer ref=\"([^\"]+)\"[^>]+><name>([^\"]+)</name></performer>" "<$1>$2"
outputto "Artist"
sayregexp "(?<=<Artist>)[^<]+" "\\\\" "</track>"
say "|"
gotochar 1



I've also tried commenting out only the line that says...

outputto "Artist"


... but that doesn't work correctly either (attachment 2). The GENRE field gets muddled up for want of a better word!

It's as if the script requries the artist field to be written. Can anyone help me with this?

Cheers,
Pau.

Attached thumbnail(s)
Attached Image
Attached Image
 
Go to the top of the page
 
+Quote Post
pone
post Dec 11 2011, 21:35
Post #13


Member


Group: Full Members
Posts: 1692
Joined: 15-March 09
From: Germany
Member No.: 9103
Mp3tag Version: 2.59b



comment-out only the say... parts at the artist section:
QUELLTEXT
#sayregexp "(?<=<Artist>)[^<]+" "\\\\" "</track>"
#say "|"

that should work.


or simply set artist to zero at the end of the script. or almost at the end, but before the "track fix" section, if you get a strange output at track and title.
QUELLTEXT
set "artist"


This post has been edited by pone: Dec 11 2011, 21:35
Go to the top of the page
 
+Quote Post
The Sheriff
post Dec 11 2011, 23:29
Post #14


Member


Group: Full Members
Posts: 22
Joined: 28-March 09
From: Liverpool, UK
Member No.: 9368
Mp3tag Version: 2.49a



QUOTE (pone @ Dec 11 2011, 20:35) *
comment-out only the say... parts at the artist section:
CODE
#sayregexp "(?<=<Artist>)[^<]+" "\\\\" "</track>"
#say "|"

that should work.

or simply set artist to zero at the end of the script. or almost at the end, but before the "track fix" section, if you get a strange output at track and title.
CODE
set "artist"


Thanks pone, that works great. I've also been playing around with the script and made some changes to prevent other fields being written and it's working really well

CODE
set "albumartist"
set "album artist"


Maybe you can help me with the issue I'm having with the DATE field? It's read in the script in the format MMDD whereas all my other previously tagged files are in DDMM format. Pone you helped me with this in this topic but I'm lost at how the regular expression you gave me would work otuside the main program and in a script.

Many thanks,
Paul







Go to the top of the page
 
+Quote Post
pone
post Dec 12 2011, 00:26
Post #15


Member


Group: Full Members
Posts: 1692
Joined: 15-March 09
From: Germany
Member No.: 9103
Mp3tag Version: 2.59b



ZITAT(The Sheriff @ Dec 11 2011, 23:29) *
Maybe you can help me with the issue I'm having with the DATE field? It's read in the script in the format MMDD whereas all my other previously tagged files are in DDMM format. Pone you helped me with this in this topic but I'm lost at how the regular expression you gave me would work otuside the main program and in a script.


put this line
QUELLTEXT
regexpreplace "(\d\d\d\d)-(\d\d)-(\d\d)" "$1-$3-$2"

after
QUELLTEXT
findline "<dateReleased>"

at the DATE section.


or


change this
QUELLTEXT
indinline "-"
sayuntil "-"
findinline "-"
sayuntil "</"

into this
QUELLTEXT
findinline "-" 2
sayuntil "</"
findinline "-" -1
movechar -1
sayuntil "-"

at the DATE section



@ stevehero:
I hope you don't mind me messing up your script wink.gif
Go to the top of the page
 
+Quote Post

30 Pages V   1 2 3 > » 
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 23rd November 2017 - 19:17