mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
cleaned up handling of Unknown quality type.
This commit is contained in:
parent
3c53e6009d
commit
c1bbd0bd5d
5 changed files with 9 additions and 15 deletions
|
@ -28,14 +28,14 @@ namespace NzbDrone.Api.Mapping
|
|||
|
||||
foreach (var sourceItem in (IEnumerable)source)
|
||||
{
|
||||
var e = Activator.CreateInstance(listSubType).InjectFrom(sourceItem);
|
||||
var e = Activator.CreateInstance(listSubType).InjectFrom<CloneInjection>(sourceItem);
|
||||
addMethod.Invoke(result, new[] { e });
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
return (TTarget)new TTarget().InjectFrom(source);
|
||||
return (TTarget)new TTarget().InjectFrom<CloneInjection>(source);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue