Merge pull request #4269 from ByteHamster/fix-filenotfound
Fixed file not found exception after database import
This commit is contained in:
commit
8d1cc82258
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue