Advertisement
Guest User

config.yaml

a guest
Oct 1st, 2016
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.81 KB | None | 0 0
  1. directory: # C:\Users\UserName\Music\
  2. library: # C:\Users\UserName\Music\lib.blb
  3. import:
  4.     move: yes
  5. per_disc_numbering: yes
  6. plugins: inline zero scrub fetchart discogs
  7. asciify_paths: no
  8. id3v23: yes
  9. art_filename: folder
  10. original_date: yes
  11. replace:
  12.     '[\\/]': ''
  13.     '^\.': ''
  14.     '[\x00-\x1f]': ''
  15.     '[<>:"\?\*\|]': ''
  16.     '\.$': ''
  17. match:
  18.     ignored: source media mediums country label catalognum
  19. discogs:
  20.     source_weight: 0
  21. fetchart:
  22.     cautious: yes
  23.     cover_names: cover front art album folder
  24.     sources: filesystem fanarttv itunes amazon albumart google
  25.     maxwidth: 1000
  26.     enforce_ratio: yes
  27. zero:
  28.     keep_fields: title artist album albumartist year track tracktotal disc disctotal disctitle
  29.     update_database: true
  30. item_fields:
  31.     capitalised_title: |
  32.        v = title.split(" ")
  33.         q = ""
  34.         words = ["a", "an", "at", "and", "by", "for", "in", "of", "on", "to", "the"]
  35.        
  36.         try:
  37.             if title.lower() == "" or title.lower() == "[untitled]":
  38.                 return "Untitled"
  39.         except TypeError:
  40.             return "Untitled"
  41.  
  42.         for i, word in enumerate(v):
  43.             if i == 0 or not word.lower() in words:
  44.                 v[i] = word[0].upper() + word[1:]
  45.             else:
  46.                 v[i] = word.lower()
  47.                
  48.         for i, word in enumerate(v):
  49.             if i < len(v) - 1:
  50.                 q += word + " "
  51.             else:
  52.                 q += word
  53.                
  54.         return q
  55.        
  56.     disc_prefix: |
  57.         if disctotal > 1:
  58.            v = str(disc)
  59.             if len(v) < 2:
  60.                return "0" + v + " - "
  61.         return ""
  62. paths:
  63.     default: $albumartist/$album/$disc_prefix$track - $capitalised_title
  64.     comp: Various Artists/$album/$disc_prefix$track - $capitalised_title
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement