Fixed file not found exception after database import

This commit is contained in:
ByteHamster 2020-07-01 09:51:34 +02:00
parent 0e05a8af7b
commit fecc65c803
1 changed files with 1 additions and 1 deletions

View File

@ -274,7 +274,7 @@ public class DownloadRequester implements DownloadStateProvider {
}
File dest;
if (feedmedia.getFile_url() != null) {
if (feedmedia.getFile_url() != null && new File(feedmedia.getFile_url()).exists()) {
dest = new File(feedmedia.getFile_url());
} else {
dest = new File(getMediafilePath(feedmedia), getMediafilename(feedmedia));