Ignore Image files

This commit is contained in:
2015-06-08 14:05:58 +02:00
parent ed1f44299e
commit 1e70111800
+6 -2
View File
@@ -57,15 +57,19 @@ public class JSONReader {
throw new FileNotFoundException("Audio file does not exist: " + audio.getPath());
s.setAudio(audio);
/*
File background = new File(f.getParent() + File.separator + file.getString("background"));
if(!background.exists() || !(background.getName().toLowerCase().endsWith(".jpg") || background.getName().toLowerCase().endsWith(".png")))
throw new FileNotFoundException("Background image does not exist: " + background.getPath());
s.setBackground(background);
s.setBackground(background);*/
s.setBackground(null);
/*
File banner = new File(f.getParent() + File.separator + file.getString("banner"));
if(!banner.exists() || !(banner.getName().toLowerCase().endsWith(".jpg") || banner.getName().toLowerCase().endsWith(".png")))
throw new FileNotFoundException("Banner image does not exist: " + banner.getPath());
s.setBanner(banner);
s.setBanner(banner);*/
s.setBanner(null);
s.setFile(f);