From 8aa798318ac8e42a5b79ac658eb5901f1805b1c0 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Thu, 28 Feb 2019 11:41:59 +0700 Subject: [PATCH] Split music category tags like "hardrock;Hard Rock" as one would expect --- source/net/filebot/format/MediaBindingBean.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/filebot/format/MediaBindingBean.java b/source/net/filebot/format/MediaBindingBean.java index 90508788..c529a708 100644 --- a/source/net/filebot/format/MediaBindingBean.java +++ b/source/net/filebot/format/MediaBindingBean.java @@ -642,7 +642,7 @@ public class MediaBindingBean { if (infoObject instanceof Episode) return getSeriesInfo().getGenres(); if (infoObject instanceof AudioTrack) - return Stream.of(getMusic().getGenre()).filter(Objects::nonNull).collect(toList()); + return Stream.of(getMusic().getGenre()).filter(Objects::nonNull).flatMap(SEMICOLON::splitAsStream).map(String::trim).filter(s -> s.length() > 0).collect(toList()); return null; }