mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Merge pull request #7625 from crobibero/xml-cache-delete
This commit is contained in:
commit
ec6f7bdcff
@ -79,7 +79,12 @@ namespace Emby.Server.Implementations.LiveTv.Listings
|
|||||||
return UnzipIfNeeded(info.Path, cacheFile);
|
return UnzipIfNeeded(info.Path, cacheFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Must check if file exists as parent directory may not exist.
|
||||||
|
if (File.Exists(cacheFile))
|
||||||
|
{
|
||||||
File.Delete(cacheFile);
|
File.Delete(cacheFile);
|
||||||
|
}
|
||||||
|
|
||||||
_logger.LogInformation("Downloading xmltv listings from {Path}", info.Path);
|
_logger.LogInformation("Downloading xmltv listings from {Path}", info.Path);
|
||||||
|
|
||||||
Directory.CreateDirectory(Path.GetDirectoryName(cacheFile));
|
Directory.CreateDirectory(Path.GetDirectoryName(cacheFile));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user