Parcourir la source

Ignore Image files

Kenneth van Ewijk il y a 10 ans
Parent
commit
1e70111800
1 fichiers modifiés avec 6 ajouts et 2 suppressions
  1. 6 2
      audio/io/JSONReader.java

+ 6 - 2
audio/io/JSONReader.java

@@ -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);