-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
beatport: Fetch musical key, BPM, and genre data #2080
Comments
Yep, it looks like the plugin doesn't get those fields yet. Seems like a reasonable addition if you're interested. |
@sampsyo definitely interested! 😄 |
I'd love to implement this, but can you tell me how I can pass this information to beets, @sampsyo? As for the Genre tags, do you have a few IDs of releases that are missing genre tags so I can reproduce this? |
Ah, good point @jbaiter -- I had forgotten that would be a roadblock. For purposes like this, I've been meaning to replace the current implementations of |
Sounds good to me, however I'm afraid my knowledge of beets internals is too limited to tackle that task. |
It's a deal—I'll check back in here after I make progress on that refactoring. |
@sampsyo just wondering if you have made any progress on this. Not a programmer myself, otherwise I'd take a stab at it. Apologize in advance if I sound snobby, not meaning to. 😄 |
No, sorry—I've been distracted with a few other things. I do hope to get to it soon. |
@sampsyo Right on, no worries. :) |
I've posted a bounty for this to get implemented if anyone is interested. I just really need this feature so figured I'd put up some cash to make it happen! 😄 https://www.bountysource.com/issues/35434835-beatport-fetch-musical-key-and-bpm-data |
Btw, I've noticed the Genre tag is missing as well now on every track I import. |
Anybody up for tackling this? |
I really need this, too! Is anybody up for it? |
I too would like to see this. The BPM/Genre is quite important for me. |
Would also love to see this implemented and added some $ to the bounty :) https://www.bountysource.com/issues/35434835-beatport-fetch-musical-key-bpm-and-genre-data @BrianRoach you seem to have had the same issues as i do now (including the one with "original mix" & not finding some tracks), did you find any other solution after all? |
I am currently tackling this issue. I have already implemented BPM. Musical key should be equivalently easy. Beatport provides genre data for each track while beets has a genre per album. I am currently testing how this can be done best. However, the API hooks need to be modified for this. Maybe I can modify it such that they take arbitrary values. |
Silly question now... is there an "easier" way to update my beets to include this fix than to get the code from Github and install manually? |
pip can directly install the code from a git url: This will clone the repo to a temporary directory and then install it via pip. |
It seems that it still doesn't get the tags properly from beatport Just for testing i tried the following tracks by using ...and selected beatport as source on every one but it still doesn't get the genre from it, at least
The other 3 tracks are tagged as genre Dance my config: paths:
default: $genre/$year_$month/$albumartist_$title
singleton: $genre/$year_$month/$albumartist_$title
library: /mnt/d/Music/musiclibrary.db
replace:
'[\\/]': _
^\.: _
'[\x00-\x1f]': _
'[<>:"\?\*\|]': _
\.$: _
\s+$: ''
original_date: yes
path_sep_replace: _
plugins: inline beatport
directory: /mnt/d/Music
import:
move: no
copy: yes
write: yes
beatport:
source_weight: 0.0
tokenfile: beatport_token.json
apikey: REDACTED
apisecret: REDACTED
pathfields: {}
album_fields: {}
item_fields: {} |
I guess, the data is coming from somewhere else, maybe discogs. How did you even select the source? I have not found out myself how I can select to use Beatport other than doing `beet import ~/music/ --search-id [id]. |
It should take it from beatport, otherwise what's the point? :) By "select the source" i was referring when beets asks me from where to correct the tags on import, you have different candidates options, and some of them would be from beatport, i would select that But now that i look at the similarity line from when i import i see that it shows what tags it found and wants to correct, and from all my tests and options given by beets it only seems to want to correct @sampsyo could you shed some light on this please? |
Beets does not use genre for matching. But it will apply new genres to your music, if they're available from the data source. Those won't show up in that list you're referring to, though, which only shows information about the matches. Also, to see the data on your music, I recommend using something like @wualex, when you report a problem, it's really useful to provide a complete set of steps so the developer can reproduce the problem. Maybe you can think carefully about how to help @temrix do exactly what you're doing to produce the same results. |
At this point the only step and only thing i'm doing is
The result is as you can see wrong: beet ls -f '$artist - $title - $genre'
Alex Niggemann - Bwana - Electro
Avidus - Psalm 23 - Electro
DAVI - The Gates Of Babylon - Electro
Kellerkind - Shakti Pan feat. Sven - Electro
Tunnelvisions - Guava (Extended Mix) - Dance And now i don't know what else i can provide but i'm up for more testing or if you have questions.... |
maybe there is a mistake between "genre" and "subgenre" from beatport. |
I have finally reproduced it and I will file a new issue because this here is already closed. In the new issue I will explain more thoroughly what the problem actually is. Just give me some time. |
Problem
Everything seems to be getting pulled in except BPM & Key. Genre tag appears to be hit or miss. All tracks are from beatport, so the tags should be there. Looking at the API docs I see the facets listed. Are these actually accessible in Track Info?
Setup
My configuration (output of
beet config
) is:The text was updated successfully, but these errors were encountered: