- if (command != null) {
- if (command.equals("GET_METADATA")) {
- if (args != null && args.equals("*")) {
- List<MetaData> metas = Instance.getLibrary().getMetas(null);
- return metas.toArray(new MetaData[] {});
- }
- } else if (command.equals("GET_STORY")) {
- if (args != null) {
- return Instance.getLibrary().getStory(args, null);
- }
+ // TODO: progress (+send name + %age info back to client)
+
+ if ("GET_METADATA".equals(command)) {
+ if (args != null && args.equals("*")) {
+ List<MetaData> metas = Instance.getLibrary().getMetas(null);
+ return metas.toArray(new MetaData[] {});
+ }
+ } else if ("GET_STORY".equals(command)) {
+ if (args != null) {
+ return Instance.getLibrary().getStory(args, null);