Advertisement
Guest User

config.yaml (no discogs)

a guest
Oct 1st, 2016
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 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
  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. fetchart:
  20. cautious: yes
  21. cover_names: cover front art album folder
  22. sources: filesystem fanarttv itunes amazon albumart google
  23. maxwidth: 1000
  24. enforce_ratio: yes
  25. zero:
  26. keep_fields: title artist album albumartist year track tracktotal disc disctotal disctitle
  27. update_database: true
  28. item_fields:
  29. capitalised_title: |
  30. v = title.split(" ")
  31. q = ""
  32. words = ["a", "an", "at", "and", "by", "for", "in", "of", "on", "to", "the"]
  33.  
  34. try:
  35. if title.lower() == "" or title.lower() == "[untitled]":
  36. return "Untitled"
  37. except TypeError:
  38. return "Untitled"
  39.  
  40. for i, word in enumerate(v):
  41. if i == 0 or not word.lower() in words:
  42. v[i] = word[0].upper() + word[1:]
  43. else:
  44. v[i] = word.lower()
  45.  
  46. for i, word in enumerate(v):
  47. if i < len(v) - 1:
  48. q += word + " "
  49. else:
  50. q += word
  51.  
  52. return q
  53.  
  54. disc_prefix: |
  55. if disctotal > 1:
  56. v = str(disc)
  57. if len(v) < 2:
  58. return "0" + v + " - "
  59. return ""
  60. paths:
  61. default: $albumartist/$album/$disc_prefix$track - $capitalised_title
  62. comp: Various Artists/$album/$disc_prefix$track - $capitalised_title
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement