Page 1 of 2

HOWTO: clean up your dirty music collection.

Posted: Tue Jan 12, 2016 6:05 pm
by wuxmedia
I know a bunch of peeps don't care about id3 tags, I didn't till it all went on Kodi, where it looks stupid and is harder to find anything.
I found this beets program, which seems to work nicely, thought it might be useful:

Code: Select all

# apt-get install beets

Code: Select all

wux@numenor:~$ depends beets
beets
  Depends: libjs-backbone
  Depends: libjs-jquery
  Depends: libjs-underscore
  Depends: python-enum34
  Depends: python-musicbrainzngs
  Depends: python-mutagen
  Depends: python-pkg-resources
  Depends: <python:any>
    python
  Depends: python-munkres
  Depends: python-unidecode
  Depends: python-yaml
  Suggests: beets-doc
  Suggests: gir1.2-gstreamer-1.0
  Suggests: libav-tools
  Suggests: <mp3gain>
  Suggests: python-acoustid
  Suggests: python-bs4
  Suggests: python-flask
  Suggests: python-gi
  Suggests: python-gst0.10
  Suggests: python-imaging
  Suggests: python-mpd
  Suggests: python-pylast
  Suggests: python-requests
wux@numenor:~$ 
Is a bit bloaty :)

Code: Select all

export EDITOR=nano
Or whatever, if it isn't set.

Code: Select all

beet config -e
What you put in depends on what you want it to do. I wanted to clean existing up, here's how to do that.

Code: Select all

directory: ~/music
library: ~/data/musiclibrary.blb
import:
    move: no
Apparently it's YAML, so needs to have 4 spaces not a tab...any python fans should already have that set, If I recall.
then:

Code: Select all

beet import ~/music
It should then start going through things, comes up with this sort of output:
Finding tags for album "Annie Lennox - Bare - remixes".
Candidates:
1. Annie Lennox - Bare (33.7%) (missing tracks, tracks, album) (2xCD, 2003, GB, BMG UK & Ireland)
2. Annie Lennox - Bare (32.5%) (tracks, missing tracks, album) (CD, 2003, JP, BMG JAPAN)
3. Annie Lennox - Bare (32.5%) (tracks, missing tracks, album) (CD, 2003, US, J Records)
4. Annie Lennox - Bare (32.5%) (tracks, missing tracks, album) (CD, 2003, GB, BMG UK & Ireland)
5. Annie Lennox - Bare (31.3%) (tracks, missing tracks, album) (CD, 2003, JP, RCA)
# selection (default 1), Skip, Use as-is, as Tracks, Group albums, Enter search, enter Id, aBort? Enter one of 1-5, S, U, T, G, E, I, B:
There is probably a way to get it to go through just Applying the first thing. hasn't gone wrong yet.
I quite like it having some output, makes me feel useful.

EDIT: got fed up of being useful-

Code: Select all

beet import /path/to/music -p[code]

Re: HOWTO: clean up your dirty music collection.

Posted: Tue Jan 12, 2016 6:51 pm
by ivanovnegro
I deleted the other thread. It was double posted.

Re: HOWTO: clean up your dirty music collection.

Posted: Tue Jan 12, 2016 8:37 pm
by simgin
^^ Cool thanks Wuxie, interesting, I didn't know YAML also has the 4 indent rule.
I will be trying this on my 'Raspberry Python Programming Learning Station for an Idiot like me' machine. :D

Cheerio
Simon

Re: HOWTO: clean up your dirty music collection.

Posted: Tue Jan 12, 2016 8:47 pm
by wuxmedia
beets faq wrote:The config’s format is YAML. You’ll want to configure your text editor to use spaces, not real tabs, for indentation.
Personally had no idea.

This thing hasn't exactly gone through my whole collection yet...

Re: HOWTO: clean up your dirty music collection.

Posted: Tue Jan 12, 2016 8:56 pm
by simgin
^ How many tracks do you have, or maybe different sound formats? Could that have an effect?

Re: HOWTO: clean up your dirty music collection.

Posted: Tue Jan 12, 2016 9:13 pm
by wuxmedia
OK - right '-ql LOGFILE' seems the quietest.
^ I have 150G of tracks mp3s mostly.

Re: HOWTO: clean up your dirty music collection.

Posted: Tue Jan 12, 2016 10:19 pm
by doubledutch
Will check this out, thanks!

Re: HOWTO: clean up your dirty music collection.

