Skip to content

Commit

Permalink
Changes after code review
Browse files Browse the repository at this point in the history
  • Loading branch information
Jojo-Schmitz committed Nov 18, 2024
1 parent 5d2a5d6 commit 8c15ed9
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,11 @@ static void inferFromTitle(String& title, String& inferredSubtitle, String& infe
StringList subtitleLines;
StringList creditLines;
StringList titleLines = title.split(std::regex("\\n"));
for (size_t i = titleLines.size(); i > 1; --i) {
size_t nrOfTitleLines = titleLines.size();
if (nrOfTitleLines == 1) {
return;
}
for (size_t i = nrOfTitleLines; i > 0; --i) {
String line = titleLines[i - 1];
if (isLikelyCreditText(line, true)) {
creditLines.insert(0, line);
Expand Down

0 comments on commit 8c15ed9

Please sign in to comment.