Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inline Plugin doesn't work #4016

Closed
omgiafs opened this issue Aug 17, 2021 · 4 comments
Closed

Inline Plugin doesn't work #4016

omgiafs opened this issue Aug 17, 2021 · 4 comments
Labels
needinfo We need more details or follow-up from the filer before this can be tagged "bug" or "feature."

Comments

@omgiafs
Copy link

omgiafs commented Aug 17, 2021

After upgrading Debian from 10 to 11 (Bullseye) Python was updated to 3.9.2 and beets 1.4.9 became broken, so i installed latest 1.5.0 version from master branch as @jackwilsdon wrote here using command pip install https://github.com/beetbox/beets/tarball/master.

When i tried to import album (which i successfully imported before but removed this album from library) filenames of tracks became unexpected:

omgiafs@nas:[~]:$beet ls -f '$path' album:Selvascapes
/data1/music/Lauge, Perry Frank/Selvascapes/$disc_and_track Canopy.mp3
/data1/music/Lauge, Perry Frank/Selvascapes/$disc_and_track Forest.mp3
/data1/music/Lauge, Perry Frank/Selvascapes/$disc_and_track Undergrowth.mp3
/data1/music/Lauge, Perry Frank/Selvascapes/$disc_and_track Leaves.mp3
/data1/music/Lauge, Perry Frank/Selvascapes/$disc_and_track Clearing.mp3
/data1/music/Lauge, Perry Frank/Selvascapes/$disc_and_track Sequoia.mp3
/data1/music/Lauge, Perry Frank/Selvascapes/$disc_and_track Myrtle.mp3
/data1/music/Lauge, Perry Frank/Selvascapes/$disc_and_track Windmill Hill.mp3
/data1/music/Lauge, Perry Frank/Selvascapes/$disc_and_track Tundra.mp3

Track names i expected must be like 01 Canopy.mp3 and so on.

As you can see in log, variables $disc and $track are populated in beets DB and in files tags:

omgiafs@nas:[~]:$beet ls -f 'disc=$disc   track=$track   title=$title' album:Selvascapes
disc=01   track=01   title=Canopy
disc=01   track=02   title=Forest
disc=01   track=03   title=Undergrowth
disc=01   track=04   title=Leaves
disc=01   track=05   title=Clearing
disc=01   track=06   title=Sequoia
disc=01   track=07   title=Myrtle
disc=01   track=08   title=Windmill Hill
disc=01   track=09   title=Tundra

Problem

Problem is Inline plugin not working in my case. I added two variables by Inline plugin, but it seems beets using exact string $VARIABLE instead value of VARIABLE.

Part of a config:

paths:
    default: $albumartist/$album%aunique{}/$disc_and_track $title

item_fields:
        disc_and_track: u'%02i.%02i' % (disc, track) if disctotal > 1 else u'%02i' % (track)

ATTENTION
If i use this

inline:
    item_fields:
        multidisc: 1 if disctotal > 1 else 0
        disc_and_track: u'%02i.%02i' % (disc, track) if disctotal > 1 else u'%02i' % (track)

in my config file, i get this after executing beet config:

inline:
    item_fields:
        multidisc: 1 if disctotal > 1 else 0
        disc_and_track: u'%02i.%02i' % (disc, track) if disctotal > 1 else u'%02i' % (track)

But if i use this

item_fields:
    multidisc: 1 if disctotal > 1 else 0
    disc_and_track: u'%02i.%02i' % (disc, track) if disctotal > 1 else u'%02i' % (track)

in my config file, as described in manual, i get this after executing beet config:

item_fields: {}

However, the plugin fails in both cases

Another strange thing is that there is no mention of adding items using the inline plugin in the log file, like here.
I mean there is no lines in my log file with inline: adding item field disc_and_track. And in general, there is no mention of plugins in the log file when the program is initialized.

Running this command in verbose (-vv) mode:

omgiafs@nas:[~]:$beet -vv import -I /data2/music/Lauge/Lauge\ FLAC/Albums/2021\ Selvascapes\ \(Lauge\ \&\ Perry\ Frank\)\ \(WEB\)
user configuration: /home/omgiafs/.config/beets/config.yaml
data directory: /home/omgiafs/.config/beets
plugin paths:
Sending event: pluginload
library database: /home/omgiafs/data/musiclibrary.db
library directory: /data1/music
Sending event: library_opened
Sending event: import_begin
Sending event: import_task_created
Sending event: import_task_start
Looking up: /data2/music/Lauge/Lauge FLAC/Albums/2021 Selvascapes (Lauge & Perry Frank) (WEB)
Tagging Lauge & Perry Frank - Selvascapes
No album ID found.
Search terms: Lauge & Perry Frank - Selvascapes
Album might be VA: False
Searching for MusicBrainz releases with: {'release': 'selvascapes', 'artist': 'lauge & perry frank', 'tracks': '9'}
Requesting MusicBrainz release 815429e6-4688-4f60-8711-8a3acdaacef4
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
primary MB release type: album
Sending event: mb_album_extract
Sending event: albuminfo_received
Candidate: Lauge - Nothingness (815429e6-4688-4f60-8711-8a3acdaacef4)
Computing track assignment...
...done.
Success. Distance: 0.71
Requesting MusicBrainz release f70a780e-6518-45ce-afa1-6541f94096c2
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
primary MB release type: album
Sending event: mb_album_extract
Sending event: albuminfo_received
Candidate: Lauge - Latitudes (f70a780e-6518-45ce-afa1-6541f94096c2)
Computing track assignment...
...done.
Success. Distance: 0.73
Requesting MusicBrainz release 82b727ee-cac3-44ae-8c85-0bb893dc79f8
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
primary MB release type: album
Sending event: mb_album_extract
Sending event: albuminfo_received
Candidate: Lauge - Oceanography (82b727ee-cac3-44ae-8c85-0bb893dc79f8)
Computing track assignment...
...done.
Success. Distance: 0.71
Requesting MusicBrainz release 77e76db8-0e16-4279-bb5b-9ce8453d35ac
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
primary MB release type: album
Sending event: mb_album_extract
Sending event: albuminfo_received
Candidate: Lauge - Oceanography (77e76db8-0e16-4279-bb5b-9ce8453d35ac)
Computing track assignment...
...done.
Success. Distance: 0.71
Requesting MusicBrainz release 06cf8bee-b16e-43cb-86a7-1bbf5ff4e34e
Sending event: mb_track_extract
primary MB release type: single
Sending event: mb_album_extract
Sending event: albuminfo_received
Candidate: Lauge - Sandslottet (06cf8bee-b16e-43cb-86a7-1bbf5ff4e34e)
Computing track assignment...
...done.
Success. Distance: 0.84
Requesting MusicBrainz release c305a729-e17f-4feb-ac41-f06b4bbac485
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
primary MB release type: album
Sending event: mb_album_extract
Sending event: albuminfo_received
Candidate: Lauge - Pusterum (c305a729-e17f-4feb-ac41-f06b4bbac485)
Computing track assignment...
...done.
Success. Distance: 0.79
Sending event: albuminfo_received
Candidate: Lauge, Perry Frank - Selvascapes (19714870)
Computing track assignment...
...done.
Success. Distance: 0.02
Evaluating 7 candidates.

/data2/music/Lauge/Lauge FLAC/Albums/2021 Selvascapes (Lauge & Perry Frank) (WEB) (9 items)
Sending event: import_task_before_choice
Sending event: before_choose_candidate
Correcting tags from:
    Lauge & Perry Frank - Selvascapes
To:
    Lauge, Perry Frank - Selvascapes
URL:
    https://www.discogs.com/Lauge-Perry-Frank-Selvascapes/release/19714870
