beetbox / beets

music library manager and MusicBrainz tagger
http://beets.io/
MIT License
12.73k stars 1.81k forks source link

Import an album with track without ID #4110

Closed catap closed 2 years ago

catap commented 2 years ago

Problem

I'm trying to import an album where the fist track hasn't got an ID. Autotagger suggest to update all indexes to +1 and set 1 to the first track which hasn't got and ID:

Tagging:
    Михаил Щербаков - Fair Lawn
URL:
    https://musicbrainz.org/release/e2515072-efe1-4cf7-b366-d321380a02dc
(Similarity: 87.3%) (tracks) (CD)
 * Начало (#0)            -> Начало (#1)
 * Дожил (#1)             -> Дожил (#2) (index)
 * То галопом (#2)        -> То галопом (#3) (index)
 * Ты черный волк (#3)   -> Ты черный волк (#4) (index)
 * Ничему не поверю (#4)  -> Ничему не поверю (#5) (index)
 * То ли дело (#5)        -> То ли дело (#6) (index)
 * День деньской (#6)    -> День деньской (#7) (index)
 * Навещая знакомый (#7) -> Навещая знакомый (#8) (index)
 * Если (#8)              -> Если (#9) (index)
 * Помнишь как (#9)       -> Помнишь как (#10) (index)
 * До поезда (#10)        -> До поезда (#11) (index)
 * Что в чужом (#11)      -> Что в чужом (#12) (index)
 * Когда не долг бы (#12) -> Когда не долг бы (#13) (index)
 * Не нарушать бы (#13)   -> Не нарушать бы (#14) (index)

Setup

My configuration (output of beet config) is:

lyrics:
    bing_lang_from: []
    auto: yes
    sources: musixmatch genius tekstowo google
    google_API_key: REDACTED
    google_engine_ID: REDACTED
    bing_client_secret: REDACTED
    bing_lang_to:
    genius_api_key: REDACTED
    fallback:
    force: no
    local: no
directory: /Volumes/music
asciify_paths: yes

import:
    move: yes
follow:
    auto: yes
    email: REDACTED
    password: REDACTED
    userid: REDACTED
fetchart:
    sources: filesystem coverart itunes amazon albumart lastfm
    lastfm_key: REDACTED
    auto: yes
    minwidth: 0
    maxwidth: 0
    quality: 0
    max_filesize: 0
    enforce_ratio: no
    cautious: no
    cover_names:
    - cover
    - front
    - art
    - album
    - folder
    google_key: REDACTED
    google_engine: 001442825323518660753:hrh5ch1gjzm
    fanarttv_key: REDACTED
    store_source: no
    high_resolution: no

musicbrainz:
    user: catap
    pass: REDACTED
mbcollection:
    auto: yes
    remove: yes
    collection: 04540b29-ba5e-4e0e-82e8-161035854aa4
smartplaylist:
    auto: yes
    relative_to: /Volumes/music
    prefix: REDACTED
    urlencode: yes
    forward_slash: yes
    playlist_dir: ~/Music/playlists
    playlists: [{name: _Everything.m3u, query: ''}, {name: $albumartist/_Everything.m3u, query: ''}, {name: '$albumartist/$album%aunique{}.m3u', query: ''}]
convert:
    copy_album_art: yes
    auto: no
    format: flac
    formats:
        copy_m4a:
            command: ffmpeg -i $source -y -vn -c:a copy $dest
            extension: m4a
        aac:
            command: ffmpeg -i $source -y -vn -acodec aac -aq 1 $dest
            extension: m4a
        alac:
            command: ffmpeg -i $source -y -vn -acodec alac $dest
            extension: m4a
        flac: ffmpeg -i $source -y -vn -acodec flac $dest
        mp3: ffmpeg -i $source -y -vn -aq 2 $dest
        opus: ffmpeg -i $source -y -vn -acodec libopus -ab 96k $dest
        ogg: ffmpeg -i $source -y -vn -acodec libvorbis -aq 3 $dest
        wma: ffmpeg -i $source -y -vn -acodec wmav2 -vn $dest
    dest:
    pretend: no
    link: no
    hardlink: no
    threads: 12
    id3v23: inherit
    max_bitrate: 500
    tmpdir:
    quiet: no
    embed: yes

    paths: {}
    no_convert: ''
    never_convert_lossy_files: no
    album_art_maxwidth: 0
    delete_originals: no

paths:
    default: '%the{$albumartist}/$album%aunique{}/$track $title'
    singleton: Non-Album/$artist/$title
    comp: Compilations/$album%aunique{}/$track $title
ibroadcast:
    username: kirill@korins.ky
    password: jyhXyk-capzuh-2xunvi
    auto: no

plugins: convert duplicates edit embedart fetchart follow fuzzy ibroadcast info lastgenre lyrics mbcollection mbsubmit mbsync missing smartplaylist the web
duplicates:
    album: no
    checksum: ''
    copy: ''
    count: no
    delete: no
    format: ''
    full: no
    keys: []
    merge: no
    move: ''
    path: no
    tiebreak: {}
    strict: no
    tag: ''
lastgenre:
    whitelist: yes
    min_weight: 10
    count: 1
    fallback:
    canonical: no
    source: album
    force: yes
    auto: yes
    separator: ', '
    prefer_specific: no
    title_case: yes
missing:
    count: no
    total: no
    album: no
fuzzy:
    prefix: '~'
    threshold: 0.7
embedart:
    maxwidth: 0
    auto: yes
    compare_threshold: 0
    ifempty: no
    remove_art_file: no
    quality: 0
mbsubmit:
    format: $track. $title - $artist ($length)
    threshold: medium
the:
    the: yes
    a: yes
    format: '{0}, {1}'
    strip: no
    patterns: []
edit:
    albumfields: album albumartist
    itemfields: track title artist album
    ignore_fields: id path
web:
    host: 127.0.0.1
    port: 8337
    cors: ''
    cors_supports_credentials: no
    reverse_proxy: no
    include_paths: no
    readonly: yes
sampsyo commented 2 years ago

Hello! You may be looking for per_disc_numbering: https://beets.readthedocs.io/en/stable/reference/config.html#per-disc-numbering

catap commented 2 years ago

@sampsyo not quite. Here a single disk release where the first track is some introduction without any track ID. See picture from muzicbrainz:

Screenshot 2021-10-19 at 15 08 56

sampsyo commented 2 years ago

Indeed. But as the docs say, this option also affects that numbering:

When this option is off (the default), even “pregap” hidden tracks are numbered from one, not zero, so other track numbers may appear to be bumped up by one. When it is on, the pregap track for each disc can be numbered zero.

catap commented 2 years ago

@sampsyo both possible value of per_disc_numbering: yes and no imports this album with the first track with ID 1 instead of 0.

catap commented 2 years ago

Editing album by hand and re-run beet mbsync -m moved tracks to start from 1 for this track without track.

stale[bot] commented 2 years ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.