Merge pull request #1526 from MediaBrowser/beta

Beta
This commit is contained in:
Luke 2016-03-03 12:57:33 -05:00
commit 2f1bedaf00

View File

@ -919,13 +919,13 @@ namespace MediaBrowser.Server.Implementations.LiveTv.EmbyTV
if (GetConfiguration().EnableAutoOrganize) if (GetConfiguration().EnableAutoOrganize)
{ {
if (recording.IsSeries) if (recording.IsSeries)
{
try
{ {
// this is to account for the library monitor holding a lock for additional time after the change is complete. // 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 // ideally this shouldn't be hard-coded
await Task.Delay(30000).ConfigureAwait(false); await Task.Delay(30000).ConfigureAwait(false);
try
{
var organize = new EpisodeFileOrganizer(_organizationService, _config, _fileSystem, _logger, _libraryManager, _libraryMonitor, _providerManager); var organize = new EpisodeFileOrganizer(_organizationService, _config, _fileSystem, _logger, _libraryManager, _libraryMonitor, _providerManager);
var result = await organize.OrganizeEpisodeFile(recording.Path, CancellationToken.None).ConfigureAwait(false); var result = await organize.OrganizeEpisodeFile(recording.Path, CancellationToken.None).ConfigureAwait(false);