don't save metadata when video content type is unset

This commit is contained in:
Luke Pulverenti
2015-01-04 00:55:34 -05:00
parent 36295aa833
commit e27040f61b
16 changed files with 81 additions and 30 deletions

View File

@@ -1577,6 +1577,11 @@ namespace MediaBrowser.Controller.Entities
foreach (var newImage in images)
{
if (newImage == null)
{
throw new ArgumentException("null image found in list");
}
var existing = existingImages
.FirstOrDefault(i => string.Equals(i.Path, newImage.FullName, StringComparison.OrdinalIgnoreCase));