Selaa lähdekoodia

fix live tv auto-organize

Luke Pulverenti 9 vuotta sitten
vanhempi
sitoutus
5983f6957d
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 4 0
      MediaBrowser.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs

+ 4 - 0
MediaBrowser.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs

@@ -920,6 +920,10 @@ namespace MediaBrowser.Server.Implementations.LiveTv.EmbyTV
             {
                 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
                     {
                         var organize = new EpisodeFileOrganizer(_organizationService, _config, _fileSystem, _logger, _libraryManager, _libraryMonitor, _providerManager);