Merge pull request #1517 from MediaBrowser/dev

fix live tv auto-organize
This commit is contained in:
Luke 2016-03-03 01:20:21 -05:00
commit def6bd6a6b

View File

@ -920,6 +920,10 @@ namespace MediaBrowser.Server.Implementations.LiveTv.EmbyTV
{ {
if (recording.IsSeries) if (recording.IsSeries)
{ {
// this is to account for the library monitor holding a lock for additional time after the change is complete.
// ideally this shouldn't be hard-coded
await Task.Delay(30000).ConfigureAwait(false);
try try
{ {
var organize = new EpisodeFileOrganizer(_organizationService, _config, _fileSystem, _logger, _libraryManager, _libraryMonitor, _providerManager); var organize = new EpisodeFileOrganizer(_organizationService, _config, _fileSystem, _logger, _libraryManager, _libraryMonitor, _providerManager);