HOWTO: clean up your dirty music collection.

Forum rules
Share your brain ;)
User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

HOWTO: clean up your dirty music collection.

Unread post by wuxmedia » Tue Jan 12, 2016 6:05 pm

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]
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
ivanovnegro
Minister of Truth
Posts: 5448
Joined: Wed Oct 17, 2012 11:12 pm

Re: HOWTO: clean up your dirty music collection.

Unread post by ivanovnegro » Tue Jan 12, 2016 6:51 pm

I deleted the other thread. It was double posted.

User avatar
simgin
Meme Fodder
Posts: 1167
Joined: Sun Jan 06, 2013 12:07 am
Location: Bradford-on-Avon, UK

Re: HOWTO: clean up your dirty music collection.

Unread post by simgin » Tue Jan 12, 2016 8:37 pm

^^ 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
Someone told me that I am delusional, I almost fell off my unicorn.

User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: HOWTO: clean up your dirty music collection.

Unread post by wuxmedia » Tue Jan 12, 2016 8:47 pm

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...
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
simgin
Meme Fodder
Posts: 1167
Joined: Sun Jan 06, 2013 12:07 am
Location: Bradford-on-Avon, UK

Re: HOWTO: clean up your dirty music collection.

Unread post by simgin » Tue Jan 12, 2016 8:56 pm

^ How many tracks do you have, or maybe different sound formats? Could that have an effect?
Someone told me that I am delusional, I almost fell off my unicorn.

User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: HOWTO: clean up your dirty music collection.

Unread post by wuxmedia » Tue Jan 12, 2016 9:13 pm

OK - right '-ql LOGFILE' seems the quietest.
^ I have 150G of tracks mp3s mostly.
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
doubledutch
killall X
Posts: 163
Joined: Sun Aug 10, 2014 1:25 pm

Re: HOWTO: clean up your dirty music collection.

Unread post by doubledutch » Tue Jan 12, 2016 10:19 pm

Will check this out, thanks!

User avatar
rhowaldt
Dog
Posts: 4565
Joined: Wed Oct 17, 2012 9:01 am
Contact:

Re: HOWTO: clean up your dirty music collection.

Unread post by rhowaldt » Wed Jan 13, 2016 6:03 am

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
All statements are true in some sense, false in some sense, meaningless in some sense, true and false in some sense, true and meaningless in some sense, false and meaningless in some sense, and true and false and meaningless in some sense.

User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: HOWTO: clean up your dirty music collection.

Unread post by wuxmedia » Wed Jan 13, 2016 8:12 am

^ 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.
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
franksinistra
Ivana Fukalot
Posts: 1093
Joined: Mon Jan 27, 2014 2:03 am
Location: 印尼国

Re: HOWTO: clean up your dirty music collection.

Unread post by franksinistra » Wed Jan 13, 2016 10:41 am

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.
rice no more.

User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: HOWTO: clean up your dirty music collection.

Unread post by wuxmedia » Wed Jan 13, 2016 10:53 am

^ oh nice :) then run beets on it :)

On 'h' now ('e' was pretty bloated actually)
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
rhowaldt
Dog
Posts: 4565
Joined: Wed Oct 17, 2012 9:01 am
Contact:

Re: HOWTO: clean up your dirty music collection.

Unread post by rhowaldt » Wed Jan 13, 2016 10:58 am

all that Elvis...
All statements are true in some sense, false in some sense, meaningless in some sense, true and false in some sense, true and meaningless in some sense, false and meaningless in some sense, and true and false and meaningless in some sense.

User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: HOWTO: clean up your dirty music collection.

Unread post by wuxmedia » Wed Jan 13, 2016 11:39 am

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.
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
simgin
Meme Fodder
Posts: 1167
Joined: Sun Jan 06, 2013 12:07 am
Location: Bradford-on-Avon, UK

Re: HOWTO: clean up your dirty music collection.

Unread post by simgin » Wed Jan 13, 2016 12:01 pm

^ Ah, the innocent bees and the flowers 'extra' folder, *wink wink nudge nudge* ;D
Someone told me that I am delusional, I almost fell off my unicorn.

User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: HOWTO: clean up your dirty music collection.

Unread post by wuxmedia » Thu Jan 21, 2016 8:22 pm

BTW this 'fixed' my collection like hiroshima 'fixed' WW2...

ARSE :(
"Seek, and Ye shall find"
"Github | Chooons | Site"

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: HOWTO: clean up your dirty music collection.

Unread post by machinebacon » Fri Jan 22, 2016 4:16 am

^ what happened?
..gnutella..

User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: HOWTO: clean up your dirty music collection.

Unread post by wuxmedia » Fri Jan 22, 2016 7:40 am

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)
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
rhowaldt
Dog
Posts: 4565
Joined: Wed Oct 17, 2012 9:01 am
Contact:

Re: HOWTO: clean up your dirty music collection.

Unread post by rhowaldt » Fri Jan 22, 2016 8:05 am

damn, sounds like a mess. i do this shit by hand :)
did you actually lose anything?
All statements are true in some sense, false in some sense, meaningless in some sense, true and false in some sense, true and meaningless in some sense, false and meaningless in some sense, and true and false and meaningless in some sense.

User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: HOWTO: clean up your dirty music collection.

Unread post by wuxmedia » Fri Jan 22, 2016 8:33 am

^ 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.
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
jmthomas87
Oyster-Slurper
Posts: 21
Joined: Sat Dec 06, 2014 6:48 pm

Re: HOWTO: clean up your dirty music collection.

Unread post by jmthomas87 » Thu Mar 10, 2016 7:33 pm

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.

Post Reply