mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-01-31 10:54:50 +01:00
Remove cached feed file after parsing
This commit is contained in:
parent
1a58d6f2a8
commit
a8539dde84
@ -842,10 +842,13 @@ public class DownloadService extends Service {
|
|||||||
successful = false;
|
successful = false;
|
||||||
reason = DownloadError.ERROR_PARSER_EXCEPTION;
|
reason = DownloadError.ERROR_PARSER_EXCEPTION;
|
||||||
reasonDetailed = e.getMessage();
|
reasonDetailed = e.getMessage();
|
||||||
|
} finally {
|
||||||
|
File feedFile = new File(request.getDestination());
|
||||||
|
if(feedFile.exists()) {
|
||||||
|
boolean deleted = feedFile.delete();
|
||||||
|
Log.d(TAG, "Deletion of file '" + feedFile.getAbsolutePath() + "' " + (deleted ? "successful" : "FAILED"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// cleanup();
|
|
||||||
|
|
||||||
|
|
||||||
if (successful) {
|
if (successful) {
|
||||||
// we create a 'successful' download log if the feed's last refresh failed
|
// we create a 'successful' download log if the feed's last refresh failed
|
||||||
|
Loading…
x
Reference in New Issue
Block a user