Importing files from the band "A-ha" results in invisible files to 'beets' and 'ls' but not 'find'

33 views
Skip to first unread message

Bearcat Şándor

unread,
Apr 12, 2018, 9:38:19 PM4/12/18
to beets

Importing any songs from the band "a-ha" almost removes them from my drive. They can't be found with ls or beets but they can be found via find:


a directory listing of the a-ha directory only shows one album

moonwind@jaguarundi audio % ls a-ha

2004-the_singles__1984-2004


The directory is empty  to 'ls'

moonwind@jaguarundi audio % ls a-ha/2004-the_singles__1984-2004

artwork


However, 'find' sees all 3 albums that i have in there

audio % find ./ -name "*take_on_me*"

./a‐ha/1985-hunting_high_and_low/01-01-take_on_me.wv
./a‐ha/2004-the_singles__1984-2004_[5050467-6225-2-4]/01-01-take_on_me.wv
./a‐ha/2017-mtv_unplugged_-_summer_solstice/02-10-take_on_me_(mtv_unplugged).wv
 

beets doesn't see any even though all of them were imported by beets

moonwind@jaguarundi audio % beet ls artist:a-ha
moonwind@jaguarundi audio % beet ls -a albumartist:a-ha
moonwind@jaguarundi audio % beet ls artist:"a-ha"

moonwind@jaguarundi audio %


This drive is a regular usb drive with no special file systems (modern ntfs as it came in the box)


 

Adrian Sampson

unread,
Apr 12, 2018, 9:54:59 PM4/12/18
to beets...@googlegroups.com
Weird. I’m at an utter loss to explain why `find` can see your files but `ls` cannot. Could the drive be corrupted?
--
You received this message because you are subscribed to the Google Groups "beets" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beets-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Message has been deleted

Bearcat Şándor

unread,
Apr 12, 2018, 10:14:07 PM4/12/18
to beets
That was my first thought too, however this has been my main audio/beets library drive for a year now and the band "a-ha" is the *only* one affected out of 1,651 artists.  It's certainly not the only file that i have with a hyphen in it, but it is the only file (band) that beets handles with a hyphen in the name.

Michael Quaintance

unread,
Apr 12, 2018, 11:11:21 PM4/12/18
to beets...@googlegroups.com
I'm pretty sure this is because MusicBrainz has the artist ID for a-ha as not a regular dash between the a and the ha.


000001f0: 6234 3461 6430 6431 3938 3937 223e 3c6e  b44ad0d19897"><n

00000200: 616d 653e 61e2 8090 6861 3c2f 6e61 6d65  ame>a...ha</name

00000210: 3e3c 736f 7274 2d6e 616d 653e 61e2 8090  ><sort-name>a...

00000220: 6861 3c2f 736f 7274 2d6e 616d 653e 3c61  ha</sort-name><a


"a-ha" is 0x61e2 8090 6861

So "find" handles this perfectly because you are not specifying the offending dash, but "ls" has a little more trouble, because you are and what you are supplying is not the same.

Similarly, "beets" is not matching what I guess to be an em-dash either.

-Michael

To unsubscribe from this group and stop receiving emails from it, send an email to beets-users+unsubscribe@googlegroups.com.

Adrian Sampson

unread,
Apr 12, 2018, 11:30:39 PM4/12/18
to beets...@googlegroups.com
A-ha! That’s very wise, Michael.

Adrian

Michael MacLeod

unread,
Apr 15, 2018, 12:49:07 PM4/15/18
to beets...@googlegroups.com

Bearcat Şándor

unread,
May 11, 2018, 7:04:57 AM5/11/18
to beets
Is that going to mess up file names that are in non-english languages?

Adrian Sampson

unread,
May 11, 2018, 8:03:33 AM5/11/18
to beets...@googlegroups.com
Reading the docs carefully may be helpful here: it will replace non-ASCII characters with their ASCII equivalents.

Adrian

> On May 11, 2018, at 7:04 AM, Bearcat Şándor <bearca...@gmail.com> wrote:
>
> Is that going to mess up file names that are in non-english languages?
>

Bearcat M. Şándor

unread,
May 11, 2018, 5:05:45 PM5/11/18
to beets...@googlegroups.com
I've read it and the example given is for latin characters. What does it do with a path such as /home/hometheater/audio/菅野よう子/2005-攻殻機動隊_stand_alone_complex_o.s.t._3/01-02-トルキア.wv? I'm assuming that it leaves it alone?


You received this message because you are subscribed to a topic in the Google Groups "beets" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beets-users/GEvnodqKqwI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beets-users...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
Bearcat M. Şándor
Feline Soul Systems LLC
Voice: 872.CAT.SOUL (872.228.7685)
Fax: 406.235.7070

Adrian Sampson

unread,
May 11, 2018, 5:24:17 PM5/11/18
to beets...@googlegroups.com
Aha! No; it replaces characters with transliterations. For example, “ルキア” becomes “rukia”.

Bearcat M. Şándor

unread,
May 11, 2018, 6:02:06 PM5/11/18
to beets...@googlegroups.com
Are you kidding? This thing actually romanizes the text? That's awesome! Thank you.

Bearcat M. Şándor

unread,
May 15, 2018, 4:23:55 PM5/15/18
to beets...@googlegroups.com
So, i fixed this by leaving my 'replace' config option as-is and adding asciifypaths into my config. It fixed the issue nicely. I ended up with an 'a-ha' directory and an 'a[long hyphen]ha' directory. I moved the files out of the long hyphen directory into the respective directories of 'ah-ha' and then did a `beets update` on those files.  

Worked like a charm! Thank you!

Reply all
Reply to author
Forward
0 new messages