manolomartinez / greg

A command-line podcast aggregator
GNU General Public License v3.0
297 stars 37 forks source link

Front Cover Tag #66

Open JoooostB opened 7 years ago

JoooostB commented 7 years ago

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?

manolomartinez commented 7 years ago

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 commented 7 years ago

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.

JoooostB commented 7 years ago

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

sabberworm commented 3 years ago

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

manolomartinez commented 3 years ago

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 commented 3 years ago

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