# New SDCard and paths change: workaround

**URL:** https://forum.antennapod.org/t/new-sdcard-and-paths-change-workaround/5355
**Category:** Support
**Created:** [August 21, 2024, 9:40am UTC](https://forum.antennapod.org/t/new-sdcard-and-paths-change-workaround/5355 "2024-08-21T09:40:06Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![elsasser](https://forum.antennapod.org/letter_avatar_proxy/v4/letter/e/6de8d8/32.png) [@elsasser](https://forum.antennapod.org/u/elsasser)
#### Post date: [August 21, 2024, 9:40am UTC](https://forum.antennapod.org/t/new-sdcard-and-paths-change-workaround/5355/1 "2024-08-21T09:40:07Z")

</div>

NB : this is a follow-up from [Moving Podcasts to SD Card](https://forum.antennapod.org/t/moving-podcasts-to-sd-card/512) but I could not reply there.

**App version** : 3.4.1f (F-Droid)  
**Android version** : 13 (june 2024), from Fairphone  
**Device model** : Fairphone 3  
**Expected behaviour** :

Antennapod stores the podcasts on my SD card. The card was full, I changed it and copied the whole data (rsync between the 2 cards on linux). I could not find a way to keep the same card UUID. In the parameters, I set the new SD card as downlod location (only 2 choices).

I expected to play all my podcasts from the new card. Everything is in cardpath/Android/data/de.danoeh.antennapod/ , right?

**Current behaviour** :

Antennapod has kept history, podcasts and so on, but it cannot play old podcasts: _Missing file_… (of course it’s there).

I can re-download and play a podcast. A new file appears with the same name the -1 extension, so some space is lost.  
But my main problem is that some old podcasts cannot be re-downloaded (shame on you, Radio France!). I could save the mp3 files but there should be a better way.

**Work-around** :

In [Moving Podcasts to SD Card](https://forum.antennapod.org/t/moving-podcasts-to-sd-card/512) , it is explained that the paths are hard-coded.

My phone is not rooted, its solution was not directly possible, but there is another way:

- Export the database from Antennapod (see Parameters)
- Transfer it to a computer with sqlite3
- Keep a copy of this backup somewhere in case the following fails
- Modify the backup with a tool able to read SQLite databases, eg this way:

```bash
sqlite3 copyofbackupfile.db

```

```sql
.tables
-- FeedMedia should appear

-- replace B36C-82D5 by 0000-0001 in paths
-- see thread above for another example
update FeedMedia set file_url = '/storage/0000-0001' || substr(file_url, length('/storage/B36C-82D5/')) where file_url glob '/storage/B36C-82D5/*';
-- check the result 
SELECT * from FeedMedia where file_url like '/%' limit 3 ;
.exit

```

- Copy copyofbackupfile.db back to the phone
- In Antennapod/Parameets/Import-export, import this file. It will replace everything.
- Old podcast should play now.

All of this is not easy for non-techies. Is there a more user-friendly solution?  
Anyway, I wanted to document this procedure somewhere, I think i’ll have to use it again someday…

I would have expected Antennapod to store only paths relative to its main location, or to try to find the file in its default location.  
I’ll add a word on [Updating to newer android or switching sdcard will break AntennaPod data location · Issue #1777 · AntennaPod/AntennaPod · GitHub](https://github.com/AntennaPod/AntennaPod/issues/1777) and [Moving data folder with the whole content to a new place does not work. · Issue #951 · AntennaPod/AntennaPod · GitHub](https://github.com/AntennaPod/AntennaPod/issues/951) (yes, this is an old problem).

And thanks for this awesome project.

---

<div class="post-metadata">

### Author: ![felagund](https://forum.antennapod.org/user_avatar/forum.antennapod.org/felagund/32/1554_2.png) [@felagund](https://forum.antennapod.org/u/felagund)
#### Post date: [December 4, 2024, 9:17pm UTC](https://forum.antennapod.org/t/new-sdcard-and-paths-change-workaround/5355/2 "2024-12-04T21:17:45Z")

</div>

Thanks, this was just perfect for my 40 GB!

---

<div class="post-metadata">

### Author: ![system](https://forum.antennapod.org/uploads/default/original/2X/3/3c7b7383b59ca5ff7c2c145444e45bd1436aa6c1.png) [@system](https://forum.antennapod.org/u/system)
#### Post date: [April 3, 2025, 9:18pm UTC](https://forum.antennapod.org/t/new-sdcard-and-paths-change-workaround/5355/3 "2025-04-03T21:18:18Z")

</div>

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.
