Skip to content

Commit

Permalink
Update FFMpeg.java
Browse files Browse the repository at this point in the history
  • Loading branch information
gdlbo committed Oct 14, 2023
1 parent a85e55a commit f2ac845
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ public static void convert(File in, String out, MusicTrack track) {
}

private static String setMetadata(MusicTrack track) {
return Preferences.getBoolValue("setMetaData", false) ? "" : " -metadata title=\"" + IOUtils.getValidFileName(M3UDownloader.getTitle(track)) + '"'
return Preferences.getBoolValue("setMetaData", false) ? " -metadata title=\"" + IOUtils.getValidFileName(M3UDownloader.getTitle(track)) + '"'
+ " -metadata artist=\"" + normalizeMetadata(track.L.stream().map(Artist::w1).collect(Collectors.joining(", "))) + '"'
+ " -metadata album=\"" + normalizeMetadata(track.I.getTitle()) + '"';
+ " -metadata album=\"" + normalizeMetadata(track.I.getTitle()) + '"' : "";
}

private static String normalizeMetadata(String in) {
Expand Down

0 comments on commit f2ac845

Please sign in to comment.