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

<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:** [April 16, 2020, 11:31pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/609 "2020-04-16T23:31:06Z")

</div>

What you have done should work as far as I can tell.

You might want to start a new thread on the bug section for @Florian to look at. I can't get the output you are after even when I out that part in the loop for the tracks.

Like so:

```auto
....
outputto "BEATPORT_ARTIST_URL" # BEATPORT_ARTIST_URL
findinline "artistList" 1 1
sayregexp "(?<=<a href=\")[^\"]+" "\\u005c\\u005c" "\"genreList\""
say "|"

# INITIALKEY TO ROONTRACKTAG BY NINJA_THEORY
outputto "ROONTRACKTAG"
say "["
sayoutput "INITIALKEY"
say "]"
say "|"

outputto "TRACKS"
say "|"

```

---

<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:** [April 17, 2020, 11:29am UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/610 "2020-04-17T11:29:46Z")

</div>

Thanks Steve. It's not a big deal. I am using track by filename to start my tagging process (in order to ensure I capture the actual date the track was released). Often I buy tracks on albums different from their release albums and this messes up the true release year data. So track by filename ensures I capture the correct year. Then I run a release search -- I just removed the INITIALKEY brackets from the release search because the track search is inserting that fine without issues. So all is well for now. Thanks for the excellent advice as always.

---

<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:** [April 17, 2020, 1:36pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/611 "2020-04-17T13:36:56Z")

</div>

I see what you mean. It would be nice for beatport to have that data in the release pages so it can be parsed, but alas, it's not.

---

<div class="post-metadata">

**Author:** ![woistvincent](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/w/c6cbf5/32.png) [@woistvincent](https://community.mp3tag.de/u/woistvincent)\
**Post date:** [May 2, 2020, 10:53pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/612 "2020-05-02T22:53:59Z")

</div>

Hey There,  
first of all thank you for all the input and the great scripts which are constantly improving. It helped me a lot already.  
I'm Using the Single Track Search by Artist and Title Script.

But as some others mentioned already it would really help me if there would be some kind of batch processing. I understand why its not making sense in the first place but in my collection there are many standalone tracks which have to be edited all on their own.

Would there be any possibility to let the script automatically choose the first search result which I experienced is the correct result most of the time?

Thanks in Advance!

---

<div class="post-metadata">

**Author:** ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)\
**Post date:** [May 3, 2020, 7:37am UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/613 "2020-05-03T07:37:21Z")

</div>

