Advertisement
Guest User

Beet config file

a guest
Nov 29th, 2019
4,574
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 6.25 KB | None | 0 0
  1. # Root directory of your music
  2. directory: /music
  3. # Location where your beets database is saved
  4. library: /config/musiclibrary.blb
  5.  
  6. # Install these requirements if you want to use all the plugins. If you only want to use some, the required dependencies stand behind the plugins as well.
  7. # pip install beets[fetchart,lyrics,lastgenre] requests requests_oauthlib discogs-client pylast
  8. plugins:
  9.   # Add Discogs as a metadata source
  10.   - discogs # pip install discogs-client
  11.  
  12.   # Add BeatPort as a metadata source
  13. #  - beatport # pip install requests requests_oauthlib
  14.  
  15.   # Downloads Covers
  16.   - fetchart # pip install requests
  17.  
  18.   # Downloads lyrics
  19.   - lyrics # pip install requests
  20.  
  21.   # Downloads genres from last.fm
  22.   - lastgenre # pip install pylast
  23.  
  24.   # Edit metadata of songs or albums with a text editor like vim or micro
  25.   - edit
  26.  
  27.   # Use small python scripts to add logic the automated file sorting
  28.   - inline
  29.  
  30.   # Adds the cover art to the metadata of the audio files
  31.   - embedart
  32.  
  33.   # Can copy additional files like nfos, pdf booklets and cue-sheets
  34.   - extrafiles
  35.  
  36.   # Notify plex about new media
  37.   - plexupdate
  38.  
  39.   # ???
  40.   - duplicates
  41.  
  42.   # Set file and folder permissions
  43.   - permissions
  44.  
  45.   # ???
  46. #  - export
  47.   # ???
  48. #  - fuzzy
  49.   # ???
  50. #  - info
  51.   # ???
  52. #  - missing
  53.   # ???
  54. #  - copyartifacts
  55.  
  56. # Set the file permissions
  57. permissions:
  58.   file: 666
  59.   dir: 777
  60.  
  61. # If öäüß and other non standard signs won't be printed correctly try some different values here
  62. # https://docs.python.org/2/library/codecs.html#standard-encodings
  63. terminal_encoding: utf-8
  64.  
  65. # Use multiple cores?
  66. threaded: yes
  67.  
  68. # Make your output pretty! Activate color and optionaly tweak the values
  69. # black, darkred, darkgreen, brown (darkyellow), darkblue, purple (darkmagenta), teal (darkcyan), lightgray, darkgray, red, green, yellow, blue, fuchsia (magenta), turquoise (cyan), white
  70. ui:
  71.   color: yes
  72. #  colors:
  73. #    text_success: green
  74. #    text_warning: yellow
  75. #    text_error: red
  76. #    text_highlight: red
  77. #    text_highlight_minor: lightgray
  78. #    action_default: turquoise
  79. #    action: blue
  80.  
  81. # Configure the importing process
  82. # ???
  83. import:
  84.   write: yes
  85.   copy: no
  86.   move: yes
  87.   autotag: yes
  88.   bell: yes
  89.   log: /config/beet.log
  90.  
  91. # Use the original release date of an album when a re-release is added
  92. original_date: yes
  93. # Start counting track numbers back at one for each disc
  94. per_disc_numbering: yes
  95.  
  96. # Activates the embed art plugin and adds the cover to the audio files metadata
  97. embedart:
  98.   auto: yes
  99.  
  100. # Custom user defined variables which can be used at the 'paths' section. 'inline' plugin required
  101. # Each line is a small python script which should return a string or an int
  102. item_fields:
  103. # 'Nine Inch Nails - ' or '' depending if the artist differs from the album artist
  104.   mySongartist: artist + ' - ' if artist != albumartist and artist != '' else ''
  105.  
  106. # Release with multiple discs? For boolean operations
  107.   isMultidisc: 1 if disctotal > 1 else 0
  108.  
  109. # Changes the case of the album type
  110.   myAlbumType: ('' if albumtype == '' else ' [' + ('EP' if albumtype == 'ep' else albumtype.capitalize()) + ']')
  111.  
  112. # '1 - ' or '' depending if there are multiple discs or not
  113.   myDisc: ('' if disctotal <= 1 else str(disc) + ' - ')
  114.  
  115. # Same as above but on album basis
  116. #album_fields:
  117. #  bitrate: |
  118. #          total = 0
  119. #          for item in items:
  120. #              total += item.bitrate
  121. #          return total / len(items)
  122.  
  123. paths:
  124. # For the normal albums and eps. Used when none of the other paths should be used
  125. # Interpreten/boysetsfire/(2000) After the Eulogy [Album]/02 - Rookie.flac
  126. # Interpreten/Oliver Koletzki/(2019) We Are All Lost/1 - 02 - Oliver Koletzki; Monolink - We Are All Lost.flac
  127.   default: Interpreten/$albumartist/($year) $album%aunique{}$myAlbumType/%if{$isMultidisc,$disc - }$track - $mySongartist$title
  128.  
  129. # For sampler and compilations. Used when 'comp:true' is set
  130. # Compilations/Giegling/(2017) Planet Giegling/03 - Kettenkarussell - Walk With Me.flac
  131.   comp: Compilations/$albumartist/($year) $album%aunique{}/$myDisc$track - $artist - $title
  132.  
  133. # For single songs. Used when 'singleton:true' is set
  134. #  singleton:
  135.  
  136. # For Soundtracks. Used when 'albumtype:soundtrack'
  137. # Soundtracks/Trent Reznor & Atticus Ross/Watchmen_ Volume 1 (Music From the HBO Series) (2019)/04 - Trent Reznor & Atticus Ross - Nun With a Motherf_&_ing Gun.flac
  138.   albumtype:soundtrack: Soundtracks/$albumartist/$album%aunique{} ($year)/$myDisc$track - $artist - $title
  139.  
  140. aunique:
  141.     keys: albumartist album
  142.     disambiguators: albumtype year label catalognum albumdisambig releasegroupdisambig
  143.     bracket: '[]'
  144.  
  145. fetchart:
  146. #   #minwidth: 800
  147. #   #maxwidth: 800
  148. #   #enforce_ratio: yes
  149.   auto: yes
  150.   sources: filesystem coverart itunes amazon albumart fanarttv
  151.  
  152. lastgenre:
  153.   auto: yes
  154.   source: album
  155.  
  156. extrafiles:
  157.   patterns:
  158.       all: '*.*'
  159.       artworkdir:
  160.        - '[sS]cans/'
  161.         - '[aA]rtwork/'
  162.         - '[aA]rt/'
  163.         - '[cC]over/'
  164.   paths:
  165.       artworkdir: $albumpath/Artwork
  166.       ext:log: $albumpath/$disc_folder/Data/
  167.       ext:cue: $albumpath/$disc_folder/Data/
  168.       ext:jpg: $albumpath/$disc_folder/
  169.       ext:jpg: $albumpath/
  170.  
  171. # copyartifacts:
  172. #    extensions: .cue .log .jpg .jpeg .png .txt
  173.  
  174. replace:
  175.   '[\\/]': _
  176.   '^\.': _
  177.   '[\x00-\x1f]': _
  178.   '[<>:"\?\*\|]': _
  179.   '\.$': _
  180.   '\s+$': ''
  181.  
  182. plex:
  183.   host: 10.0.0.2
  184.   port: 32400
  185.   token: xxxxxxxxxxxxxxxx
  186.   library_name: "Music"
  187.  
  188. # Configure the edit plugin. Defines which fields are available for editing.
  189. # To choose your favorite editor change the $EDITOR environment variable
  190. edit:
  191.   itemfields:
  192.    - album
  193.     - albumartist
  194.     - artist
  195.     - track
  196.     - title
  197.     - year
  198.   albumfields:
  199.    - albumartist
  200.     - album
  201.     - year
  202.     - albumtype
  203.  
  204. #none, low, medium, strong
  205. match:
  206.   strong_rec_thresh: 0.05
  207.   max_rec:
  208.     source: strong
  209.     artist: strong
  210.     album: strong
  211.     media: strong
  212.     mediums: strong
  213.     year: strong
  214.     country: strong
  215.     label: strong
  216.     catalognum: strong
  217.     albumdisambig: strong
  218.     album_id: strong
  219.     tracks: strong
  220.     missing_tracks: medium
  221.     unmatched_tracks: medium
  222.     track_title: strong
  223.     track_artist: strong
  224.     track_index: strong
  225.     track_length: strong
  226.     track_id: strong
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement