Skip to content

Commit

Permalink
Look for up to 64 seasons and 64 episodes per season. (Thanks Teen Ti…
Browse files Browse the repository at this point in the history
…tans S05!)
  • Loading branch information
ScottRFrost committed Aug 23, 2019
1 parent 2a3fd74 commit 2f89310
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/SimpleSFTPSyncCore/Rename.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
8 changes: 4 additions & 4 deletions src/SimpleSFTPSyncCore/SimpleSFTPSyncCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="2.2.3" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="2.2.3" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="2.2.6" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="2.2.6" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite.Design" Version="1.1.6" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="2.2.3">
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="2.2.6">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="Newtonsoft.Json" Version="12.0.1" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
<PackageReference Include="SSH.NET" Version="2016.1.0" />
</ItemGroup>
</Project>

0 comments on commit 2f89310

Please sign in to comment.