added more automatic tags, implemented updating of links and attachments on event update

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2025-01-03 10:28:46 +01:00
parent 5cea69ebab
commit 0051ec0b8f
2 changed files with 60 additions and 44 deletions
@@ -19,14 +19,19 @@ public class AutoImporter implements Runnable, ClassListener {
private static final System.Logger LOG = System.getLogger(AutoImporter.class.getSimpleName());
private static final Map<String, String> DESCRIPTION_TAGS = Map.<String, String>ofEntries(
entry("50s","50er"),
entry("50s","50er"),
entry("50er","50er"),
entry("60s","60er"),
entry("60s","60er"),
entry("60er","60er"),
entry("70s","70er"),
entry("70s","70er"),
entry("70er","70er"),
entry("80s","80er"),
entry("80s","80er"),
entry("80er","80er"),
entry("90s","90er"),
entry("90s","90er"),
entry("90er","90er"),
entry("ac dc","Metal"),
entry("alternative rock","AlternativeRock"),
@@ -91,6 +96,7 @@ public class AutoImporter implements Runnable, ClassListener {
entry("humor","Comedy"),
entry("humpa","Humppa"),
entry("humppa","Humppa"),
entry("indie","indie"),
entry("industrial","Industrial"),
entry("industrial metal","IndustrialMetal"),
entry("jam session","JamSession"),
@@ -281,7 +287,7 @@ public class AutoImporter implements Runnable, ClassListener {
@Override
public void classAdded(Class<?> aClass) {
if (Importer.class.isAssignableFrom(aClass)) try {
if (Importer.class.isAssignableFrom(aClass) && aClass.getSimpleName().contains("Ebu")) try {
var instance = aClass.getDeclaredConstructor().newInstance();
importers.add((Importer) instance);
lastImport = null;