mirror of
https://github.com/stonega/tsacdop
synced 2025-02-12 09:30:37 +01:00
Fix download error, when podcast name contains '/'.
This commit is contained in:
parent
38c6b62a54
commit
dca987f65a
@ -257,11 +257,12 @@ class DownloadState extends ChangeNotifier {
|
||||
var isDownloaded = await dbHelper.isDownloaded(episode.enclosureUrl);
|
||||
if (!isDownloaded) {
|
||||
final dir = await getExternalStorageDirectory();
|
||||
var localPath = path.join(dir.path, episode.feedTitle);
|
||||
var localPath =
|
||||
path.join(dir.path, episode.feedTitle.replaceAll('/', ''));
|
||||
final saveDir = Directory(localPath);
|
||||
var hasExisted = await saveDir.exists();
|
||||
if (!hasExisted) {
|
||||
saveDir.create();
|
||||
await saveDir.create();
|
||||
}
|
||||
var now = DateTime.now();
|
||||
var datePlus = now.year.toString() +
|
||||
|
Loading…
x
Reference in New Issue
Block a user