Update on 2021-02-06: Updated the repository’s URL.
Update on 2021-01-17: The script is now deprecated.
Update on 2013-05-18: I have updated the script to work with gPodder 3! Please refer to this post for more information.
Update on 2013-03-02: It turned out that the new gPodder 3.0+ doesn’t support the
cmd_download_complete option that is used in this article. It’s been replaced with extensions: https://bugs.gpodder.org/show_bug.cgi?id=1704#c3. I haven’t looked at it yet, so for now you’ll need gPodder 2.* for this script to work.
I’ve been using a Sandisk Sansa Clip+ 4GB player for a few months now. It’s an excellent player for podcasts. It is definitely a bang for the buck. A big advantage is that it saves the position of each podcast when you switch to another one.
The player has a menu item called Podcasts, where it places all recognized podcasts from the internal memory. When I first uploaded podcasts to the device, I wasn’t very happy because podcasts’ tags are filled differently. The player builds the list based on the Artist field, and the second level is the Title tag. I wanted to use the menu correctly, so I had to create a script to fix the tags.
Git repository with the script is available here: https://github.com/eunikolsky/fixtags. You can clone it or just download the script by pressing the Download button on that page. So, you’ve downloaded and unpacked it. Let’s assume you’ve placed it to your ~/bin/ directory. How to run it?
You need to install Python 3 and a package called stagger (http://code.google.com/p/stagger/) first.
Luckily, gPodder supports running a custom script after downloading a podcast. We’ll use the feature. Actually, the script can’t be run outside of gPodder. In gPodder go to Preferences, then push the “Edit config” button. There is a field named “cmd_download_complete”, which specifies a command being run after downloading a file. Insert the path and filename of the script to that field. Here is a screenshot:
In my case, the script is sitting in the directory bin/fixtags/ in my home directory. Save the config. Now the script should work.
NB! The script processes the podcasts it knows only! That is, the ones I added support for. If you listen to other podcasts, you will have to update the script.
That’s all. Feel free to ask any specializing questions.