Since the Initialykey is filled inside a loop, and a` say "|"` is used right after it you cannot get it's value wihtout a " **|**" at the end which splits your "]" away.  
So the easiest way to get your custom tag is to create it at the same place.  
I've added it here:  
[\_temp Beatport by &stevehero v4.4#RELEASE Search by (Album)Artist &Release.zip](https://community.mp3tag.de/uploads/short-url/n2GU83AxMaMJdWFnvIgUDUhpg62.zip) (5.7 KB)

---

<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:** [May 3, 2020, 3:36pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/614 "2020-05-03T15:36:35Z")

</div>

> [@woistvincent](#):
>
> let the script automatically choose the first search result

Up to Florian to implement this I'm afraid. This could be a feature request whereby if the loop counter in the search part of the script is 1, then the script would automatically skip that info dialog seeing as the info dialog would only show 1 result anyway.

Create a new thread of this above if you like and quote the same.

But as far as automating the process of each file. I doubt that would be easily implemented.

> [@dano](#):
>
> So the easiest way to get your custom tag is to create it at the same place.

Thanks for digging me out of that embarrassing hole!

---

<div class="post-metadata">

**Author:** ![atydigital](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/5daacb/32.png) [@atydigital](https://community.mp3tag.de/u/atydigital)\
**Post date:** [June 14, 2020, 5:47pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/615 "2020-06-14T17:47:48Z")

</div>

Hi everybody!

I am, beginer rookie.  
I want to embed the "Classic" initial key TAG in the title of the numbers.  
How can I do that?

---

<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:** [June 18, 2020, 8:32pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/616 "2020-06-18T20:32:33Z")

</div>

What do you mean in the title `"by the numbers"` ?

---

<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:** [June 18, 2020, 8:38pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/617 "2020-06-18T20:38:17Z")

</div>

Hi @stevehero is there a way to make `search track by filename` (alt-S + alt-S + alt-L) to include the album catalog number as well as the Beatport Track ID as well. I think I messed something up with all my tweaking as I'm not getting Beatport Track ID with this search. I know album catalog number will require some additional lines in the script but I don't know what (or where) to make this change.

---

<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:** [June 18, 2020, 8:47pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/618 "2020-06-18T20:47:40Z")

</div>

Read through the script. It'll tell you what to do. You comment out the relevant section with a `#` at the beginning of each of those lines.

It's in this thread. If you use the search function in this thread you'll get it.

Welcome to the forum.

---

<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:** [June 18, 2020, 8:49pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/619 "2020-06-18T20:49:51Z")

</div>

Redownload the script if you've made too many mistakes and add the tag you want to the line `[SearchBy]`

---

<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:** [June 19, 2020, 9:26am UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/620 "2020-06-19T09:26:00Z")

</div>

Hi Steve. The problem I'm having is that I can't get the search by filename SRC to **also pull the catalog #**. I can only get the Beatport Track ID. If you have a moment at any time, can you perhaps have a quick look at the SRC file that I use - this is the one? I have lots of custom edits in. The only tag not pulling at all is catalog # (the tag for the release catalog #).

[\_temp Beatport by &stevehero v4.4#SINGLE TRACK Search by Fi&Lename.src](https://community.mp3tag.de/uploads/short-url/aEhYzUXWu8frcHA5XW7dDFy7wLM.src) (19.8 KB)

---

<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:** [June 19, 2020, 12:45pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/621 "2020-06-19T12:45:15Z")

</div>

I don't have time atm. Best bet is to use a file comparison program and compare your file with its equivalent that you freshly downloaded to see what may have changed for that particular section.

Here's winmerge. But there are others also. [https://winmerge.org/?lang=en](https://winmerge.org/?lang=en)

---

<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:** [June 19, 2020, 4:47pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/622 "2020-06-19T16:47:07Z")

</div>

Hi where do I place `&sortBy=publishDate+DESC` to sort titles returned by the title release date? I don't understand where "at the end of %s " is.

```
[Name]=beatport.com [v4.4 by stevehero™] (◣_◢)
[BasedOn]=http://classic.beatport.com
[IndexUrl]=http://classic.beatport.com/search?&perPage=25&facets%5B%5D=fieldType:track&query=%s
# Place &sortBy=publishDate+DESC at the end of %s if you want releases sorted by date.
[AlbumUrl]=
[WordSeperator]=+
[IndexFormat]=%_URL%|% (◣_◢)™%|% ↓ TIME%|% ↓ EX%|% ↓ TRACK ID%|% ↓ TITLE%|% ↓ ARTIST/S%|% ↓ REMIXER/S%|% ↓ ON RELEASE%|% ↓ OUT ON%|
[SearchBy]=[FILENAME for SINGLE TRACK]$trim($regexp($regexp($regexp(%_filename%,'\b-\b|_', ),'(?i)\[.*\]|cd\s*\d*|[^\s]+.com|\bep\b|feat\.|ft\.|\bom\b|\boriginal\b|\bclub\b|\bmix\b|\bremix\b|\bthe\b|vinyl|web|www[^\s]+|[^\w\s]|\b&*amp',),'\s+', ))
[Encoding]=url-utf-8
```

---

<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:** [June 19, 2020, 5:53pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/623 "2020-06-19T17:53:17Z")

</div>

It says where right in the code you posted.  
`Place &sortBy=publishDate+DESC at the end of %s if you want releases sorted by date.`

---

<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:** [June 19, 2020, 6:08pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/624 "2020-06-19T18:08:50Z")

</div>

Thanks Steve. I know this but I don't know where that is in the script? I tried a few places right there by the comment and nothing worked. Thanks though. I'll keep messing around and figure it out. Yopu've really helped me enough as it is with this brilliant script. Edit: I'm trying to get track by filename to sort by title date (track release date)

---

<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:** [June 19, 2020, 6:23pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/625 "2020-06-19T18:23:18Z")

</div>

It's the line right above where it describes what to do. Copy that additional code to the end of that line.

---

<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:** [June 19, 2020, 6:25pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/626 "2020-06-19T18:25:24Z")

</div>

Thanks, that worked! (I feel like an idiot). It's ordering in descending now. How do I make it order in ascending sort order?

---

<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:** [June 19, 2020, 6:38pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/627 "2020-06-19T18:38:00Z")

</div>

Change DESC to ASC. I think. Check in your browser the URL when you sort something by ascending order.

---

<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:** [June 19, 2020, 6:40pm UTC](https://community.mp3tag.de/t/ws-beatport-com-by-stevehero-release-single-track-artwork-tagging/12568/628 "2020-06-19T18:40:13Z")

</div>

Worked perfectly. Huge thanks Steve.. saves a few clicks 🙂

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

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