brace multiline if statements (cont.)

This commit is contained in:
telans
2020-06-20 21:19:16 +12:00
parent 5bb639a59a
commit 6556bec646
8 changed files with 36 additions and 0 deletions

View File

@@ -1384,14 +1384,18 @@ namespace MediaBrowser.MediaEncoding.Probing
description = string.Join(" ", numbers, 1, numbers.Length - 1).Trim(); // Skip the first, concatenate the rest, clean up spaces and save it
}
else
{
throw new Exception(); // Switch to default parsing
}
}
catch // Default parsing
{
if (subtitle.Contains(".")) // skip the comment, keep the subtitle
description = string.Join(".", subtitle.Split('.'), 1, subtitle.Split('.').Length - 1).Trim(); // skip the first
else
{
description = subtitle.Trim(); // Clean up whitespaces and save it
}
}
}
}