From 2f893101734c2c28a8fa79b6b748104daea0ff81 Mon Sep 17 00:00:00 2001 From: "Scott R. Frost" Date: Fri, 23 Aug 2019 12:56:44 -0400 Subject: [PATCH] Look for up to 64 seasons and 64 episodes per season. (Thanks Teen Titans S05!) --- src/SimpleSFTPSyncCore/Rename.cs | 4 ++-- src/SimpleSFTPSyncCore/SimpleSFTPSyncCore.csproj | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/SimpleSFTPSyncCore/Rename.cs b/src/SimpleSFTPSyncCore/Rename.cs index 617ae57..ce0cf8e 100644 --- a/src/SimpleSFTPSyncCore/Rename.cs +++ b/src/SimpleSFTPSyncCore/Rename.cs @@ -116,9 +116,9 @@ public static bool IsTV(string filename) // Check for TV style naming - Usually 'Show Name s##e##' followed by garbage var found = false; - for (var season = 1; season < 36; season++) + for (var season = 1; season < 64; season++) { - for (var episode = 0; episode < 36; episode++) + for (var episode = 0; episode < 64; episode++) { var episodeNumber = "S" + (season < 10 ? "0" + season : season.ToString(CultureInfo.InvariantCulture)) + "E" + (episode < 10 ? "0" + episode : episode.ToString(CultureInfo.InvariantCulture)); var idx = filename.ToUpperInvariant().IndexOf(episodeNumber, StringComparison.Ordinal); diff --git a/src/SimpleSFTPSyncCore/SimpleSFTPSyncCore.csproj b/src/SimpleSFTPSyncCore/SimpleSFTPSyncCore.csproj index 75b9c22..42a173f 100644 --- a/src/SimpleSFTPSyncCore/SimpleSFTPSyncCore.csproj +++ b/src/SimpleSFTPSyncCore/SimpleSFTPSyncCore.csproj @@ -27,14 +27,14 @@ - - + + - + all runtime; build; native; contentfiles; analyzers - +