Moving Podcasts to SD Card

Hi, I have been using AntennaPod for more than a year, and only recently discovered I can store the podcasts it downloads on my SD card.

I switched the setting to do that, but in the meantime, my main storage is running out of space, filled with downloads from before making the switch.

Is there any way to move these to the SD card from within AntennaPod?

If I do it manually, will AtennaPod find/recognize them?

Thanks in advance for any advice or tips.

1 Like

I had this problem. Even though I copied AntennaPod’s data to the external SD card, it did not recognise the files I had collected. I solved it by the following hackery, which requires a rooted phone.

First, note that I moved AntennaPod’s data directory from /storage/emulated/0/Android/data/de.danoeh.antennapod/files to /storage/FB03-5D01/Android/data/de.danoeh.antennapod/files. The problem is that AntennaPod’s internal database stores absolute file paths. However it’s a sqlite database, we we can alter it quite easily.

I installed sqlite in Termux:

pkg install sqlite

I stopped AntennaPod. Actually, I froze it using Titanium Backup and backed up its data, just in case.

Then I opened AntennaPod’s database:

sudo sqlite3 /data/data/de.danoeh.antennapod/databases/Antennapod.db

Then I updated the paths like this:

update FeedMedia set file_url = '/storage/FB03-5D01' || substr(file_url, length('/storage/emulated/0/')) where file_url glob '/storage/emulated/0/*';

Then closed the database:


After that, I unfroze AntennaPod and launched it and it knew about all the downloads I had collected.

This won’t solve the problem for everyone, but if you’ve got a rooted phone and are comfortable with the command line it might help you.

1 Like

For most users, deleting and re-downloading is probably the easier solution :slight_smile: You can do that with multi-select in the queue, for example.

1 Like

Thanks very much @rptb1 and @ByteHamster for your very helpful answers.

My phone isn’t rooted, so I couldn’t use the sqlite workflow, but knowing the paths to AntennaPod’s database in built-in memory (/storage/emulated/0/…) and on the SD card (/storage/xxxx-xxxx/…) was hugely helpful. I am non-technical, but know about databases and modifying database tables, so it was very good to know the DB operates.

It turned out for me that deleting and re-downloading was the safest way to go for me.

I want to point out for anyone that comes after me seeking this kind of help that in my case some podcasts had been listened to, so were out of the queue, but the episode’s .mp3 file was still present on the in the built-in memory, because I don’t set AntennaPod to auto-deleted listened-to episodes. (Hence my problem with the huge build-up of files in the built-in memory.)

For those ones, an extra step is necessary. I went to the individual subscriptions and deleted the episodes that were still in the built-in storage, then immediately re-downloaded them. I could observe using SD Maid that the file was removed from the old spot and restored to the new one.

Thanks again for the excellent step by step help. Much appreciated.