EmbedArt Plugin has no effect

155 views
Skip to first unread message

flok3r

unread,
Oct 20, 2015, 6:49:39 AM10/20/15
to beets
I tried running embedart with different options and queries without any effect. 
The command executed in the bash shell is something like:

beet -l "..library.db" -c "..config.yaml" embedart -f "..test.jpg" path:"..test.mp3"


The command executes without output.
Beets runs on OS X 10.11, ImageMagick is not installed (should not be needed for this, right?). The image is a small 400x400 jpg.
The verbose message isn't useful either:

user configuration: ..config.yaml

data directory: ..beets

plugin paths:

Sending event: pluginload

library database: ..library.db

library directory: ..Music

Sending event: library_opened

Sending event: cli_exit


Directories shortened by "..".

Did I miss something?
Every other thing I tested runs fine. Plugins too, except for embedart..

Any help is very welcome!

Adrian Sampson

unread,
Oct 20, 2015, 12:27:06 PM10/20/15
to beets...@googlegroups.com
You could start debugging the problem by checking that you’re actually matching the music you want. Just turn the `embedart` command into `list`:

beet -l "..library.db" -c "..config.yaml” list path:"..test.mp3"

From your output, it looks like the query isn’t finding any music to embed into.

--
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.

flok3r

unread,
Oct 20, 2015, 12:43:00 PM10/20/15
to beets
Thanks for the hint, you pointed me at a mistake I made with the test file (not imported..).

beet -l "..library.db" -c "..config.yaml” embedart "..test.mp3"

This works now for the test.mp3. But if I change the query to "/path/to/folder" or path:"/path/to/folder", the files in the folder remain untouched, even though they are imported. So, the command does not work for directories.
BTW, the list command only outputs the file's album tag surrounded by " - ", but the list has the correct length. 
Is this normal?

Adrian Sampson

unread,
Oct 20, 2015, 1:21:32 PM10/20/15
to beets...@googlegroups.com

> On Oct 20, 2015, at 9:43 AM, flok3r <bac...@me.com> wrote:
>
> So, the command does not work for directories.

Is this true just of the `embedart` command, or when you use `list` too?

If this looks like a problem, can you please fill us in with the full details (beets version, complete/unmodified command, exact locations of the files, output of `beet ls -f`, etc.)?

> BTW, the list command only outputs the file's album tag surrounded by " - ", but the list has the correct length.
> Is this normal?

The default output format is in the docs:
http://docs.beets.io/en/v1.3.15/reference/config.html#format-item

If you’re seeing missing data, it’s because your files don’t have artists or titles.

Adrian

flok3r

unread,
Oct 20, 2015, 1:33:14 PM10/20/15
to beets

The full command I'd like to run for now is e.g.:

beet -l "/Users/Flok3r/Desktop/Music/library.db" -c "/Users/Flok3r/Desktop/Music/config.yaml" embedart -f "/Users/Flok3r/Desktop/Music/Modern - Vulnerable/Album.JPG" "/Users/Flok3r/Desktop/Music/Modern - Vulnerable"


I tried many version, including "path:" and excluding spaces. It works only when querying a single file.
List on the other hand works as it should. This:

beet -"/Users/Flok3r/Desktop/Music/library.db" -"/Users/Flok3r/Desktop/Music/config.yaml" list -p "/Users/Flok3r/Desktop/Music/Modern - Vulnerable"

lists every file correctly.
The beet version is 1.3.15.

Adrian Sampson

unread,
Oct 20, 2015, 2:59:11 PM10/20/15
to beets...@googlegroups.com
Strangely, I can’t reproduce this:

$ beet ls _etc/testlib/Danger\ Mouse
Danger Mouse - The Grey Album - Public Service Announcement
Danger Mouse - The Grey Album - What More Can I Say
[…]
$ beet -v embedart -f test/rsrc/abbey.jpg _etc/testlib/Danger\ Mouse
[…]
embedart: embedding /Users/asampson/code/beets/test/rsrc/abbey.jpg
[…]

That is, `embedart` works just like `ls` with that path query.

flok3r

unread,
Oct 21, 2015, 1:50:47 AM10/21/15
to beets
Are you running on el capitan, too?

This really seems to be some bug.
Btw, I am using the zero plugin, too. On executing embedart as written above, the shell returns this 1 time per file in the queried folder:

zero: no fields, nothing to do


So write seems to be called somehow.
If there is anything I can do/test to track this down, let me know.

Further info: If this makes ANY difference, the library is located on a non case-sensitive hfs partition, which is filevault 2 encrypted.
And I imported the files using 
import -C -W -A -P -I -t
But this should not matter.

Adrian Sampson

unread,
Oct 21, 2015, 2:06:19 AM10/21/15
to beets...@googlegroups.com
Yes, on El Cap. I don't know how to reproduce this, since I seem to have the same setup as you—do let me know if you find something unique that I can try to recreate.
--

flok3r

unread,
Oct 21, 2015, 11:17:03 AM10/21/15
to beets
Sure, Ill continue testing asap, hoping to find something. 
Any ideas for tracking this down are welcome, since I am knew to all this and using beets for only a couple of days.

Karcsi Kolbasz

unread,
Oct 23, 2015, 8:25:56 AM10/23/15
to beets
what if you break it down.  forget forcing your image.

clearart
delete your file
fetchart
embed art
Reply all
Reply to author
Forward
0 new messages