Closed dr4gn3l closed 4 months ago
Thanks @dr4gn3l , from an initial glance this looks good! It's a non-trivial feature so will likely need some time and thought before we can get this merged but looks like the beginnings of the music classifier. Some initial thoughts:
source: discogs_release
/id: 1234
for individual release or source: discogs_artist
/id: 5678
for multi-release (or if we know the artist but not the release)if hasAudio := input.Torrent.HasFileType(model.FileTypeAudio); hasAudio.Valid && !hasAudio.Bool
we might need to discriminate further here; e.g. .m4b
is audio but would usually be an audiobook; .mid
likewise wouldn't be a music release.dht_crawler.save_files_threshold
setting which currently defaults to 50; need to either reconsider if this is the best value, perhaps we can just assume it's audio if it includes certain keywords, or perhaps the default needs to be increasedBTW @dr4gn3l I've set up a Discord here that you're welcome to join: https://discord.gg/WecPrUFr
Closing this PR due to lack of response.
It is a draft resolving a part of #52 to classify music. If a name start with :
artist - Discography
I tried to keep the same philosphy as the video classifier. I'm not familiar with gorm so I add the source in the table metadata_sources by hand.
It currently works, I am using it why my crawler and the false positive are quite rare, it is almost always the fault of the mid filetype.
Regards :)