# \[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:** 45

<div class="post-metadata">

### Author: ![owlcatz](https://community.mp3tag.de/user_avatar/community.mp3tag.de/owlcatz/32/9883_2.png) [@owlcatz](https://community.mp3tag.de/u/owlcatz)
#### Post date: [January 4, 2022, 12:53am UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/893 "2022-01-04T00:53:44Z")

</div>

Just curious, but where is the code where I can have "Mainstage" replaced with "Electro House" instead?

Thanks! 🙂

---

<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: [January 4, 2022, 3:06pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/894 "2022-01-04T15:06:53Z")

</div>

> [@stevehero](#):
>
> ```auto
> # regexpreplace "(releaseddate\":\s*\")(\d\d\d\d)-(\d\d)-(\d\d)" "$1$3$4" # DATE in MMDD format
> 
> ```

Put this before `outputto GENRE`

```auto
replace "Mainstage" "Electro House"

```

Although Mainstage isn't really that genre.

---

<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: [January 4, 2022, 3:07pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/895 "2022-01-04T15:07:33Z")

</div>

Put this before `outputto GENRE`

```auto
replace "Mainstage" "Electro House"

```

Although Mainstage isn't really that genre.

---

<div class="post-metadata">

### Author: ![owlcatz](https://community.mp3tag.de/user_avatar/community.mp3tag.de/owlcatz/32/9883_2.png) [@owlcatz](https://community.mp3tag.de/u/owlcatz)
#### Post date: [January 4, 2022, 4:35pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/896 "2022-01-04T16:35:19Z")

</div>

> [@stevehero](#):
>
> `replace "Mainstage" "Electro House"`

Roger that, was just using as an example to figure out how to change other things/how it worked! Thanks again, I think I bought you a 🍻 a while back, I appreciate the support! 🙂

---

<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: [January 4, 2022, 4:51pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/897 "2022-01-04T16:51:08Z")

</div>

Thank you for the support. 🙃

---

<div class="post-metadata">

### Author: ![owlcatz](https://community.mp3tag.de/user_avatar/community.mp3tag.de/owlcatz/32/9883_2.png) [@owlcatz](https://community.mp3tag.de/u/owlcatz)
#### Post date: [January 4, 2022, 4:55pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/898 "2022-01-04T16:55:04Z")

</div>

It's worth it, love your scripts -

So I tried this, but it's still outputting mainstage ??

```auto
replace "Mainstage" "Electro-House"
outputto "GENRE"
json_select_many "genres" "name" ", "
sayrest
say "|"

```

(Script I'm editing/using is "Beatport by &stevehero v5.0\_Release Search.inc", in the JSON parsing section - Do I need to do it in the next section instead?) 🤔

Thanks again/Sorry!

---

<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: [January 4, 2022, 5:23pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/899 "2022-01-04T17:23:54Z")

</div>

The better way would be to place this in the GENRE fix code section. The `regexreplace` function is better using `(?i)` as it'll find **Mainstage** no matter what case it may be.

Replace:

```auto
# GENRE
# regexpreplace ",\"genres\":\[.+?name\":\"([^\"]+)[^]]+\]" "trackGenre>>$1>" # Fix
# regexpreplace "(trackGenre>>)(Dee|Ele|Min|Pro|Tec)(.+?)\s?(House)?.{0}>" "$1$4 $2$3>" # 'Progressive House' to 'House Progressive'
# replace "trackGenre>>House Progressive>" "trackGenre>>House Prog>" # 'Progressive House' to 'House Prog'

```

With:

```auto
# GENRE
# regexpreplace ",\"genres\":\[.+?name\":\"([^\"]+)[^]]+\]" "trackGenre>>$1>" # Fix
# regexpreplace "(trackGenre>>)(Dee|Ele|Min|Pro|Tec)(.+?)\s?(House)?.{0}>" "$1$4 $2$3>" # 'Progressive House' to 'House Progressive'
# replace "trackGenre>>House Progressive>" "trackGenre>>House Prog>" # 'Progressive House' to 'House Prog'
regexpreplace "(?i)Mainstage" "Electro-House"

```

**Do this for all the .inc files.**

---

<div class="post-metadata">

### Author: ![xaoc](https://community.mp3tag.de/user_avatar/community.mp3tag.de/xaoc/32/12614_2.png) [@xaoc](https://community.mp3tag.de/u/xaoc)
#### Post date: [January 12, 2022, 1:34pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/900 "2022-01-12T13:34:04Z")

</div>

Big Room too Mainstage  
[Crossfit Collection 005](https://www.beatport.com/release/crossfit-collection-005/3426006)

---

<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: [January 12, 2022, 11:21pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/901 "2022-01-12T23:21:24Z")

</div>

That's a **very** cryptic message. 👀

---

<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: [January 22, 2022, 10:01pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/902 "2022-01-22T22:01:25Z")

</div>

I posted this ahk file over here [AHK to auto run a Web Source Script from outside Mp3tag](https://community.mp3tag.de/t/ahk-to-auto-run-a-web-source-script-from-outside-mp3tag/52002)

It allows you to select an album in foobar2000 and tag a release for Beatport.

There's a small bug that it doesn't always work in Mp3tag so I thought if anyone in this thread could **help fix it** and has more experience with writing AutoHotKey scripts then I'd be forever grateful for the help.

It's a problem with this line I think

`WinWaitActive ^Mp3tag.*?\\ ; ensure main window is open`

It does work about 75% of the time and I find it really useful. 🙂

---

<div class="post-metadata">

### Author: ![pashok326](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/a587f6/32.png) [@pashok326](https://community.mp3tag.de/u/pashok326)
#### Post date: [January 25, 2022, 1:35pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/903 "2022-01-25T13:35:06Z")

</div>

Hey, guys! Please, help me with one note.  
When running the script, I get error WinHttpReceiveResponse 12002 (the operation timed out). At the same time, the beatport site works normally, without problems.  
I don't even know what to do. And added to the hosts, and the closed firewall,... advise something

![12002](https://community.mp3tag.de/uploads/default/original/2X/c/cdf9da0cea78be1c57d5b8ccb2c25f2d030f662d.png)

---

<div class="post-metadata">

### Author: ![owlcatz](https://community.mp3tag.de/user_avatar/community.mp3tag.de/owlcatz/32/9883_2.png) [@owlcatz](https://community.mp3tag.de/u/owlcatz)
#### Post date: [January 25, 2022, 1:46pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/904 "2022-01-25T13:46:45Z")

</div>

Do you have any of the scripts (Locked) open in an editor? Try closing them if so...

---

<div class="post-metadata">

### Author: ![pashok326](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/a587f6/32.png) [@pashok326](https://community.mp3tag.de/u/pashok326)
#### Post date: [January 25, 2022, 1:53pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/905 "2022-01-25T13:53:55Z")

</div>

No, all scripts are free and unlocked, not editing

---

<div class="post-metadata">

### Author: ![owlcatz](https://community.mp3tag.de/user_avatar/community.mp3tag.de/owlcatz/32/9883_2.png) [@owlcatz](https://community.mp3tag.de/u/owlcatz)
#### Post date: [January 25, 2022, 2:05pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/906 "2022-01-25T14:05:58Z")

</div>

Is your internet connection stable/without issue?

"Error: 12002. Your agents are showing Error: 12002, "(WinHttp) The **request has timed out**". This error indicates that the agent has resolved the DNS name of the cloud endpoint but cannot establish a connection to that endpoint. ... One reason for this is intermittent or faulty connectivity between the client and the cloud."

Also, if you made any changes, you can also try reverting to the default scripts in the download.... I had issues like this off and on whilst editing and testing, but they are gone now. 🤷‍♂️

---

<div class="post-metadata">

### Author: ![pashok326](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/a587f6/32.png) [@pashok326](https://community.mp3tag.de/u/pashok326)
#### Post date: [January 25, 2022, 3:27pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/907 "2022-01-25T15:27:22Z")

</div>

I replaced SRC, but result is the same...  
Maybe there is some utility when catch the blocking process...

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [January 25, 2022, 3:27pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/908 "2022-01-25T15:27:52Z")

</div>

A test whether MP3tag has internet access is to call the function Help\>Check for updates.  
If no message appears (neither saying there are nor saying there aren't) then MP3tag has no internet access.

---

<div class="post-metadata">

### Author: ![pashok326](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/a587f6/32.png) [@pashok326](https://community.mp3tag.de/u/pashok326)
#### Post date: [January 25, 2022, 3:30pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/909 "2022-01-25T15:30:45Z")

</div>

yes... the update message doesnt pop up... What could it be? Why did the app losing internet connection? Other programs and services are works, Internet connection enabled

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [January 25, 2022, 3:32pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/910 "2022-01-25T15:32:30Z")

</div>

hard to say as this is completly local to your pc. Usually it is some kind of firewall or other network protection program. Can't give you any further details as I don't know what is going on on your pc.

---

<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: [January 25, 2022, 8:21pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/911 "2022-01-25T20:21:29Z")

</div>

> [@owlcatz](#):
>
> Error: 120

If it's local to your PC you could try a sandbox environment which is like a fresh install.

[https://www.howtogeek.com/399290/how-to-use-windows-10s-new-sandbox-to-safely-test-apps/](https://www.howtogeek.com/399290/how-to-use-windows-10s-new-sandbox-to-safely-test-apps/)

---

<div class="post-metadata">

### Author: ![jj0999](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/bb73d2/32.png) [@jj0999](https://community.mp3tag.de/u/jj0999)
#### Post date: [February 13, 2022, 3:08pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/912 "2022-02-13T15:08:06Z")

</div>

Hi @stevehero,

Script is working well for me. I typically use "Track Search", but I'd like to set my Comment field to "INITIALKEY - BPM".

I cannot get my Comment tag to change. Looking at the script, you seem to set it to the INITIALKEY but even that doesn't work for me. I did get `INITIALKEY` to show as extended tag though. What am I missing here?

```auto
# COMMENT
outputto "COMMENT"
sayoutput "INITIALKEY"

```

p.s. is there a way to run single track search on a large number of files? I have automated this away with AHK for now, but it's not ideal.

```auto
^+t::

; #SingleInstance, Force
; SendMode Input
; SetWorkingDir, %A_ScriptDir%

InputBox, UserInput, Loop, How many tracks to go over?., , 640, 480

Loop, %UserInput%
{
    SetKeyDelay , 100, ,
    Send, {Alt down}s, s, l{Alt up}
    WinWaitActive, "Search by", , 2, ,
    Send, {Alt down}n{Alt up}
    WinWaitActive, "List of search", , 5, ,
    Send, {Alt down}n{Alt up}
    WinWaitActive, , "Adjust tag information", 10, ,
    Send, {Alt down}o{Alt up}
    WinWaitActive, ,"Do you want to keep the existing covers" , 2, ,
    Send, {Alt down}n{Alt up}
    Sleep 1000
    Send, {Down}
}

```

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

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