Auto selection of higher bitrate during duplicate detection

99 views
Skip to first unread message

Enrico

unread,
Sep 4, 2018, 11:33:28 PM9/4/18
to beets
Hey, while importing a large folder of format upgrades, is it possible to automate the selection of a higher bitrate? My R button is about to wear out...

eg: if new match is a higher bitrate, "remove old" if lower "skip"

I'm using the configuration below, although I'm not very well versed in the function of the duplicates plugin

duplicates:
    checksum: no
    tiebreak: { items: [bitrate] }


/downloads/John Zorn - Filmworks XVI Workingman's Death (2005) (12 items)


Tagging:


    John Zorn - Filmworks XVI: Workingman's Death


URL:


    https://musicbrainz.org/release/ed3fa7a5-ce03-4433-8c2d-e027f53b8d6a


(Similarity: 100.0%) (2005, US, Tzadik)


This album is already in the library!


Old: 12 items, MP3, 245kbps, 61:23, 109.0 MiB


New: 12 items, FLAC, 728kbps, 61:23, 330.9 MiB


[S]kip new, Keep both, Remove old, Merge all?




# Beets configuration --------------------------------------------------------

directory: /music
library: /config/musiclibrary.blb

import:
    write: yes
    move: yes
    copy: no
    delete: no
    autotag: yes
    timid: no
    resume: no
    incremental: no
    none_rec_action: ask
    log: /config/beet.log

    quiet: no  # enable with command line option
    quiet_fallback: skip
    #none_rec_action: asis
    default_action: apply

    singletons: no
    languages: [en]
    detail: no
    flat: no
    
# General --------------------------------------------------------------------

# use mutliple threads during import
threaded: yes
timeout: 5.0
verbose: no

# use the release-date of the original (first) release of an album?
original_date: no

# on multi-disk releases, assign track numbers for the whole album.
# If "per disk", make sure tracknames do not collide ("paths" setting).
per_disc_numbering: yes

# files matching these patterns are deleted from source after import
clutter: ["Thumbs.DB", ".DS_Store", "*.m3u", ".pls", "*.jpg", "*.m3u", "*.log", "*.cue"]

# files/directories matching one of these patterns are ignored during import
ignore: [".*", "*~", "System Volume Information"]


# Paths ----------------------------------------------------------------------

# Paths and filenames for music files
# relative to music directory
paths:
    default: $albumartist/$album%aunique{}/$track - $title
    singleton: Non-Album/$artist - $title
    comp: Compilations/$album%aunique{}/$track - $title
    albumtype_soundtrack: Soundtracks/$album%aunique{}/$track $title
    
# replace special characters in generated filenames
replace:
    '[\\/]': _
    '^\.': _
    '[\x00-\x1f]': _
    '[<>:"\?\*\|]': _
    '\.$': _
    '\s+$': ''

path_sep_replace: _

# filename for the album art
art_filename: cover  # results in "cover.jpg"

max_filename_length: 0  # unlimited


# User Interface -------------------------------------------------------------

color: yes
list_format_item: %upper{$artist} - $album - $track. $title
list_format_album: %upper{$albumartist} - $album
time_format: '%Y-%m-%d %H:%M:%S'
terminal_encoding: utf8

ui:
    terminal_width: 80
    length_diff_thresh: 10.0


# Auto Tagger ----------------------------------------------------------------

match:
    strong_rec_thresh: 0.17      # match 90% or better for auto import
    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: []
    track_length_grace: 10
    track_length_max: 30


# Plugins --------------------------------------------------------------------

plugins: [
    fetchart,
    lastgenre,
    #chroma,
    scrub,
    discogs,
    duplicates,
    #web,
    #lyrics,
    #echonest_tempo,
    #acousticbrainz,
    embedart
    #mbsync,
    #mpdupdate,
    #mpdstats,
    #missing,
    #fromfilename
]
#pluginpath: []


# Plugins Config -------------------------------------------------------------

#lyrics:
    #auto: yes
    #fallback: ''

#echonest_tempo:
 #   auto: yes

#discogs:
    #source_weight: 0.0
    
lastgenre:
   # whitelist: ~/.config/beets/genres.txt
    #canoncical: ~/.config/beets/genres-tree.yaml
    #fallback: ''
    auto: yes
    source: album

fetchart:
    auto: yes
    #maxwidth: 600
    #cautious: no
    cover_names: cover folder back

embedart:
    auto: yes
    maxwidth: 800

replaygain:
    auto: yes
    overwrite: yes
    albumgain: yes

# required for mpdstats
#mpd:
    #host: localhost
    #port: 6600
    #password:  # none
    
#musicbrainz:
    #host: 192.168.1.200:5000
    #ratelimit: 100

#mpdstats:
  #  rating: False
    # two ratings are calculated:
    # "rolling" based on recent development
    # "stable" based on all-time development
    # rating mix 0.0 is all "rolling", 1.0 is all "stable"
 #   rating_mix: 0.75

#missing:
  #  format: $albumartist - $album - $track - $title
 #   count: no
#    total: no

duplicates:
    checksum: no  # expensive
    tiebreak: { items: [bitrate] }



Adrian Sampson

unread,
Sep 4, 2018, 11:34:41 PM9/4/18
to beets...@googlegroups.com
Hi! You might be interested in this old ticket thread:

Adrian


--
You received this message because you are subscribed to the Google Groups "beets" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beets-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Robbie Sands

unread,
Sep 4, 2018, 11:54:43 PM9/4/18
to beets...@googlegroups.com
Thanks very much for the reply. After reading through trails of links for the last 20 mins I think I'm more confused than when I started. Would I be correct in concluding that it hasn't been done yet but people are interested?

Adrian Sampson

unread,
Sep 5, 2018, 8:26:24 AM9/5/18
to beets
Yep! That’s the case with most tickets that are still open. :)
Reply all
Reply to author
Forward
0 new messages