# Beatport plugin - fetching metadata only on individual tracks in a folder

**URL:** <https://discourse.beets.io/t/beatport-plugin-fetching-metadata-only-on-individual-tracks-in-a-folder/1571>\
**Category:** Help\
**Created:** [November 6, 2020, 2:06pm UTC](https://discourse.beets.io/t/beatport-plugin-fetching-metadata-only-on-individual-tracks-in-a-folder/1571 "2020-11-06T14:06:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bascurtiz](https://avatars.discourse-cdn.com/v4/letter/b/d2c977/32.png) [@bascurtiz](https://discourse.beets.io/u/bascurtiz)\
**Post date:** [November 6, 2020, 2:06pm UTC](https://discourse.beets.io/t/beatport-plugin-fetching-metadata-only-on-individual-tracks-in-a-folder/1571/1 "2020-11-06T14:06:46Z")

</div>

Hi!

New to beets.  
Before I’m going to spend time on diving in deeper, I skimmed over the documentation, but it’s not clear if I can do the following:

Let’s say, I have tracks downloaded from Beatport in WAV format, therefore not having any metadata.  
I stripped them from the _id\_1234_ that’s in the filename and converted them to FLAC with Artist-Title from filename to tags.  
This way the input would be Artist + Title tag.

Now I want them to be processed with beets, fetching Beatport metadata/cover art only.

Is this possible?  
And if so, how should I approach this?

Mind you, those are not albums, but individual tracks in a folder.

---

<div class="post-metadata">

**Author:** ![adrian](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/adrian/32/4_2.png) [@adrian](https://discourse.beets.io/u/adrian)\
**Post date:** [November 6, 2020, 5:09pm UTC](https://discourse.beets.io/t/beatport-plugin-fetching-metadata-only-on-individual-tracks-in-a-folder/1571/2 "2020-11-06T17:09:53Z")

</div>

Sure! You’ll want to use the `fromfilename` plugin to attempt to guess the metadata from the filenames. And you’ll want to use the `beatport` plugin, of course, to look up data there. Finally, use the `-s` flag to the `beet import` command to import single files. Give it a shot and see how it goes!

---

<div class="post-metadata">

**Author:** ![bascurtiz](https://avatars.discourse-cdn.com/v4/letter/b/d2c977/32.png) [@bascurtiz](https://discourse.beets.io/u/bascurtiz)\
**Post date:** [November 6, 2020, 7:51pm UTC](https://discourse.beets.io/t/beatport-plugin-fetching-metadata-only-on-individual-tracks-in-a-folder/1571/3 "2020-11-06T19:51:37Z")

</div>

@adrian

Thanks!

So here’s what I did:

1. pip install beets
2. edited the config.yaml file to set directory and db path
3. ran beet import -A f:\my-music-folder-to-be-processed
4. enabled the beatport plugin by adding plugins: beatport in the config.yaml
5. installed it thru pip install beatport
6. checked if enabled using beet version, and yep, it shows.
7. pip install requests requests\_oauthlib show it’s already satisfied
8. ran beet import f:\beets-music -s
9. go to the url stated to authorize, and login with my beatport account, paste the token string back into beets

Now I’m asked to individually select which candidate the track belongs to?

 ![beet](https://canada1.discourse-cdn.com/flex029/uploads/beets/original/1X/3fed2eef2bafa5c8407a9cc9c9ff80e5e394581a.png)

I don’t want that, I just want it to search for the best candidate itself, like autotagging.  
I know how to disable autotagging using -A, but not how to enable the autotagging.  
Or is this only possible AFTER i manually select to which candidate the track belongs?

---

<div class="post-metadata">

**Author:** ![bascurtiz](https://avatars.discourse-cdn.com/v4/letter/b/d2c977/32.png) [@bascurtiz](https://discourse.beets.io/u/bascurtiz)\
**Post date:** [November 7, 2020, 12:41pm UTC](https://discourse.beets.io/t/beatport-plugin-fetching-metadata-only-on-individual-tracks-in-a-folder/1571/4 "2020-11-07T12:41:26Z")

</div>

@adrian

I managed to fix the unsupported Colorama, by using [ConEmu](https://conemu.github.io/) instead of cmd.

 ![beets-conEmu](https://canada1.discourse-cdn.com/flex029/uploads/beets/original/1X/33595db8281769e8042fa6b84dc305a1efb2e60b.jpeg)

I also found the undocumented distance\_weight parameters.  
So I set everything to 0.0, except (track)Artist + trackTitle.

The distance\_weight source i kept at 2.0 - what does this do?  
I want to be the source Beatport only, so maybe it will help if you can clarify this parameter.

I notice the treshold is around 95% match and higher, will tag automatically.  
Can I bump this % up, so it will match on for example, 70% and higher?

---

<div class="post-metadata">

**Author:** ![adrian](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/adrian/32/4_2.png) [@adrian](https://discourse.beets.io/u/adrian)\
**Post date:** [November 7, 2020, 4:58pm UTC](https://discourse.beets.io/t/beatport-plugin-fetching-metadata-only-on-individual-tracks-in-a-folder/1571/5 "2020-11-07T16:58:12Z")

</div>

You’ll want to turn the weight down to zero to avoid penalizing matches based on source altogether.
