greg icon indicating copy to clipboard operation
greg copied to clipboard

Front Cover Tag

Open JoooostB opened this issue 8 years ago • 6 comments

I'm able to tag my podcasts, but can't figure out how to add a Front Cover image to the downloaded files. Can you help me out?

JoooostB avatar Nov 11 '16 14:11 JoooostB

Hi, the library we use for tagging, stagger, does not support this, I think. But it's pretty easy to do in greg, using a download handler:

Suppose you have eyeD3 installed. Then you could do something like this. First, you create an albumart script (which you need to make executable, and place it somewhere in your PATH) with something like

wget $1 -O $2/$3.mp3
eyeD3 --add-image $4:OTHER $2/$3.mp3

And then, in your greg.conf,

[yourpodcast]

downloadhandler = albumart {link} {directory} {filename_title} /path/to/album_art.jpg

This setup would download your podcasts using wget and then add the album art using eyeD3

manolomartinez avatar Nov 15 '16 23:11 manolomartinez

While the above will work, I have just learned from stagger's dev that this library does support album arts. I'll try to expose that functionality through greg too.

manolomartinez avatar Nov 16 '16 09:11 manolomartinez

Thank you very much for the detailed instructions, really appreciate it :)

JoooostB avatar Nov 16 '16 09:11 JoooostB

Now that greg uses eyeD3 instead of stagger, can you reopen this, @manolomartinez?

sabberworm avatar Apr 18 '21 09:04 sabberworm

Thanks for reminding me. If you feel like submitting a PR that'd be great. Otherwise I'll try to get to it as soon as I can.

manolomartinez avatar Apr 19 '21 10:04 manolomartinez

@sabberworm, could you please check whether the above PR works?

manolomartinez avatar Apr 27 '21 21:04 manolomartinez