diff options
author | Matthew Lemon <y@yulqen.org> | 2023-10-19 12:31:45 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2023-10-19 12:31:45 +0100 |
commit | a2bd7545ffd53b339799ca9dbe4607401499ed1e (patch) | |
tree | 7ca9cddbf7c4eb8f0278282d283c5356cda1de97 | |
parent | 4c5b4e589d3ed6f624ec5be377e3dbbf83b12592 (diff) |
Adding beets to the configuration
-rw-r--r-- | bashrc | 16 | ||||
-rw-r--r-- | beets_config.yaml | 161 |
2 files changed, 177 insertions, 0 deletions
@@ -35,6 +35,10 @@ export EDITOR=vim # openai keys source $HOME/Documents/sync/openai_key +# completion for beets +# from https://wiki.archlinux.org/title/Beets +eval "$(beet completion)" + # aliases alias pacget="pacman -Slq | fzf --multi --preview 'pacman -Si {1}' | xargs -ro sudo pacman -S" alias pacdel="pacman -Qq | fzf --multi --preview 'pacman -Qi {1}' | xargs -ro sudo pacman -Rns" @@ -312,3 +316,15 @@ append_to_masterlist() { # export LS_COLORS="$LS_COLORS:di=1;33" # Install Ruby Gems to ~/gems export GEM_HOME="$HOME/gems" + + +# get best audio of YouTube file or playlist (just use the right URL) +ytmp3 () { + if [ -z "$1" ]; then print "I need a valid YouTube URL.\n"; fi + cd ~/Downloads/music && yt-dlp -f 'ba' -x --audio-format mp3 "$1" -o '%(title)s.%(ext)s' && cd - || return +} + +ytmp3-split-to-chapters() { + if [ -z "$1" ]; then print "I need a valid YouTube URL.\n"; fi + yt-dlp -f 'bestaudio' -x --audio-format mp3 --split-chapters -o '%(title)s.%(ext)s' "$1" && cd - || return +} diff --git a/beets_config.yaml b/beets_config.yaml new file mode 100644 index 0000000..97b3b35 --- /dev/null +++ b/beets_config.yaml @@ -0,0 +1,161 @@ +library: ~/music_mnt/beets/_beets_db_files/library.db +directory: ~/music_mnt/beets + +import: + write: yes + copy: yes + move: no + link: no + hardlink: no + reflink: no + delete: no + resume: ask + incremental: no + incremental_skip_later: no + from_scratch: no + quiet_fallback: skip + none_rec_action: ask + timid: no + log: + autotag: yes + quiet: no + singletons: no + default_action: apply + languages: [] + detail: no + flat: no + group_albums: no + pretend: no + search_ids: [] + duplicate_action: ask + bell: no + set_fields: {} + +clutter: [Thumbs.DB, .DS_Store] +ignore: +- .* +- '*~' +- System Volume Information +- lost+found +ignore_hidden: yes + +replace: + '[\\/]': _ + ^\.: _ + '[\x00-\x1f]': _ + '[<>:"\?\*\|]': _ + \.$: _ + \s+$: '' + ^\s+: '' + ^-: _ +path_sep_replace: _ +drive_sep_replace: _ +asciify_paths: no +art_filename: cover +max_filename_length: 0 + +aunique: + keys: albumartist album + disambiguators: albumtype year label catalognum albumdisambig releasegroupdisambig + bracket: '[]' + +overwrite_null: + album: [] + track: [] + +play: + command: mpv --no-video + +lastgenre: + count: 2 + +plugins: play chroma lastgenre convert +pluginpath: [] +threaded: yes +timeout: 5.0 +per_disc_numbering: no +verbose: 0 +terminal_encoding: +original_date: no +artist_credit: no +id3v23: no +va_name: Various Artists + +ui: + terminal_width: 80 + length_diff_thresh: 10.0 + color: yes + colors: + text_success: green + text_warning: yellow + text_error: red + text_highlight: red + text_highlight_minor: lightgray + action_default: turquoise + action: blue + +format_item: $artist - $album - $title +format_album: $albumartist - $album +time_format: '%Y-%m-%d %H:%M:%S' +format_raw_length: no + +sort_album: albumartist+ album+ +sort_item: artist+ album+ disc+ track+ +sort_case_insensitive: yes + +paths: + # default: $albumartist/$album%aunique{}/$track $title + default: $albumartist/$album/$track $title + singleton: Non-Album/$artist/$title + comp: Compilations/$album%aunique{}/$track $title + +statefile: state.pickle + +musicbrainz: + host: musicbrainz.org + https: no + ratelimit: 1 + ratelimit_interval: 1.0 + searchlimit: 5 + extra_tags: [] + genres: no + +match: + strong_rec_thresh: 0.04 + medium_rec_thresh: 0.25 + rec_gap_thresh: 0.25 + max_rec: + missing_tracks: medium + unmatched_tracks: medium + distance_weights: + source: 2.0 + artist: 3.0 + album: 3.0 + media: 1.0 + mediums: 1.0 + year: 1.0 + country: 0.5 + label: 0.5 + catalognum: 0.5 + albumdisambig: 0.5 + album_id: 5.0 + tracks: 2.0 + missing_tracks: 0.9 + unmatched_tracks: 0.6 + track_title: 3.0 + track_artist: 2.0 + track_index: 1.0 + track_length: 2.0 + track_id: 5.0 + preferred: + countries: [] + media: [] + original_year: no + ignored: [] + required: [] + ignored_media: [] + ignore_data_tracks: yes + ignore_video_tracks: yes + track_length_grace: 10 + track_length_max: 30 + |