20:20 PM
thunderrd joined the channel
20:20 PM
cobra2
this is what i have for getting a year in my path.
20:20 PM
20:21 PM
you could probably just replace the initial if statement with if catalognum
20:21 PM
elGALLO
does it matter if it is placed before or after
20:21 PM
path:
20:21 PM
default: etc
20:21 PM
cobra2
that's inside my path:
20:22 PM
Freso
elGALLO: The order of config options shouldn't matter.
20:24 PM
(IIRC.)
20:25 PM
cobra2
my defailt path default: $albumartist - %if{$release_year, ($release_year) $album} [$avgbitrate]/%if{$multidisc, Disc.$disc/}$track - $title
20:26 PM
using 3 inline statements in there, release_year, avgbitrate, multidisk
20:26 PM
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.
20:27 PM
Freso
axion: But the position of the inline: config in relation to the path: config shouldn't matter, right?
20:29 PM
axion
That should not matter, no.
20:31 PM
elGALLO
20:31 PM
so if%[$string will only fill that spot IF theres a value?
20:35 PM
what about only returning 24 FLAC for $bitdepth,
20:35 PM
%if{$bitdepth = 16 return 0
20:39 PM
Freso
20:41 PM
elGALLO
so %if{$bitdepth,24}
20:41 PM
Freso
Will add "24" whenever $bitdepth is != 0.
20:51 PM
beat joined the channel
20:58 PM
eRockCE has quit
21:19 PM
jcazevedo has quit
21:36 PM
eRockCE joined the channel
21:48 PM
sjk
One of my albums contain duplicates. filename.m4a and filename.1.m4a. They are the same size.
21:49 PM
I'm trying to zap them with the duplicates plugin, but "beet duplicates" produces no output
21:50 PM
darwin
are they the same track number?
21:50 PM
sjk
darwin: yes
21:51 PM
Hm, there should be a "beet diff file1 file2"... :)
21:51 PM
NOTICE: [beets] EnduringGuerila opened issue #2291: Lastgenre not adding more than one genre https://github.com/beetbox/beets/issues/2291
21:52 PM
darwin
one is probably not actually tracked by beets, etc.
21:52 PM
sjk
How do I find out?
21:53 PM
hm, I think they are, though
21:53 PM
beet ls shows the duplicates
22:00 PM
sjk shrugs
22:01 PM
NOTICE: [beets] EnduringGuerila opened issue #2292: copy/move extra files to new dir https://github.com/beetbox/beets/issues/2292
22:04 PM
Fixed it with beet rm -f "path::.*\.1.m4a" for now
22:05 PM
eRockCE has quit
22:06 PM
Freso
`beet diff` would be a neat plugin.
22:06 PM
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.
22:07 PM
Freso can't remember if one such is part of the standard package
22:07 PM
polemic
would it be a lot more useful than the log?
22:07 PM
sjk
Mybe difflib?
22:08 PM
polemic
ignore me, ofc it would be since it would include deletes and moves
22:08 PM
Freso
polemic: How would the log be able to tell the difference between two (or more) files?
22:09 PM
(Or are you replying to something different?)
22:09 PM
polemic
oh... I thought you just meant diff between library
22:09 PM
not files
22:09 PM
my mistake
22:13 PM
elGALLO has quit
22:25 PM
why does beet import -I /mnt/music/path/to/\[2006\]\ Some\ Album return: "error: no such file or directory: /mnt/music/path/to/[2006]"?
22:25 PM
same thing happens if I put path in "s
22:25 PM
but it works fine if I navigate to the album directory and do beet import -I .
22:25 PM
xarph
take out the \s, put it in single quotes
22:25 PM
polemic
single quotes? okay. Will try that. Thanks
22:26 PM
xarph
double quotes tell the shell to be Clever, single quotes mean to take the enclosing text completely literally
22:26 PM
polemic
gotcha
22:26 PM
thank you :)
22:30 PM
nope
22:30 PM
still does it
22:31 PM
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
22:32 PM
so beet import '/path/to/2010 foo' returns "error: no such file or directory: /path/to/2010
22:32 PM
xarph
are you typing the path or copy/pasting it
22:33 PM
I suspect there might be a weird nonprintable character in there
22:33 PM
polemic
typing it
22:33 PM
this happens with any path with a space in it
22:33 PM
as far as I can see
22:34 PM
xarph
what platform are you on? mac, linux, windows?
22:34 PM
polemic
linux
22:34 PM
running beets in a debian-testing vm
22:34 PM
xarph
and are you running a shell with tab-complete?
22:35 PM
polemic
unless that is enabled by default, I do not think so.
22:35 PM
h wait
22:35 PM
oh wait, I understand your question, yes I am
22:35 PM
xarph
and if you do ls /path/to etc and maniacally hit tab to complete it, does it work?
22:36 PM
polemic
yes, but it uses \ to escape spaces etc
22:36 PM
xarph
yes tab-complete does that
22:36 PM
polemic
also works with ' and "
22:36 PM
and ls
22:37 PM
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?
22:37 PM
polemic
errors mistaking the \ escaped space for the end of the input
22:38 PM
xarph
22:39 PM
polemic
one sec, let me check how
22:39 PM
xarph
copy and paste generally
22:39 PM
I don't know what terminal you're using tho
22:39 PM
polemic
what would you like me to paste?
22:39 PM
xarph
the ls and the beet error
22:39 PM
polemic
sure np
22:39 PM
xarph
the key is I think there's something on the path that's important that's being overlooked
22:40 PM
polemic
possibly the numbers?
22:40 PM
xarph
yes, perhaps
22:43 PM
polemic
22:44 PM
I think it might be the -
22:45 PM
xarph
wow!
22:45 PM
that should be working!
22:45 PM
polemic
when I try wrapping the \ escaped path but wrap it in 's beets errors with "error: no such option -\"
22:45 PM
xarph is it possible that it's being on the client side of ssh?
22:46 PM
*the problem is on
22:46 PM
xarph
not if it's in the same session
22:46 PM
did you try
22:46 PM
'/mnt/music/2009\ -\ I\ Had\ the\ Blues\ But\ I\ Shook\ Them\ Loose/'
22:46 PM
er
22:46 PM
'/mnt/music/2009 - I Had the Blues But I Shook Them Loose/'
22:47 PM
polemic
yup
22:47 PM
xarph
single quoted, no \s?
22:47 PM
polemic
yup, same error
22:47 PM
same with "s too
22:47 PM
I am running it in screen
22:47 PM
if that matters?
22:47 PM
xarph
that shouldn't matter
22:48 PM
do beet import -v '/mnt/music/2009 - I Had the Blues But I Shook Them Loose/'
22:48 PM
that does verbose output
22:48 PM
so we can see if the path getting into beets is being mangled
22:49 PM
polemic
standard stuff about loading plugins and library etc then: error: no such file or directory: /mnt/music/2009
22:51 PM
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
22:51 PM
polemic
Python 2.7.12+
22:51 PM
I just had an idea
22:52 PM
eRockCE joined the channel
22:52 PM
nope, I thought it might be something to do with autocompletion, but turned it off and still remains
22:53 PM
*beets autocompletion
22:53 PM
the weird thing is
22:53 PM
I just realized that my cron import scripts are working fine
22:53 PM
so this must only happen in my shell
22:54 PM
xarph
are you using bash, tcsh, zsh?
22:55 PM
polemic
bash
22:55 PM
may I pm you?
22:55 PM
xarph
¯\_(ツ)_/¯
22:55 PM
yeah, I suppose
23:09 PM
eRockCE has quit
23:21 PM
chatter joined the channel
23:47 PM
eRockCE joined the channel
23:47 PM
NOTICE: [beets] sampsyo closed issue #2289: AttributeError: 'Session' object has no attribute 'prepare_request' https://github.com/beetbox/beets/issues/2289
23:54 PM
beat has quit
23:54 PM
NOTICE: [beets] sampsyo closed issue #2292: copy/move extra files to new dir https://github.com/beetbox/beets/issues/2292
23:57 PM
beat joined the channel
23:57 PM
Houston has quit