<commit_before>include:
  - local-config.yaml

plugins:
  - chroma
  - discogs
  - edit
  - embedart
  - fetchart
  - importadded
  - info
  - inline
  - lastgenre
  # - plexupdate
  - replaygain

paths:
  default: $albumartist/$album%aunique{}/%if{$multidisc,Disc $disc/}$track - $title
  comp: Various Artists/$album%aunique{}/%if{$multidisc,Disc $disc/}$track - $title

# Support for Plex
# https://forums.plex.tv/t/music-which-version-of-id3-tags-does-the-plex-scanner-inspect/193379/7
id3v23: yes

item_fields:
  multidisc: 1 if disctotal > 1 else 0
  artist_differs: 1 if albumartist != artist else 0

import:
  bell: yes
  copy: no
  languages:
    - en
  log: ~/.config/beets/beets.log
  move: yes

# format_item:

match:
  preferred:
    countries: ["US", "GB|UK", "DE"]
    media: ["CD", "Digital Media|File"]

# Use the album's original date instead of the release's date
original_date: yes

# Play it safe with filenames
asciify_paths: yes
max_filename_length: 150

ui:
  color: yes
  colors:
    text_success: green
    text_warning: yellow
    text_error: red
    text_highlight: red
    text_highlight_minor: lightgray
    action_default: turquoise
    action: blue

# Edit plugin
# https://beets.readthedocs.io/en/stable/plugins/edit.html
edit:
  itemfields: track title artist album
  albumfields: album albumartist

# FetchArt plugin
# https://beets.readthedocs.io/en/stable/plugins/fetchart.html
fetchart:
  sources: filesystem coverart discogs amazon albumart

# LastGenre plugin
# https://beets.readthedocs.io/en/stable/plugins/lastgenre.html
lastgenre:
  auto: yes
  canonical: ~/.config/beets/canonical.yaml
  count: 4
  fallback: ""
  force: yes
  min_weight: 6
  prefer_specific: no
  separator: "/ "
  source: album
  whitelist: ~/.config/beets/allowlist.txt

# ReplayGain plugin
# https://beets.readthedocs.io/en/stable/plugins/replaygain.html
replaygain:
  auto: yes<commit_msg>beets config updates<commit_after>include:
  - local-config.yaml

plugins:
  - chroma
  - discogs
  - edit
  - embedart
  - fetchart
  - importadded
  - info
  - inline
  - lastgenre
  # - plexupdate
  - replaygain

paths:
  default: $albumartist/$album%aunique{}/%if{$multidisc,Disc $disc/}$track - $title
  comp: Various Artists/$album%aunique{}/%if{$multidisc,Disc $disc/}$track - $title

# Support for Plex
# https://forums.plex.tv/t/music-which-version-of-id3-tags-does-the-plex-scanner-inspect/193379/7
id3v23: yes

item_fields:
  multidisc: 1 if disctotal > 1 else 0
  artist_differs: 1 if albumartist != artist else 0

import:
  bell: yes
  copy: no
  languages:
    - en
  log: ~/.config/beets/beets.log
  move: yes

match:
  # max_rec:
  #   track_index: low
  #   track_length: medium
  #   year: medium
  preferred:
    countries: ["US", "UK|GB", "DE", "NL"]
    media: ["CD", "Digital Media|File"]
  strong_rec_thresh: 0.15
  medium_red_thresh: 0.25
  rec_gap_thresh: 0.25

# Use the album's original date instead of the release's date
original_date: yes

# Play it safe with filenames
asciify_paths: yes
max_filename_length: 150

ui:
  color: yes
  colors:
    text_success: green
    text_warning: yellow
    text_error: red
    text_highlight: red
    text_highlight_minor: lightgray
    action_default: turquoise
    action: blue

# Edit plugin
# https://beets.readthedocs.io/en/stable/plugins/edit.html
edit:
  itemfields: track title artist album
  albumfields: album albumartist

# FetchArt plugin
# https://beets.readthedocs.io/en/stable/plugins/fetchart.html
fetchart:
  sources: filesystem coverart discogs amazon albumart
  # enforce_ratio: 10px
  # minwidth: 300
  # maxwidth: 2000

# LastGenre plugin
# https://beets.readthedocs.io/en/stable/plugins/lastgenre.html
lastgenre:
  auto: yes
  canonical: ~/.config/beets/canonical.yaml
  count: 4
  fallback: ""
  force: yes
  min_weight: 6
  prefer_specific: no
  separator: "; "
  source: album
  whitelist: ~/.config/beets/allowlist.txt

# ReplayGain plugin
# https://beets.readthedocs.io/en/stable/plugins/replaygain.html
replaygain:
  auto: yes
{'fraction_non_alphanumeric': 0.11547057362801093, 'fraction_numerical': 0.014899428855227216, 'mean_word_length': 3.5824800910125143, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '759754', 'n_tokens_mistral': 1547, 'n_tokens_neox': 1468, 'n_words': 332}