Holzhaus / beets-extrafiles

A plugin for beets that copies additional files and directories during the import process.
MIT License
46 stars 10 forks source link

Plugin not running on import #25

Closed oldsweatyman closed 3 years ago

oldsweatyman commented 3 years ago

The plugin simply doesn't run on import, apparently. Running the following:

beet -vv import "/mnt/user/downloads/permaseed/temp/[1983] Rebel Yell (2010 Audio Fidelity AFZ 036)/"

and I get a log listing what the rest of my plugins are doing and what beets is doing, but nothing with "extrafiles" and nothing gets imported.

Running beets on the linuxserver docker container. I used pip3 install --user beets-extrafiles as root in the container for installation as instructed.

Here's my config:

plugins: fetchart embedart convert scrub lastgenre chroma web ftintitle importadded inline discogs badfiles bandcamp duplicates mbsync extrafiles originquery 
directory: /mnt/user/downloads/hardlinks/music
library: /config/musiclibrary.blb
art_filename: cover
threaded: yes
original_date: no
per_disc_numbering: yes

paths:
    default: 'Albums/%asciify{$albumartist} - %asciify{$album} ($year) %if{$catalognum,[$catalognum] ,$albumdisambig }[$country $u_media $u_format]/%if{$multidisc,$disc-}$track. %asciify{$title}'
    singleton: 'Singles/%asciify{$artist} - %asciify{$title}'
    comp: 'Compilations/%asciify{$albumartist} - %asciify{$album} ($year) %if{$catalognum,[$catalognum] ,$albumdisambig }[$country $u_media $u_format]/%if{$multidisc,$disc-}$track. %asciify{$title}'
    albumtype_soundtrack: 'Soundtracks/%asciify{$albumartist} - %asciify{$album} ($year) %if{$catalognum,[$catalognum] ,$albumdisambig }[$country $u_media $u_format]/%if{$multidisc,$disc-}$track. %asciify{$title}'
ignore: .AppleDouble ._* *~ .DS_Store 
import:
    write: yes
    copy: no
    move: no
    hardlink: yes
    resume: ask
    incremental: yes
    quiet_fallback: skip
    timid: no
    log: /config/beet.log
lastgenre:
    auto: yes
    source: album   
embedart:
    auto: yes   
fetchart:
    auto: yes 
replaygain:
    auto: no  
scrub:
    auto: yes 
replace:
    '^\.': ' - '
    '[\x00-\x1f]': _
    '[\?\*\|]': _
    '[\xE8-\xEB]': e
    '[\xEC-\xEF]': i
    '[\xE2-\xE6]': a
    '[\xF2-\xF6]': o
    '[\xF8]': o
    '\.$': _
    '\s+$': '' 
web:
    host: 0.0.0.0
    port: 8337
originquery:
    origin_file: "TrackerMetadata/redacted - Release.json"
    tag_patterns:
        media: '$.response.torrent.media'
        year: '$.response.torrent.remasterYear'
        label: '$.response.torrent.remasterRecordLabel'
        catalognum: '$.response.torrent.remasterCatalogueNumber'
        albumdisambig: '$.response.torrent.remasterTitle' 
ftintitle:
    auto: yes
importadded:
    preserve_mtimes: yes
    preserve_write_mtimes: yes
extrafiles:
    patterns:
        artworkdir:
            - '*.[jJ][pP][gG]'
            - '*.[pP][nN][gG]'
            - '*.[jJ][pP][eE][gG]'
            - '[sS]cans/'
            - '[aA]rtwork/'
        other:
            - '*.[cC][uU][eE]'
            - '*.[lL][oO][gG]'
            - '*.[tT][xX][tT]'
            - '*.[sS][fF][vV]'
            - '*.[mM]3[uU]'
            - '*.[mM]3[uU]8'
            - '*.[nN][fF][oO]'
            - '*.[pP][dD][fF]'
            - '*.[mM][dD]5'
            - '*.[pP][lL][sS]'
            - '*.[aA][cC][cC][uU]'
    paths:
        artworkdir: $albumpath/artwork/$filename
        other: $albumpath/$filename
item_fields:
    multidisc: 1 if disctotal > 1 else 0
album_fields:
    u_format: |
        item = items[0]
        if item.format == "FLAC" and item.bitdepth == 24 and item.samplerate == 96:
            return "FLAC 24-96"
        if item.format == "FLAC" and item.bitdepth == 24 and item.samplerate == 192:
            return "FLAC 24-192"
        return item.format
    u_media: |
        item = items[0]
        if "Vinyl" in item.media:
            item.media = "Vinyl"
        elif "Digital Media" in item.media:
            item.media = "WEB"
        return item.media     
musicbrainz:
    extra_tags: [year, catalognum, country, media, label]
oldsweatyman commented 3 years ago

Just an update, it still happens when I install using pip3 install beets-extrafiles (where the rest of my plugins are)

also, the pip install commands install the version of extrafiles that still has beets.mediafile instead of mediafile...

oldsweatyman commented 3 years ago

Closing this issue because it was that extrafiles doesn't work with hardlinks, only movie or copy.