manolomartinez / greg

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

Plugins to manipulate the `placeholders` #69

Closed s-nt-s closed 7 years ago

s-nt-s commented 7 years ago

Sometimes the rss is so nasty that you need to do some modifications in it before downloading it.

For example to change the file name more than you can do with solutions as https://github.com/manolomartinez/greg/issues/63, fix the date or choose a enclosure dynamically

So, could have a way to call a external .py (as a plugin) to malipulate the placeholders?

Thanks

manolomartinez commented 7 years ago

Hello, you can call a external .py to manipulate placeholders. Issue #66 provides an example of calling a custom script to manipulate placeholders while downloading. Is something like this what you had in mind?

s-nt-s commented 7 years ago

Thanks. It wasn't what I was thinking but It is good enough for my needs.

s-nt-s commented 7 years ago

My example https://github.com/s-nt-s/scripts/blob/master/greg-dwn.py ;)