Posted: Wed Jan 13, 2016 6:03 am
by rhowaldt
ha, great find Wux, damn huge-ass python dependencies but that is something one can live with, i suppose. unless one fucking hates id3 tags such as me, and refuses to cooperate with the ways of the world. until, indeed, i buy some gadget that will fuck up my precious resistance :D

Re: HOWTO: clean up your dirty music collection.

Posted: Wed Jan 13, 2016 8:12 am
by wuxmedia
^ yes thought it was you with the tagphobia :)
wow, doing it alphabetically, and it's up to 'E' now..
running on a Pi though, so not exactly super fast.

Re: HOWTO: clean up your dirty music collection.

Posted: Wed Jan 13, 2016 10:41 am
by franksinistra
ha! i always installed beets on every single machine i own, good to know some grillers use it as well. :)

There's also steeb which is the yin to the yang that is beets.

Re: HOWTO: clean up your dirty music collection.

Posted: Wed Jan 13, 2016 10:53 am
by wuxmedia
^ oh nice :) then run beets on it :)

On 'h' now ('e' was pretty bloated actually)

Re: HOWTO: clean up your dirty music collection.

Posted: Wed Jan 13, 2016 10:58 am
by rhowaldt
all that Elvis...

Re: HOWTO: clean up your dirty music collection.

Posted: Wed Jan 13, 2016 11:39 am
by wuxmedia
Exactly - the guy was very prolific... :) as well as the Elvis. I have a huge 'extra' folder with 'my' music in, bit redundant in some players based on the id3 tags.

Re: HOWTO: clean up your dirty music collection.

Posted: Wed Jan 13, 2016 12:01 pm
by simgin
^ Ah, the innocent bees and the flowers 'extra' folder, *wink wink nudge nudge* ;D

Re: HOWTO: clean up your dirty music collection.

Posted: Thu Jan 21, 2016 8:22 pm
by wuxmedia
BTW this 'fixed' my collection like hiroshima 'fixed' WW2...

ARSE :(

Re: HOWTO: clean up your dirty music collection.

Posted: Fri Jan 22, 2016 4:16 am
by machinebacon
^ what happened?

Re: HOWTO: clean up your dirty music collection.

Posted: Fri Jan 22, 2016 7:40 am
by wuxmedia
Well it did exactly what I told it too. Tidy up!
But just like when the wife tidies up; "darling, where is my $THING?"
It went through and did quite a lot of copying out I thought it wouldn't.

Although looking at the config i told it not to move them, which it did not.
I assumed it would 'name in place' not copy them.

Some useful, like fixing tags, but annoying things like;
made itself a compilation directory. then moved things like 'Ultimate breaks and beats','dusty fingers' and 'superbreaks' (told you I was as sample geek) but it only put
/Dusty Fingers, Volume 1
/Dusty Fingers, Volume 7
/Dusty Fingers, Volume 9
in there.

and ONE blue break beats album.(Vol.1) AND it seemed to change it's mind and put an entirely different directory with them all in, named differently.
The others are still how I left it, so have to decide which one to delete.
Point being it's made duplicates all over the place, which is correct, but annoying.
I just have to go about in ncdu and look over it, which wasn't really the point of having an automated thing - that's automation for you ;)

(some of it might be that I took several runs at a full sweep, so stopped and started a few times)

Re: HOWTO: clean up your dirty music collection.

Posted: Fri Jan 22, 2016 8:05 am
by rhowaldt
damn, sounds like a mess. i do this shit by hand :)
did you actually lose anything?

Re: HOWTO: clean up your dirty music collection.

Posted: Fri Jan 22, 2016 8:33 am
by wuxmedia
^ Nothing at all lost, only a few minutes of time- still haven't got around to fully cleaning up after the clean up.
I would say it's totally perfect if you have a new (freshly started) music collection, you import the album, it tidies it, puts in the right place. but how many people (here) have that?

funny thing is, the few albums I wanted it to tidy up (some without tags just don't show up at all in Google music play thing) IT DIDN'T TOUCH!
had to do that 'by hand' (querying the DB and searching) afterwards.
If the name is a bit out - it sometimes loses it, because over the years I've added the occasional live track to a legit album it goes mad, it can't work out why there is an extra track in there "14 tracks instead of 13, fuckit- must be wrong album, I give up"

Which is all fair enough really.

Re: HOWTO: clean up your dirty music collection.

Posted: Thu Mar 10, 2016 7:33 pm
by jmthomas87
May try this program when I get home, though after reading some the previous issues, think I will copy a small portion of my library to a portable drive and see how it goes.

Not letting it mess up all 250Gb+ of my music. Took years to rip all them and digging all the vinyl and CDs out is not something I want to do again.