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 Sep 18, 2024
1 parent 466a6e8 commit 2f52130
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,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 2f52130

Please sign in to comment.