Fixed: Don't download artist images if match existing (#362)

* Fixed: Don't download artist images if existing exists

* fixup: Wrap FileSetWriteTime in try

* fixup! Tests and Rework
This commit is contained in:
Qstick
2018-05-24 21:08:35 -04:00
committed by GitHub
parent 2969decf95
commit 73157534e0
5 changed files with 108 additions and 86 deletions
+12
View File
@@ -117,6 +117,18 @@ namespace NzbDrone.Common.Http
}
}
public DateTime? LastModified
{
get
{
return GetSingleValue("Last-Modified", Convert.ToDateTime);
}
set
{
SetSingleValue("Last-Modified", value);
}
}
public new IEnumerator<KeyValuePair<string, string>> GetEnumerator()
{
return AllKeys.SelectMany(GetValues, (k, c) => new KeyValuePair<string, string>(k, c)).ToList().GetEnumerator();