Skip to content

Instantly share code, notes, and snippets.

@tiagoad
Created April 24, 2016 17:10
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tiagoad/03247519ef235392c8256ccfa9af7a6e to your computer and use it in GitHub Desktop.
Save tiagoad/03247519ef235392c8256ccfa9af7a6e to your computer and use it in GitHub Desktop.
Beets
directory: ../Original
library: ./library.blb
import:
copy: yes
write: yes
move: no
ignore: .AppleDouble ._* *~ .DS_Store
plugins:
- fetchart
- the
- inline
- missing
- ftintitle
- zero
- lastgenre
- info
- edit
- badfiles
- acousticbrainz
threaded: yes
per_disc_numbering: yes
fetchart:
cautious: true
sources: coverart amazon albumart
art_filename: folder
item_fields:
artist_fallback: albumartist if albumartist else artist
first_album_artist: albumartist.split(';')[0] if albumartist else artist.split(';')[0]
fixedyear: original_year if original_year else year
album_fields:
multidisc: |
disc_numbers = {}
for item in items:
disc_numbers[item.disc] = None
if len(disc_numbers) > 1:
return 1
else:
return 0
ep_not_in_title: |
import re
if re.search(r"\bE\.?P\b", album):
return 0
else:
return 1
paths:
default: %the{$artist_fallback}/$fixedyear - $album/%if{$multidisc,$disc.}$track - $title
albumtype:single: %the{$artist_fallback}/$fixedyear - $album [Single]/%if{$multidisc,$disc.}$track - $title
albumtype:ep: %the{$artist_fallback}/$fixedyear - $album%if{$ep_not_in_title, [EP]}/%if{$multidisc,$disc.}$track - $title
singleton: %the{$artist_fallback}/$fixedyear - $album [Single]/01 - $title.mp3
comp: Various Artists/$fixedyear - $album/$track - $title
lastgenre:
auto: no
canonical: no
count: 1
match:
preferred:
media: ['CD', 'Digital Media|File']
original_year: yes
zero:
fields: month day
mbcollection:
auto: yes
replace:
'"': ''
"'": ''
'[\\/]': _
'^\.': _
'[\x00-\x1f]': _
'[<>"\?\*\|]': _
'\.+$': ''
'\s+$': ''
'^\s+': ''
':': ","
lastgenre:
auto: yes
canonical: yes
count: 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment