Stop the war!

Stop the war in Ukraine! Fuck putin!

More information is at:

There is a fund to support the Ukrainian Army:, and there is a special bank account that accepts funds in multiple currencies: I donated to them. Please donate if you can!

Killer putin

Killer putin. Source:

Arrested putin

"It hasn't happened yet, but it will happen sooner or later. Beautiful photo, isn't it?" Source: twitter.

Sandisk Sansa Clip+ + podcasts + gPodder

| comments

Hello everybody!

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