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

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

Thanks! :slight_smile:

Put this before outputto GENRE

replace "Mainstage" "Electro House"

Although Mainstage isn't really that genre.

Put this before outputto GENRE

replace "Mainstage" "Electro House"

Although Mainstage isn't really that genre.

1 Like

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 :beers: a while back, I appreciate the support! :slight_smile:

1 Like

Thank you for the support. :upside_down_face:

It's worth it, love your scripts -

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

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?) :thinking:

Thanks again/Sorry!

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:

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

# 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.

1 Like

Big Room too Mainstage
Crossfit Collection 005

That's a very cryptic message. :eyes:

1 Like

I posted this ahk file over here AHK to auto run a Web Source Script from outside Mp3tag

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. :slight_smile:

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

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

No, all scripts are free and unlocked, not editing

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. :man_shrugging:

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

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.

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

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.

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/

1 Like

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?

# 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.

^+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}
}