Ignore Image files
This commit is contained in:
@@ -57,15 +57,19 @@ public class JSONReader {
|
|||||||
throw new FileNotFoundException("Audio file does not exist: " + audio.getPath());
|
throw new FileNotFoundException("Audio file does not exist: " + audio.getPath());
|
||||||
s.setAudio(audio);
|
s.setAudio(audio);
|
||||||
|
|
||||||
|
/*
|
||||||
File background = new File(f.getParent() + File.separator + file.getString("background"));
|
File background = new File(f.getParent() + File.separator + file.getString("background"));
|
||||||
if(!background.exists() || !(background.getName().toLowerCase().endsWith(".jpg") || background.getName().toLowerCase().endsWith(".png")))
|
if(!background.exists() || !(background.getName().toLowerCase().endsWith(".jpg") || background.getName().toLowerCase().endsWith(".png")))
|
||||||
throw new FileNotFoundException("Background image does not exist: " + background.getPath());
|
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"));
|
File banner = new File(f.getParent() + File.separator + file.getString("banner"));
|
||||||
if(!banner.exists() || !(banner.getName().toLowerCase().endsWith(".jpg") || banner.getName().toLowerCase().endsWith(".png")))
|
if(!banner.exists() || !(banner.getName().toLowerCase().endsWith(".jpg") || banner.getName().toLowerCase().endsWith(".png")))
|
||||||
throw new FileNotFoundException("Banner image does not exist: " + banner.getPath());
|
throw new FileNotFoundException("Banner image does not exist: " + banner.getPath());
|
||||||
s.setBanner(banner);
|
s.setBanner(banner);*/
|
||||||
|
s.setBanner(null);
|
||||||
|
|
||||||
s.setFile(f);
|
s.setFile(f);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user