(Similarity: 98.1%) (artist) (Discogs, CDr, 2021, UK, whitelabrecs, WLR096)
Sending event: import_task_choice
Sending event: import_task_apply
0 of 9 items replaced
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
convert: Encoding /data2/music/Lauge/Lauge FLAC/Albums/2021 Selvascapes (Lauge & Perry Frank) (WEB)/05. Clearing.flac
convert: Encoding /data2/music/Lauge/Lauge FLAC/Albums/2021 Selvascapes (Lauge & Perry Frank) (WEB)/07. Myrtle.flac
convert: Encoding /data2/music/Lauge/Lauge FLAC/Albums/2021 Selvascapes (Lauge & Perry Frank) (WEB)/09. Tundra.flac
convert: Encoding /data2/music/Lauge/Lauge FLAC/Albums/2021 Selvascapes (Lauge & Perry Frank) (WEB)/08. Windmill Hill.flac
convert: Encoding /data2/music/Lauge/Lauge FLAC/Albums/2021 Selvascapes (Lauge & Perry Frank) (WEB)/06. Sequoia.flac
convert: Encoding /data2/music/Lauge/Lauge FLAC/Albums/2021 Selvascapes (Lauge & Perry Frank) (WEB)/04. Leaves.flac
convert: Encoding /data2/music/Lauge/Lauge FLAC/Albums/2021 Selvascapes (Lauge & Perry Frank) (WEB)/02. Forest.flac
convert: Encoding /data2/music/Lauge/Lauge FLAC/Albums/2021 Selvascapes (Lauge & Perry Frank) (WEB)/01. Canopy.flac
convert: Encoding /data2/music/Lauge/Lauge FLAC/Albums/2021 Selvascapes (Lauge & Perry Frank) (WEB)/03. Undergrowth.flac
convert: Finished encoding /data2/music/Lauge/Lauge FLAC/Albums/2021 Selvascapes (Lauge & Perry Frank) (WEB)/02. Forest.flac
Sending event: write
Sending event: after_write
Sending event: database_change
convert: Finished encoding /data2/music/Lauge/Lauge FLAC/Albums/2021 Selvascapes (Lauge & Perry Frank) (WEB)/07. Myrtle.flac
Sending event: write
Sending event: after_write
Sending event: database_change
convert: Finished encoding /data2/music/Lauge/Lauge FLAC/Albums/2021 Selvascapes (Lauge & Perry Frank) (WEB)/08. Windmill Hill.flac
Sending event: write
Sending event: after_write
Sending event: database_change
convert: Finished encoding /data2/music/Lauge/Lauge FLAC/Albums/2021 Selvascapes (Lauge & Perry Frank) (WEB)/09. Tundra.flac
Sending event: write
Sending event: after_write
Sending event: database_change
convert: Finished encoding /data2/music/Lauge/Lauge FLAC/Albums/2021 Selvascapes (Lauge & Perry Frank) (WEB)/04. Leaves.flac
Sending event: write
Sending event: after_write
Sending event: database_change
convert: Finished encoding /data2/music/Lauge/Lauge FLAC/Albums/2021 Selvascapes (Lauge & Perry Frank) (WEB)/06. Sequoia.flac
Sending event: write
Sending event: after_write
Sending event: database_change
convert: Finished encoding /data2/music/Lauge/Lauge FLAC/Albums/2021 Selvascapes (Lauge & Perry Frank) (WEB)/03. Undergrowth.flac
Sending event: write
Sending event: after_write
Sending event: database_change
convert: Finished encoding /data2/music/Lauge/Lauge FLAC/Albums/2021 Selvascapes (Lauge & Perry Frank) (WEB)/05. Clearing.flac
Sending event: write
Sending event: after_write
Sending event: database_change
convert: Finished encoding /data2/music/Lauge/Lauge FLAC/Albums/2021 Selvascapes (Lauge & Perry Frank) (WEB)/01. Canopy.flac
Sending event: write
Sending event: after_write
Sending event: database_change
fetchart: trying source filesystem for album Lauge, Perry Frank - Selvascapes
fetchart: using well-named art file Cover.jpg
ImageMagick version check failed: [Errno 2] No such file or directory: 'magick'
artresizer: method is (2, (6, 9, 11), True)
fetchart: image size: (600, 600)
fetchart: using local image /data2/music/Lauge/Lauge FLAC/Albums/2021 Selvascapes (Lauge & Perry Frank) (WEB)/Cover.jpg
lastgenre: added last.fm album genre (None):
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
replaygain: analyzing Lauge, Perry Frank - Selvascapes (2021)
Sending event: database_change
replaygain: applied track gain -5.320000000000007 LU, peak 0.97998046875 of FS
Sending event: database_change
replaygain: applied album gain -4.38000000000001 LU, peak 0.970947265625 of FS
replaygain: done analyzing Lauge, Perry Frank - Selvascapes (2021) - Canopy
Sending event: database_change
replaygain: applied track gain -3.1500000000000057 LU, peak 0.97259521484375 of FS
Sending event: database_change
replaygain: applied album gain -4.38000000000001 LU, peak 0.970947265625 of FS
replaygain: done analyzing Lauge, Perry Frank - Selvascapes (2021) - Forest
Sending event: database_change
replaygain: applied track gain -3.5200000000000102 LU, peak 0.977996826171875 of FS
Sending event: database_change
replaygain: applied album gain -4.38000000000001 LU, peak 0.970947265625 of FS
replaygain: done analyzing Lauge, Perry Frank - Selvascapes (2021) - Undergrowth
Sending event: database_change
replaygain: applied track gain -3.3900000000000006 LU, peak 0.981048583984375 of FS
Sending event: database_change
replaygain: applied album gain -4.38000000000001 LU, peak 0.970947265625 of FS
replaygain: done analyzing Lauge, Perry Frank - Selvascapes (2021) - Leaves
Sending event: database_change
replaygain: applied track gain -3.430000000000007 LU, peak 0.977081298828125 of FS
Sending event: database_change
replaygain: applied album gain -4.38000000000001 LU, peak 0.970947265625 of FS
replaygain: done analyzing Lauge, Perry Frank - Selvascapes (2021) - Clearing
Sending event: database_change
replaygain: applied track gain -2.7900000000000063 LU, peak 0.98248291015625 of FS
Sending event: database_change
replaygain: applied album gain -4.38000000000001 LU, peak 0.970947265625 of FS
replaygain: done analyzing Lauge, Perry Frank - Selvascapes (2021) - Sequoia
Sending event: database_change
replaygain: applied track gain -5.150000000000006 LU, peak 0.972991943359375 of FS
Sending event: database_change
replaygain: applied album gain -4.38000000000001 LU, peak 0.970947265625 of FS
replaygain: done analyzing Lauge, Perry Frank - Selvascapes (2021) - Myrtle
Sending event: database_change
replaygain: applied track gain -4.140000000000001 LU, peak 0.984832763671875 of FS
Sending event: database_change
replaygain: applied album gain -4.38000000000001 LU, peak 0.970947265625 of FS
replaygain: done analyzing Lauge, Perry Frank - Selvascapes (2021) - Windmill Hill
Sending event: database_change
replaygain: applied track gain -4.38000000000001 LU, peak 0.970947265625 of FS
Sending event: database_change
replaygain: applied album gain -4.38000000000001 LU, peak 0.970947265625 of FS
replaygain: done analyzing Lauge, Perry Frank - Selvascapes (2021) - Tundra
Sending event: item_copied
Sending event: database_change
Sending event: database_change
Sending event: write
Sending event: after_write
Sending event: item_copied
Sending event: database_change
Sending event: database_change
Sending event: write
Sending event: after_write
Sending event: item_copied
Sending event: database_change
Sending event: database_change
Sending event: write
Sending event: after_write
Sending event: item_copied
Sending event: database_change
Sending event: database_change
Sending event: write
Sending event: after_write
Sending event: item_copied
Sending event: database_change
Sending event: database_change
Sending event: write
Sending event: after_write
Sending event: item_copied
Sending event: database_change
Sending event: database_change
Sending event: write
Sending event: after_write
Sending event: item_copied
Sending event: database_change
Sending event: database_change
Sending event: write
Sending event: after_write
Sending event: item_copied
Sending event: database_change
Sending event: database_change
Sending event: write
Sending event: after_write
Sending event: item_copied
Sending event: database_change
Sending event: database_change
Sending event: write
Sending event: after_write
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: import_task_files
Sending event: art_set
Sending event: database_change
acousticbrainz: getting data for: Lauge, Perry Frank - Selvascapes (2021) - Canopy
acousticbrainz: fetching URL: https://acousticbrainz.org/19714870-1/low-level
acousticbrainz: recording ID 19714870-1 not found
acousticbrainz: getting data for: Lauge, Perry Frank - Selvascapes (2021) - Forest
acousticbrainz: fetching URL: https://acousticbrainz.org/19714870-2/low-level
acousticbrainz: recording ID 19714870-2 not found
acousticbrainz: getting data for: Lauge, Perry Frank - Selvascapes (2021) - Undergrowth
acousticbrainz: fetching URL: https://acousticbrainz.org/19714870-3/low-level
acousticbrainz: recording ID 19714870-3 not found
acousticbrainz: getting data for: Lauge, Perry Frank - Selvascapes (2021) - Leaves
acousticbrainz: fetching URL: https://acousticbrainz.org/19714870-4/low-level
acousticbrainz: recording ID 19714870-4 not found
acousticbrainz: getting data for: Lauge, Perry Frank - Selvascapes (2021) - Clearing
acousticbrainz: fetching URL: https://acousticbrainz.org/19714870-5/low-level
acousticbrainz: recording ID 19714870-5 not found
acousticbrainz: getting data for: Lauge, Perry Frank - Selvascapes (2021) - Sequoia
acousticbrainz: fetching URL: https://acousticbrainz.org/19714870-6/low-level
acousticbrainz: recording ID 19714870-6 not found
acousticbrainz: getting data for: Lauge, Perry Frank - Selvascapes (2021) - Myrtle
acousticbrainz: fetching URL: https://acousticbrainz.org/19714870-7/low-level
acousticbrainz: recording ID 19714870-7 not found
acousticbrainz: getting data for: Lauge, Perry Frank - Selvascapes (2021) - Windmill Hill
acousticbrainz: fetching URL: https://acousticbrainz.org/19714870-8/low-level
acousticbrainz: recording ID 19714870-8 not found
acousticbrainz: getting data for: Lauge, Perry Frank - Selvascapes (2021) - Tundra
acousticbrainz: fetching URL: https://acousticbrainz.org/19714870-9/low-level
acousticbrainz: recording ID 19714870-9 not found
Sending event: album_imported
Sending event: import
Sending event: cli_exit

Led to my problem.

Setup

  • OS: Debian GNU/Linux 11 (bullseye) 5.10.0-8-amd64
  • Python version: Python 3.9.2 (default, Feb 28 2021, 17:03:44)
  • beets version: 1.5.0
  • Turning off plugins made problem go away: no

My configuration (output of beet config) is:

omgiafs@nas:[~]:$beet config
user configuration: /home/omgiafs/.config/beets/config.yaml
data directory: /home/omgiafs/.config/beets
plugin paths:
Sending event: pluginload
library database: /home/omgiafs/data/musiclibrary.db
library directory: /data1/music
Sending event: library_opened
directory: /data1/music
library: ~/data/musiclibrary.db

plugins: inline convert discogs acousticbrainz replaygain fetchart lastgenre lyrics unimported
pluginpath: []
ignore:
- .*
- '*~'
- System Volume Information
- lost+found
ignore_hidden: yes

replace:
    '[\\/]': _
    ^\.: _
    '[\x00-\x1f]': _
    '[<>:"\?\*\|]': _
    \.$: _
    \s+$: ''
    ^\s+: ''
    ^-: _
asciify_paths: no
art_filename: cover
threaded: yes

format_item: $artist - $album ($year) - $title
format_album: $albumartist - $album ($year)
sort_item: artist+ album+ year+ disc+ track+

