#beets

/

      • thunderrd joined the channel
      • cobra2
        this is what i have for getting a year in my path.
      • you could probably just replace the initial if statement with if catalognum
      • elGALLO
        does it matter if it is placed before or after
      • path:
      • default: etc
      • cobra2
        that's inside my path:
      • Freso
        elGALLO: The order of config options shouldn't matter.
      • (IIRC.)
      • cobra2
        my defailt path default: $albumartist - %if{$release_year, ($release_year) $album} [$avgbitrate]/%if{$multidisc, Disc.$disc/}$track - $title
      • using 3 inline statements in there, release_year, avgbitrate, multidisk
      • axion
        The queries are tested in the order they appear in the configuration file, meaning that if an item matches multiple queries, beets will use the path format for the first matching query.
      • Freso
        axion: But the position of the inline: config in relation to the path: config shouldn't matter, right?
      • axion
        That should not matter, no.
      • elGALLO
      • so if%[$string will only fill that spot IF theres a value?
      • what about only returning 24 FLAC for $bitdepth,
      • %if{$bitdepth = 16 return 0
      • Freso
      • elGALLO
        so %if{$bitdepth,24}
      • Freso
        Will add "24" whenever $bitdepth is != 0.
      • beat joined the channel
      • eRockCE has quit
      • jcazevedo has quit
      • eRockCE joined the channel
      • sjk
        One of my albums contain duplicates. filename.m4a and filename.1.m4a. They are the same size.
      • I'm trying to zap them with the duplicates plugin, but "beet duplicates" produces no output
      • darwin
        are they the same track number?
      • sjk
        darwin: yes
      • Hm, there should be a "beet diff file1 file2"... :)
      • NOTICE: [beets] EnduringGuerila opened issue #2291: Lastgenre not adding more than one genre https://github.com/beetbox/beets/issues/2291
      • darwin
        one is probably not actually tracked by beets, etc.
      • sjk
        How do I find out?
      • hm, I think they are, though
      • beet ls shows the duplicates
      • sjk shrugs
      • NOTICE: [beets] EnduringGuerila opened issue #2292: copy/move extra files to new dir https://github.com/beetbox/beets/issues/2292
      • Fixed it with beet rm -f "path::.*\.1.m4a" for now
      • eRockCE has quit
      • Freso
        `beet diff` would be a neat plugin.
      • I guess it could be pretty simple in "just" getting the output of `beet list` or `beet info` and passing it through a diff Python module thing.
      • Freso can't remember if one such is part of the standard package
      • polemic
        would it be a lot more useful than the log?
      • sjk
        Mybe difflib?
      • polemic
        ignore me, ofc it would be since it would include deletes and moves
      • Freso
        polemic: How would the log be able to tell the difference between two (or more) files?
      • (Or are you replying to something different?)
      • polemic
        oh... I thought you just meant diff between library
      • not files
      • my mistake
      • elGALLO has quit
      • why does beet import -I /mnt/music/path/to/\[2006\]\ Some\ Album return: "error: no such file or directory: /mnt/music/path/to/[2006]"?
      • same thing happens if I put path in "s
      • but it works fine if I navigate to the album directory and do beet import -I .
      • xarph
        take out the \s, put it in single quotes
      • polemic
        single quotes? okay. Will try that. Thanks
      • xarph
        double quotes tell the shell to be Clever, single quotes mean to take the enclosing text completely literally
      • polemic
        gotcha
      • thank you :)
      • nope
      • still does it
      • I am probably showing myself to be a real noob, but when enclosed in 's beets still thinks that the path ends with the first space
      • so beet import '/path/to/2010 foo' returns "error: no such file or directory: /path/to/2010
      • xarph
        are you typing the path or copy/pasting it
      • I suspect there might be a weird nonprintable character in there
      • polemic
        typing it
      • this happens with any path with a space in it
      • as far as I can see
      • xarph
        what platform are you on? mac, linux, windows?
      • polemic
        linux
      • running beets in a debian-testing vm
      • xarph
        and are you running a shell with tab-complete?
      • polemic
        unless that is enabled by default, I do not think so.
      • h wait
      • oh wait, I understand your question, yes I am
      • xarph
        and if you do ls /path/to etc and maniacally hit tab to complete it, does it work?
      • polemic
        yes, but it uses \ to escape spaces etc
      • xarph
        yes tab-complete does that
      • polemic
        also works with ' and "
      • and ls
      • xarph
        so if you get it to where you can ls the directory, and then hit up arrow for your shell history, and change ls to beet import, what happens?
      • polemic
        errors mistaking the \ escaped space for the end of the input
      • xarph
        you mind throwing the shell session into http://paste.debian.net/ ?
      • polemic
        one sec, let me check how
      • xarph
        copy and paste generally
      • I don't know what terminal you're using tho
      • polemic
        what would you like me to paste?
      • xarph
        the ls and the beet error
      • polemic
        sure np
      • xarph
        the key is I think there's something on the path that's important that's being overlooked
      • polemic
        possibly the numbers?
      • xarph
        yes, perhaps
      • polemic
      • I think it might be the -
      • xarph
        wow!
      • that should be working!
      • polemic
        when I try wrapping the \ escaped path but wrap it in 's beets errors with "error: no such option -\"
      • xarph is it possible that it's being on the client side of ssh?
      • *the problem is on
      • xarph
        not if it's in the same session
      • did you try
      • '/mnt/music/2009\ -\ I\ Had\ the\ Blues\ But\ I\ Shook\ Them\ Loose/'
      • er
      • '/mnt/music/2009 - I Had the Blues But I Shook Them Loose/'
      • polemic
        yup
      • xarph
        single quoted, no \s?
      • polemic
        yup, same error
      • same with "s too
      • I am running it in screen
      • if that matters?
      • xarph
        that shouldn't matter
      • do beet import -v '/mnt/music/2009 - I Had the Blues But I Shook Them Loose/'
      • that does verbose output
      • so we can see if the path getting into beets is being mangled
      • polemic
        standard stuff about loading plugins and library etc then: error: no such file or directory: /mnt/music/2009
      • xarph
        I think for now you're gonna have to rename that directory to import it, unless one of the gurus here has an idea. The only thing left I can think of is if it's running in a weirdo shell or if it's in python3 and there's a python3 change that we haven't been aware of in terms of shell globbing
      • polemic
        Python 2.7.12+
      • I just had an idea
      • eRockCE joined the channel
      • nope, I thought it might be something to do with autocompletion, but turned it off and still remains
      • *beets autocompletion
      • the weird thing is
      • I just realized that my cron import scripts are working fine
      • so this must only happen in my shell
      • xarph
        are you using bash, tcsh, zsh?
      • polemic
        bash
      • may I pm you?
      • xarph
        ¯\_(ツ)_/¯
      • yeah, I suppose
      • eRockCE has quit
      • chatter joined the channel
      • eRockCE joined the channel
      • NOTICE: [beets] sampsyo closed issue #2289: AttributeError: 'Session' object has no attribute 'prepare_request' https://github.com/beetbox/beets/issues/2289
      • beat has quit
      • NOTICE: [beets] sampsyo closed issue #2292: copy/move extra files to new dir https://github.com/beetbox/beets/issues/2292
      • beat joined the channel
      • Houston has quit