Explorar el Código

don't use year in series folder name

Luke Pulverenti hace 8 años
padre
commit
c335521859
Se han modificado 1 ficheros con 2 adiciones y 13 borrados
  1. 2 13
      MediaBrowser.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs

+ 2 - 13
MediaBrowser.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs

@@ -888,20 +888,9 @@ namespace MediaBrowser.Server.Implementations.LiveTv.EmbyTV
                 }
 
                 var folderName = _fileSystem.GetValidFilename(timer.Name).Trim();
-                var folderNameWithYear = folderName;
-                if (timer.ProductionYear.HasValue)
-                {
-                    folderNameWithYear += " (" + timer.ProductionYear.Value.ToString(CultureInfo.InvariantCulture) + ")";
-                }
 
-                if (Directory.Exists(Path.Combine(recordPath, folderName)))
-                {
-                    recordPath = Path.Combine(recordPath, folderName);
-                }
-                else
-                {
-                    recordPath = Path.Combine(recordPath, folderNameWithYear);
-                }
+                // Can't use the year here in the folder name because it is the year of the episode, not the series.
+                recordPath = Path.Combine(recordPath, folderName);
 
                 if (timer.SeasonNumber.HasValue)
                 {