aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-09-15 02:38:09 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-09-15 02:38:09 -0400
commitc3355218594576457b3094dccea8e68896ef9cee (patch)
treeb286ba398bd393343a6345ad9fd436095a23ba8c
parent38fec0a74a8b46e5dde32232c91d92fc7911dfb5 (diff)
don't use year in series folder name
-rw-r--r--MediaBrowser.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs15
1 files changed, 2 insertions, 13 deletions
diff --git a/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs b/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs
index 3dc0eedd6..3eb032ba8 100644
--- a/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs
+++ b/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)
{