improve embedded image extraction

This commit is contained in:
Luke Pulverenti
2016-04-13 16:49:16 -04:00
parent 41ee4600fd
commit b0379ec7f8
8 changed files with 92 additions and 26 deletions

View File

@@ -138,10 +138,14 @@ namespace MediaBrowser.MediaEncoding.Probing
var parts = iTunEXTC.Split(new[] { '|' }, StringSplitOptions.RemoveEmptyEntries);
// Example
// mpaa|G|100|For crude humor
if (parts.Length == 4)
if (parts.Length > 1)
{
info.OfficialRating = parts[1];
info.OfficialRatingDescription = parts[3];
if (parts.Length > 3)
{
info.OfficialRatingDescription = parts[3];
}
}
}