sort_album: albumartist+ album+ year+
sort_case_insensitive: yes
original_date: no
artist_credit: no
per_disc_numbering: yes

aunique:
    keys: albumartist album
    disambiguators: albumtype year label catalognum albumdisambig releasegroupdisambig
    bracket: '[]'
terminal_encoding: utf8

clutter: [Thumbs.DB, .DS_Store]
max_filename_length: 0
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

import:
    write: yes
    copy: yes
    move: no
    link: no
    hardlink: no
    resume: ask
    incremental: yes
    incremental_skip_later: no
    from_scratch: no
    quiet_fallback: skip
    none_rec_action: ask
    timid: no
    log: ~/log/beets.log
    default_action: apply
    languages: []
    detail: no
    group_albums: no
    autotag: yes
    duplicate_action: ask
    bell: no
    set_fields: {}
    delete: no
    quiet: no
    singletons: no
    flat: no
    pretend: no
    search_ids: []

musicbrainz:
    host: musicbrainz.org
    ratelimit: 1
    ratelimit_interval: 1.0
    searchlimit: 6

match:
    strong_rec_thresh: 0.06
    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

paths:
    albumtype:soundtrack: Soundtracks/$album/$disc_and_track $title
    default: $albumartist/$album%aunique{}/$disc_and_track $title
    singleton: $artist/Singles/$title
    comp: Compilations/$album%aunique{}/$disc_and_track $title
item_fields:
        multidisc: 1 if disctotal > 1 else 0
        disc_and_track: u'%02i.%02i' % (disc, track) if disctotal > 1 else u'%02i' % (track)
path_sep_replace: _

overwrite_null:
    album: []
    track: []
timeout: 5.0
verbose: yes
time_format: '%Y-%m-%d %H:%M:%S'
format_raw_length: no

statefile: ~/data/state.pickle
pathfields: {}
item_fields: {}
album_fields: {}
web:
    host: 127.0.0.1
    port: 8337
    cors: ''
    cors_supports_credentials: no
    reverse_proxy: no
    include_paths: no
convert:
    dest:
    pretend: no
    threads: 12
    format: mp3
    id3v23: inherit
    formats:
        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: /home/omgiafs/bin/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
    max_bitrate: 0
    auto: yes
    tmpdir:
    quiet: no
    embed: yes

    paths: {}
    no_convert: format:mp3
    never_convert_lossy_files: no
    copy_album_art: yes
    album_art_maxwidth: 2048
    link: no
    hardlink: no
    delete_originals: no
discogs:
    user_token: REDACTED
    index_tracks: yes
    source_weight: 0.0
    apikey: REDACTED
    apisecret: REDACTED
    tokenfile: discogs_token.json
    separator: ', '
acousticbrainz:
    auto: yes
    force: no
replaygain:
    auto: yes
    overwrite: no
    targetlevel: 89
    backend: gstreamer
fetchart:
    minwidth: 600
    maxwidth: 1200
    enforce_ratio: 0.5%
    sources: filesystem itunes amazon google
    google_key: AIzaSyCAAmgxyWb5ZT_sowywaV6SCELozhbU5Go
lyrics:
    auto: no
    force: no
    google_API_key: AIzaSyCAAmgxyWb5ZT_sowywaV6SCELozhbU5Go
lastgenre:
    auto: yes
    force: yes
    count: 5
unimported:
    ignore_extensions: jpg png
permissions:
    file: 644
    dir: 755

@sampsyo
Copy link
Member

sampsyo commented Aug 17, 2021

Huh, that's pretty strange! Can you try typing beet version to see if that reports the plugin as enabled?

@sampsyo sampsyo added the needinfo We need more details or follow-up from the filer before this can be tagged "bug" or "feature." label Aug 17, 2021
@omgiafs
Copy link
Author

omgiafs commented Aug 17, 2021

Huh, that's pretty strange! Can you try typing beet version to see if that reports the plugin as enabled?

omgiafs@nas:[~]:$beet version
user configuration: /home/omgiafs/.config/beets/config.yaml
data directory: /home/omgiafs/.config/beets
plugin paths: /home/omgiafs/.local/lib/python3.9/site-packages/beetsplug
Sending event: pluginload
library database: /home/omgiafs/data/musiclibrary.db
library directory: /data1/music
Sending event: library_opened
beets version 1.5.0
Python version 3.9.2
plugins: acousticbrainz, convert, discogs, fetchart, inline, lastgenre, lyrics, replaygain, unimported
Sending event: cli_exit

Additional information may be helpful. The discogs plugin also doesn't work as expected. It fills mb_ * tags in the file with data from the Discogs service (not UUID) and does not create discogs_ * tags in the file. Is this how the plugin after #3413 should work? I also have a Funkwhale instance, and adding music there when the MB tags in files are filled with non-UUIDs is a pain in the ass, excuse my Klatchian.

@sampsyo
Copy link
Member

sampsyo commented Aug 17, 2021

Got it. My intuition here, although it could be very wrong, is that something's going wrong with the YAML parsing. Especially since the configuration doesn't seem to print out correctly from beet config when you've entered it the right way.

I notice that your configuration as pasted above does have two entries for item_fields. First this:

item_fields:
        multidisc: 1 if disctotal > 1 else 0
        disc_and_track: u'%02i.%02i' % (disc, track) if disctotal > 1 else u'%02i' % (track)

And later this:

item_fields: {}

Is there also a duplicate in your config.yaml?

@omgiafs
Copy link
Author

omgiafs commented Aug 17, 2021

Is there also a duplicate in your config.yaml?

Shame on me, shame! Indeed, there are two occurrences of item_fields in the config. This is strange because on version 1.4.9 this config worked as expected and there were no double occurrences of item_fields, since I created it manually from scratch.

@omgiafs omgiafs closed this as completed Aug 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needinfo We need more details or follow-up from the filer before this can be tagged "bug" or "feature."
Projects
None yet
Development

No branches or pull requests

2 participants