snejus / beetcamp

Bandcamp autotagger source for beets (https://beets.io)
GNU General Public License v2.0
67 stars 13 forks source link

option to match a track as album #11

Closed arogl closed 3 years ago

arogl commented 3 years ago

Would it be possible to add an option for when an artists relaeases a track as a single to be treated as an album?

snejus commented 3 years ago

That's literally what I'm about to release in a couple of days. By default a singleton has 0 use with its limited metadata. I saw that beets 1.5.0 removes that limitation, so we can go ahead with it. For example, that's data I'm currently getting for a track that only exists on its own bandcamp.com/track/track-name without an associated album:

(new) album: Matriark - Arangel
(new) albumstatus: Official
(new) albumtype: single
artist: Matriark
(new) catalognum: ''
comments: "mt004\r\n\r\nmastering by alexander salomonsen\r\n\r\n\r\nI'm very happy\
  \ to announce Andrea's debut track. <3\r\n\r\nhttps://soundcloud.com/matriarkcph\r"
(new) country: SE
data_source: bandcamp
(new) day: 9
(adding soon)genre: ''
id: 1777
(new) label: Megatech
media: Digital Media
(new) month: 11
title: Arangel
(new) year: 2020

Basically, there used to be only track_id, title, artist and roughly track_alt available - you should see this when you try to import a singleton from musicbrainz - the output is ridiculously limited.

I just set the albumtype to single and ensure that both artist and the title are found in the album name, and the rest is generic metadata. I organise my folders by label at the top level, for example:

snejus commented 3 years ago

This has implemented in 0.7.0. Will close this for now and will be looking forward to another ticket with any feedback or suggestions :)