Skip to content

Commit

Permalink
Extract title out of matroska tags if not available from segment info
Browse files Browse the repository at this point in the history
  • Loading branch information
devoxin committed May 7, 2024
1 parent 0c186a8 commit 5cdb301
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,10 @@ private void parseSimpleTag(MatroskaElement simpleTagElement) throws IOException
if (child.is(MatroskaElementType.TagName)) {
tagName = reader.asString(child);
} else if (child.is(MatroskaElementType.TagString)) {
if ("artist".equalsIgnoreCase(tagName)) {
// https://www.matroska.org/technical/tagging.html
if ("title".equals(tagName) && title == null) {
title = reader.asString(child);
} else if ("artist".equalsIgnoreCase(tagName)) {
artist = reader.asString(child);
} else if ("isrc".equals(tagName)) {
isrc = reader.asString(child);
Expand Down

0 comments on commit 5cdb301

Please sign in to comment.