Merge pull request #7625 from crobibero/xml-cache-delete
(cherry picked from commit ec6f7bdcfffd6d5e05db783226da9cc4ce2df614) Signed-off-by: crobibero <cody@robibe.ro>
This commit is contained in:
parent
1ed57f48a5
commit
2e3c5ed346
|
@ -79,7 +79,12 @@ namespace Emby.Server.Implementations.LiveTv.Listings
|
|||
return UnzipIfNeeded(info.Path, cacheFile);
|
||||
}
|
||||
|
||||
File.Delete(cacheFile);
|
||||
// Must check if file exists as parent directory may not exist.
|
||||
if (File.Exists(cacheFile))
|
||||
{
|
||||
File.Delete(cacheFile);
|
||||
}
|
||||
|
||||
_logger.LogInformation("Downloading xmltv listings from {Path}", info.Path);
|
||||
|
||||
Directory.CreateDirectory(Path.GetDirectoryName(cacheFile));
|
||||
|
|
Loading…
Reference in New Issue
Block a user