# \[WS\] Beatport.com by stevehero \[Release, Single Track & Artwork tagging\]

**URL:** https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568
**Category:** Web Sources Scripts
**Created:** [October 4, 2011, 9:07pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568 "2011-10-04T21:07:57Z")
**Posts on this page:** 20
**Page:** 37

<div class="post-metadata">

### Author: ![m4573r](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/f17d59/32.png) [@m4573r](https://community.mp3tag.de/u/m4573r)
#### Post date: [November 17, 2020, 1:49pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/730 "2020-11-17T13:49:46Z")

</div>

I think you have an error since version 4 in that regex: missing the backslash before the `.com`. It's `[^\s]+\.com`

---

<div class="post-metadata">

### Author: ![stevehero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/stevehero/32/337_2.png) [@stevehero](https://community.mp3tag.de/u/stevehero)
#### Post date: [November 17, 2020, 2:52pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/731 "2020-11-17T14:52:29Z")

</div>

In that example it's wrong but the latest scripts are all correct.

---

<div class="post-metadata">

### Author: ![Ninja\_Theory](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ninja_theory/32/11626_2.png) [@Ninja\_Theory](https://community.mp3tag.de/u/Ninja_Theory)
#### Post date: [November 19, 2020, 9:31pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/732 "2020-11-19T21:31:42Z")

</div>

@stevehero your work is fantastic. I'm not sure what changed in the past few weeks as I stopped using the script while it was not working because of some changes Beatport made, but I can say that now my 'search track by filename' seems to be more accurate and is returning results very fast.

---

<div class="post-metadata">

### Author: ![stevehero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/stevehero/32/337_2.png) [@stevehero](https://community.mp3tag.de/u/stevehero)
#### Post date: [November 19, 2020, 9:51pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/733 "2020-11-19T21:51:29Z")

</div>

The search part is written with json functions now so that may be why it's faster. Thanks for the feedback.

---

<div class="post-metadata">

### Author: ![fee4a](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/c68b51/32.png) [@fee4a](https://community.mp3tag.de/u/fee4a)
#### Post date: [November 27, 2020, 7:16am UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/734 "2020-11-27T07:16:52Z")

</div>

thank you and your team for this great script  
changed the code in some places and everything continues to work  
I could not figure out how I can add 2 additional pictures: a large logo of the label and a spectrum (fish, in png format)

- how you can display the format of the processed file (mp3, aiff)  
tell me please

---

<div class="post-metadata">

### Author: ![stevehero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/stevehero/32/337_2.png) [@stevehero](https://community.mp3tag.de/u/stevehero)
#### Post date: [November 27, 2020, 10:13am UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/736 "2020-11-27T10:13:44Z")

</div>

I don't understand. Can you explain a bit more what you mean?

---

<div class="post-metadata">

### Author: ![fee4a](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/c68b51/32.png) [@fee4a](https://community.mp3tag.de/u/fee4a)
#### Post date: [November 27, 2020, 11:35am UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/737 "2020-11-27T11:35:31Z")

</div>

don't know Json so well  
let's look at an example  
`https://www.beatport.com/track/hold-up-original-mix/14477010`

Cover (front) (we have this) (500x500)  
`http://media.beatport.com/image/4a1c4106-a95d-4190-903b-9072ca3dc979.jpg`  
A bright coloured fish (don't have) (1500x250)  
`https://media.beatport.com/image/f025c095-dfc2-4577-a15b-15274e2afdfb.png`  
Publisher/Studio logotype (don't have) (500x500)  
`https://media.beatport.com/image/9acd9cce-5196-481f-b703-e5f20e114d57.jpg`

if you open the original bought in Beatport you will see all these pictures

about display in tags the format of the processed file (mp3, aiff)  
maybe it is possible to use the technology as in the search by filename - when we open this window, the line is auto-filled with the file name itself

---

<div class="post-metadata">

### Author: ![stevehero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/stevehero/32/337_2.png) [@stevehero](https://community.mp3tag.de/u/stevehero)
#### Post date: [November 27, 2020, 12:32pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/738 "2020-11-27T12:32:53Z")

</div>

The 2nd is the waveform which is not required IMO. And the other is the publisher. If you want more than one artwork it's not possible to do with scripts. It is however possible to do inside the program. You can ask on the forum in the section for adding features to add the ability to add artwork similar to how mp3tag does it in program for Web source framework.

Regards, the filename. There's only filename available for the TRACK scripts. And this just does that. There's no need to add the extension here. If I understand correctly what you mean.

---

<div class="post-metadata">

### Author: ![fee4a](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/c68b51/32.png) [@fee4a](https://community.mp3tag.de/u/fee4a)
#### Post date: [November 27, 2020, 6:31pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/739 "2020-11-27T18:31:36Z")

</div>

thanks for the answer  
understood the tip - I'll ask in another forum section  
the only reference to the cover is -  
outputto "COVERURL"  
json\_select\_object "images"  
json\_select\_object "large"  
json\_select "url"  
json\_unselect\_object  
json\_unselect\_object  
but how to try referring to the other two necessary pictures?

about the extension - just asked if it was possible to add to the tags the format of the file being processed, obtained from the file name itself (if we work with mp3, then mp3 is inserted in the tags; if with an aiff, then an aiff is displayed). as I understood this, too, in scripts will not work.  
I did this (because I work more with Aiff)  
`# FILETYPE`  
outputto "FILETYPE"  
say "AIFF"

found one moment  
when choosing a track from a release, I choose 2, but the tags are still taken from the first  
used the default script of the latest version

 ![name](https://community.mp3tag.de/uploads/default/original/2X/1/13710265ced6cb6dd29dd75ed1ddb630b034dcf5.jpeg)

and one more question  
how can I enter in tags ISRC field  
can it be pulled from Json?

---

<div class="post-metadata">

### Author: ![stevehero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/stevehero/32/337_2.png) [@stevehero](https://community.mp3tag.de/u/stevehero)
#### Post date: [November 27, 2020, 7:19pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/740 "2020-11-27T19:19:16Z")

</div>

You cannot outputto any other image like the program itself can do. You may request this to be added in the relevant part of the forum.

No, script cannot tell what the file format is so this is not possible. Maybe you could ask for this also.

You have to process each track individually for the TRACK scripts. Otherwise you use the RELEASE ones.

ISRC is not available (I think). Open a Web page for a Beatport release and in chrome right click and view page source and search for ISRC. But I didn't notice it when writing the scripts.

---

<div class="post-metadata">

### Author: ![fee4a](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/c68b51/32.png) [@fee4a](https://community.mp3tag.de/u/fee4a)
#### Post date: [November 27, 2020, 8:20pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/741 "2020-11-27T20:20:48Z")

</div>

thanks for the answer  
in the application itself, you can add additional images (I found this), I did not find how to access these images so that they are written into tags (in the script)  
if, after adding, you look at the tags in another program, then they (all 3) will be the same name (cover front)

where could I ask for the file format?

"You have to process each track individually for the TRACK scripts. Otherwise you use the RELEASE ones."  
I did not understand this. I have only Club mix, it is one in the folder. I only clicked on him.

I also didn't find it in the ISRC page code.  
but it is in the Beatport Pro for Desktop application (if you need to skin the distribution kit) or on the sites (their base is not complete compared to Beatport)

`https://isrcsearch.ifpi.org/#!/search`

`https://repsearch.ppluk.com/ars/faces/pages/audioSearch.jspx?_afrLoop=263754017945350&_afrWindowMode=0&_adf.ctrl-state=979qyb9f2_4`

---

<div class="post-metadata">

### Author: ![stevehero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/stevehero/32/337_2.png) [@stevehero](https://community.mp3tag.de/u/stevehero)
#### Post date: [November 27, 2020, 8:35pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/742 "2020-11-27T20:35:18Z")

</div>

You can only write one image. That's all.

Ask in the general section of this forum (here [https://community.mp3tag.de/c/general/20](https://community.mp3tag.de/c/general/20)) you can request this. Ask for an `outputto` function for Web source scripts for the same types as mp3tag itself.

In your screenshot you've got two files in the info panel. Select one of them at a time and run any of the TRACK scripts.

In that case there is no ISRC to parse.

---

<div class="post-metadata">

### Author: ![fee4a](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/c68b51/32.png) [@fee4a](https://community.mp3tag.de/u/fee4a)
#### Post date: [November 27, 2020, 8:50pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/743 "2020-11-27T20:50:45Z")

</div>

I got it, thanks for the help  
but this

 ![name](https://community.mp3tag.de/uploads/default/original/2X/3/3a60be20aee4d5e00749482a55848fbfc2378bae.jpeg)

sorry, I did not understand this

 ![name2](https://community.mp3tag.de/uploads/default/original/2X/9/9d24bcd486896f23179435af3c5a2dbcd356ac79.jpeg)

---

<div class="post-metadata">

### Author: ![stevehero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/stevehero/32/337_2.png) [@stevehero](https://community.mp3tag.de/u/stevehero)
#### Post date: [November 27, 2020, 10:45pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/744 "2020-11-27T22:45:44Z")

</div>

Read the starting post. There is an action that separates those to two fields.

---

<div class="post-metadata">

### Author: ![fee4a](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/c68b51/32.png) [@fee4a](https://community.mp3tag.de/u/fee4a)
#### Post date: [November 28, 2020, 11:12am UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/745 "2020-11-28T11:12:49Z")

</div>

I understood, just not from your explanations.  
you need to put the file in the right window of the track in accordance with the left window  
thanks again

---

<div class="post-metadata">

### Author: ![AndreyN](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/e36b37/32.png) [@AndreyN](https://community.mp3tag.de/u/AndreyN)
#### Post date: [December 6, 2020, 10:52am UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/746 "2020-12-06T10:52:34Z")

</div>

How to make track numbering like 01/03, etc.?

---

<div class="post-metadata">

### Author: ![stevehero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/stevehero/32/337_2.png) [@stevehero](https://community.mp3tag.de/u/stevehero)
#### Post date: [December 6, 2020, 11:12am UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/747 "2020-12-06T11:12:28Z")

</div>

Cannot do it with JSON as there's no way to get the track number when there's no property. I don't bother with doing that format. But I believe the html code has the track numbers. But I don't have time to look at this.

I've requested a count inside an array loop for situations where there's no track numbers in json so you can plus one this thread.

> [@JSON Parsing - Counting inside an array, not the array itself](https://community.mp3tag.de/t/json-parsing-counting-inside-an-array-not-the-array-itself/50614):
>
> Is it possible to have a counter in a json\_foreach loop after selection of an object? The reason I ask is I want to check the component after selecting it and if it says Release Track Listing then count each. Here's the code snippet: outputto "TOTALTRACKS" json\_foreach "tracks" json\_select "component" if "Release Track Listing" ## Here is where I would like to count inside the if statement. endif json\_foreach\_end

---

<div class="post-metadata">

### Author: ![fee4a](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/c68b51/32.png) [@fee4a](https://community.mp3tag.de/u/fee4a)
#### Post date: [December 6, 2020, 9:19pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/748 "2020-12-06T21:19:56Z")

</div>

if we can take COVERURL and it is displayed as Front Cover in tags, in theory, we can take COVERURL2 so that it is displayed as Publisher Logotype (the program recognizes different covers by type)  
the program can also write many different covers to tags and not indicate their type  
what do you need to write in the code for this?

---

<div class="post-metadata">

### Author: ![get8p](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/g/b9bd4f/32.png) [@get8p](https://community.mp3tag.de/u/get8p)
#### Post date: [December 9, 2020, 6:46am UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/749 "2020-12-09T06:46:23Z")

</div>

Any idea how to fix the "URI must contain a hostname" error? Rocking v3.04a

---

<div class="post-metadata">

### Author: ![stevehero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/stevehero/32/337_2.png) [@stevehero](https://community.mp3tag.de/u/stevehero)
#### Post date: [December 9, 2020, 9:29am UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/750 "2020-12-09T09:29:33Z")

</div>

This is the first I've heard about COVERURL2. Where is this in the help pages or forum?

[Previous page](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568.md?page=36)

[Next page](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568.md?page=38)
