Skip to content

Commit

Permalink
feat: formats backward compatibility with store spec
Browse files Browse the repository at this point in the history
  • Loading branch information
DropSnorz committed Aug 18, 2024
1 parent bffb6d3 commit 95750f1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public static PackageBundle jsonMapperToEntity(BundleJsonMapper bundleMapper) {
formats.replaceAll(e -> e.equals("vst") ? "vst2" : e.toLowerCase());
packageBundle.setFormats(formats);
} else {
packageBundle.setFormats(new ArrayList<>(List.of("vst2")));
packageBundle.setFormats(List.of("vst2"));
}

return packageBundle;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

package com.owlplug.explore.model.json.legacy;

import com.owlplug.core.model.PluginFormat;
import com.owlplug.core.model.PluginStage;
import com.owlplug.core.model.PluginType;
import com.owlplug.core.utils.UrlUtils;
Expand All @@ -28,6 +27,7 @@
import com.owlplug.explore.model.RemoteSource;
import com.owlplug.explore.model.json.BundleJsonMapper;
import java.util.HashSet;
import java.util.List;

public class StoreModelAdapter {

Expand Down Expand Up @@ -119,13 +119,13 @@ public static PackageBundle jsonMapperToEntity(BundleJsonMapper mapper) {
packageBundle.setFileSize(mapper.getFileSize());

if ("vst3".equals(mapper.getFormat())) {
packageBundle.setFormat(PluginFormat.VST3);
packageBundle.setFormats(List.of("vst3"));
} else if ("au".equals(mapper.getFormat())) {
packageBundle.setFormat(PluginFormat.AU);
packageBundle.setFormats(List.of("au"));
} else if ("lv2".equals(mapper.getFormat())) {
packageBundle.setFormat(PluginFormat.LV2);
packageBundle.setFormats(List.of("lv2"));
} else {
packageBundle.setFormat(PluginFormat.VST2);
packageBundle.setFormats(List.of("vst"));
}

return packageBundle;
Expand Down
4 changes: 2 additions & 2 deletions owlplug-client/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ spring.main.web-environment=false

# Logger
# Available levels are: TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF
logging.level.org.hibernate.SQL=DEBUG
logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE
# logging.level.org.hibernate.SQL=DEBUG
# logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE

0 comments on commit 95750f1

Please sign in to comment.