handle recordings with null paths

This commit is contained in:
Luke Pulverenti
2016-02-25 21:41:43 -05:00
parent ea374c01b1
commit 1661c21152
4 changed files with 45 additions and 16 deletions

View File

@@ -300,17 +300,20 @@ namespace MediaBrowser.Server.Implementations.LiveTv.EmbyTV
}
}
try
{
_fileSystem.DeleteFile(remove.Path);
}
catch (DirectoryNotFoundException)
if (!string.IsNullOrWhiteSpace(remove.Path))
{
try
{
_fileSystem.DeleteFile(remove.Path);
}
catch (DirectoryNotFoundException)
{
}
catch (FileNotFoundException)
{
}
catch (FileNotFoundException)
{
}
}
_recordingProvider.Delete(remove);
}

View File

@@ -90,7 +90,8 @@ namespace MediaBrowser.Server.Implementations.LiveTv.TunerHosts.HdHomerun
await _liveTvManager.SaveTunerHost(new TunerHostInfo
{
Type = HdHomerunHost.DeviceType,
Url = url
Url = url,
DataVersion = 1
}).ConfigureAwait(false);
}