From 824a0daa570c2b9d0b1da43ba4aa325d93952cf2 Mon Sep 17 00:00:00 2001 From: CodeConscious <50596087+codeconscious@users.noreply.github.com> Date: Mon, 9 Nov 2026 20:15:45 +0900 Subject: [PATCH 1/6] Remove unused code --- .../Operations/TagUpdater.cs | 13 +-- src/AudioTagger.Library/OutputLine.cs | 87 ------------------- 2 files changed, 1 insertion(+), 99 deletions(-) diff --git a/src/AudioTagger.Console/Operations/TagUpdater.cs b/src/AudioTagger.Console/Operations/TagUpdater.cs index 9669df5..0730c8a 100644 --- a/src/AudioTagger.Console/Operations/TagUpdater.cs +++ b/src/AudioTagger.Console/Operations/TagUpdater.cs @@ -105,7 +105,7 @@ private static bool UpdateTags( : []; UpdatableFields updateableFields = new(matchedTags, artistsWithGenres); - Dictionary proposedUpdates = updateableFields.GetUpdateKeyValuePairs(mediaFile); + var proposedUpdates = updateableFields.GetUpdateKeyValuePairs(mediaFile); if (proposedUpdates.None()) { @@ -114,19 +114,8 @@ private static bool UpdateTags( return shouldCancel; } - // Print the filename - //printer.PrintDivider(mediaFile.FileNameOnly, ConsoleColor.Cyan); - - // Print the current tag data. - // printer.Print(OutputLine.GetTagPrintedLines(mediaFile), 1, 0); - printer.PrintTagDataToTable(mediaFile, proposedUpdates, false); - // Show the proposed updates and ask the user to confirm. - // printer.Print("Apply these updates?", 0, 0, string.Empty, ConsoleColor.Yellow); - // foreach (var update in proposedUpdates) - // printer.Print(update.Line); - if (doConfirm) { const string no = "No"; diff --git a/src/AudioTagger.Library/OutputLine.cs b/src/AudioTagger.Library/OutputLine.cs index 9e3c212..457f0f2 100644 --- a/src/AudioTagger.Library/OutputLine.cs +++ b/src/AudioTagger.Library/OutputLine.cs @@ -6,13 +6,6 @@ public sealed class OutputLine { public List Line { get; } = []; - private OutputLine() { } - - public OutputLine(LineSubString lineParts) - { - Line = [lineParts]; - } - public OutputLine(params LineSubString[] lineParts) { Line = lineParts.ToList(); @@ -23,86 +16,6 @@ public OutputLine(string text, ConsoleColor? fgColor = null, ConsoleColor? bgCol Line.Add(new LineSubString(text, fgColor, bgColor)); } - public void Add(LineSubString lineParts) - { - Line.Add(lineParts); - } - - public void Add(string text, ConsoleColor? fgColor = null, ConsoleColor? bgColor = null) - { - Line.Add(new LineSubString(text, fgColor, bgColor)); - } - - public static OutputLine TagDataWithHeader(string tagName, - IReadOnlyList tagData, - string prependLine = "") - { - const int spacesToPrepend = 4; - int spacesToAppend = 13 - tagName.Length; // TODO: Calculate this instead - - var lineOutput = new OutputLine(); - - lineOutput.Add(prependLine); - lineOutput.Add(new string(' ', spacesToPrepend)); - lineOutput.Add(tagName); - lineOutput.Add(new string(' ', spacesToAppend)); - - foreach (LineSubString part in tagData) - lineOutput.Add(part); - - return lineOutput; - } - - public static OutputLine TagDataWithHeader(string tagName, string tagData, - string prependLine = "") - { - return TagDataWithHeader( - tagName, - new List { new(tagData) }, - prependLine); - } - - public static IList GetTagPrintedLines(MediaFile fileData) - { - var lines = new List - { - TagDataWithHeader("Title", fileData.Title), - TagDataWithHeader("Artist(s)", fileData.Artists.Join()), - TagDataWithHeader("Album", fileData.Album), - TagDataWithHeader("Year", fileData.Year.ToString()), - TagDataWithHeader("Duration", fileData.Duration.ToString("m\\:ss")) - }; - - int genreCount = fileData.Genres.Length; - lines.Add(TagDataWithHeader("Genre(s)", string.Join(", ", fileData.Genres) + - (genreCount > 1 ? $" ({genreCount})" : string.Empty))); - - string bitrate = fileData.BitRate.ToString(); - string sampleRate = fileData.SampleRate.ToString("#,##0"); - - // Create formatted quality line - const string genreSeparator = " "; - lines.Add( - TagDataWithHeader( - "Quality", - new List - { - new(bitrate), - new(" kbps" + genreSeparator, ConsoleColor.DarkGray), - new(sampleRate), - new(" kHz" + genreSeparator, ConsoleColor.DarkGray), - new(fileData.ReplayGainSummary()) - })); - - if (fileData.Composers.Length > 0) - lines.Add(TagDataWithHeader("Composers", fileData.Composers.Join())); - - if (fileData.Comments.HasText()) - lines.Add(TagDataWithHeader("Comment", fileData.Comments)); - - return lines; - } - public static Dictionary GetTagKeyValuePairs( MediaFile fileData, bool includeComments) From beaa1c589a0d4541fb2aa7bafaaa0270f7fce124 Mon Sep 17 00:00:00 2001 From: CodeConscious <50596087+codeconscious@users.noreply.github.com> Date: Mon, 9 Nov 2026 20:23:05 +0900 Subject: [PATCH 2/6] Remove more --- src/AudioTagger.Console/Operations/TagStats.cs | 10 +++------- src/AudioTagger.Console/Operations/TagUpdater.cs | 3 +-- .../Operations/TagUpdaterGenreOnly.cs | 2 -- .../Operations/TagUpdaterYearOnly.cs | 4 +--- 4 files changed, 5 insertions(+), 14 deletions(-) diff --git a/src/AudioTagger.Console/Operations/TagStats.cs b/src/AudioTagger.Console/Operations/TagStats.cs index 514e62c..e719043 100644 --- a/src/AudioTagger.Console/Operations/TagStats.cs +++ b/src/AudioTagger.Console/Operations/TagStats.cs @@ -80,7 +80,7 @@ public void Start( const int mostCommonYearCount = 15; var mostCommonYears = mediaFiles - // .Where(f => f.Year != 0) + .Where(f => f.Year != 0) .GroupBy(f => f.Year) .ToDictionary(f => f.Key, f => f.Count()) .OrderByDescending(f => f.Value) @@ -196,13 +196,9 @@ private static void PrintToTable( { Border = TableBorder.None }; + table.AddColumns(columnNames.Select(n => $"[gray]{n}[/]").ToArray()); - // table.Columns[0].Width = rows.Max(r => r[0].Length + 3); - // table.Columns[1].Width = rows.Max(r => Math.Max(r[1].Length + 3, 6)); - // if (columnNames.Count > 2) - // { - // table.Columns[2].Width = rows.Max(r => Math.Max(r[1].Length + 3, 6)); - // } + if (justifications != null) { for (int i = 0; i < justifications.Count; i++) diff --git a/src/AudioTagger.Console/Operations/TagUpdater.cs b/src/AudioTagger.Console/Operations/TagUpdater.cs index 0730c8a..7d6577e 100644 --- a/src/AudioTagger.Console/Operations/TagUpdater.cs +++ b/src/AudioTagger.Console/Operations/TagUpdater.cs @@ -158,8 +158,7 @@ private static bool UpdateTags( return shouldCancel; } - //printer.Print("Updates saved", ResultType.Success, 0, 1); - AnsiConsole.MarkupLine("[green]Updates saved[/]" + Environment.NewLine); + printer.Print("Updates saved", ResultType.Success, 0, 1); return shouldCancel; } diff --git a/src/AudioTagger.Console/Operations/TagUpdaterGenreOnly.cs b/src/AudioTagger.Console/Operations/TagUpdaterGenreOnly.cs index 629f2af..791c895 100644 --- a/src/AudioTagger.Console/Operations/TagUpdaterGenreOnly.cs +++ b/src/AudioTagger.Console/Operations/TagUpdaterGenreOnly.cs @@ -85,8 +85,6 @@ private static void UpdateGenreTag(MediaFile mediaFile, printer.Print($"No {updateType} updates needed for \"{mediaFile.FileNameOnly}\".", fgColor: ConsoleColor.DarkGray); } - // printer.PrintTagDataToTable(mediaFile, proposedUpdates, false); - // Make the tag updates try { diff --git a/src/AudioTagger.Console/Operations/TagUpdaterYearOnly.cs b/src/AudioTagger.Console/Operations/TagUpdaterYearOnly.cs index 93d701b..32b43bf 100644 --- a/src/AudioTagger.Console/Operations/TagUpdaterYearOnly.cs +++ b/src/AudioTagger.Console/Operations/TagUpdaterYearOnly.cs @@ -27,7 +27,6 @@ public void Start(IReadOnlyCollection mediaFiles, catch (Exception ex) { printer.Error($"Error updating {mediaFile.FileNameOnly}: {ex.Message}"); - //printer.PrintException(ex); errorFiles.Add(mediaFile.FileNameOnly); } } @@ -105,8 +104,7 @@ private static bool UpdateTags(MediaFile mediaFile, IPrinter printer, ref bool d return shouldCancel; } - //printer.Print("Updates saved", ResultType.Success, 0, 1); - AnsiConsole.MarkupLine("[green]Updates saved[/]" + Environment.NewLine); + printer.Print("Updates saved", ResultType.Success, 0, 1); return shouldCancel; } From 79d005f590dc749c05f64bb8e1f9e3237b9b90b1 Mon Sep 17 00:00:00 2001 From: CodeConscious <50596087+codeconscious@users.noreply.github.com> Date: Mon, 9 Nov 2026 21:54:05 +0900 Subject: [PATCH 3/6] Delete incomplete RegexTests file --- src/AudioTagger.Tests/RegexTests.cs | 489 ---------------------------- 1 file changed, 489 deletions(-) delete mode 100644 src/AudioTagger.Tests/RegexTests.cs diff --git a/src/AudioTagger.Tests/RegexTests.cs b/src/AudioTagger.Tests/RegexTests.cs deleted file mode 100644 index 89b6843..0000000 --- a/src/AudioTagger.Tests/RegexTests.cs +++ /dev/null @@ -1,489 +0,0 @@ -/* -using Xunit; -using System.Collections.Generic; -using System.Collections; -using System.Linq; -using System.Text.RegularExpressions; - -namespace AudioTagger.Tests; - -public sealed class RegexTests -{ - public sealed class ParsedItem - { - /// - /// The file name from which the other expected values while be parsed, as possible. - /// - public string FileName { get; set; } - - #region Expected parsed values - - public string Title { get; set; } - public List Artists { get; set; } - public string Album { get; set; } - public string Disc { get; set; } - public string Track { get; set; } - public string Year { get; set; } - public List Genres { get; set; } - - public ParsedItem(string fileName) - { - FileName = fileName; - } - - #endregion - } - - private sealed class TestDataSet : IEnumerable - { - public IEnumerator GetEnumerator() - { - yield return new object[] - { - new ParsedItem("吉田拓郎 - 夏休み [1971] {歌謡曲}.mp3") - { - Artists = new List { "吉田拓郎" }, - Title = "夏休み", - Year = "1971", - Genres = new List { "歌謡曲" } - } - }; - - // With disc and track, with genre - yield return new object[] - { - new ParsedItem("Michael Jackson - Thriller [2005] - 1.2 - Beat It {Pop}.mp4") - { - Title = "Beat It", - Artists = new List { "Michael Jackson" }, - Album = "Thriller", - Disc = "1", - Track = "2", - Year = "2005", - Genres = new List { "Pop"} - } - }; - - // Track with no disc, with genre - yield return new object[] - { - new ParsedItem("Michael Jackson - Thriller [2005] - 2 - Beat It {Pop}.mp4") - { - Title = "Beat It", - Artists = new List { "Michael Jackson" }, - Album = "Thriller", - Track = "2", - Year = "2005", - Genres = new List { "Pop"} - } - }; - - // No genre - yield return new object[] - { - new ParsedItem("Michael Jackson - Thriller [2005] - 2 - Beat It.mp4") - { - Title = "Beat It", - Artists = new List { "Michael Jackson" }, - Album = "Thriller", - Track = "2", - Year = "2005", - } - }; - - yield return new object[] - { - new ParsedItem("Michael Jackson - Thriller - 2 - Beat It {Pop}.mp4") - { - Title = "Beat It", - Artists = new List { "Michael Jackson" }, - Album = "Thriller", - Track = "2", - Genres = new List { "Pop"} - } - }; - - yield return new object[] - { - new ParsedItem("Michael Jackson - Thriller - 2 - Beat It.mp4") - { - Title = "Beat It", - Artists = new List { "Michael Jackson" }, - Album = "Thriller", - Track = "2", - } - }; - - // No track number - yield return new object[] - { - new ParsedItem("Michael Jackson - Thriller [2005] - Beat It {Pop}.mp4") - { - Title = "Beat It", - Artists = new List { "Michael Jackson" }, - Album = "Thriller", - Year = "2005", - Genres = new List { "Pop"} - } - }; - - // No track number or genre - yield return new object[] - { - new ParsedItem("Michael Jackson - Thriller [2005] - Beat It.mp4") - { - Title = "Beat It", - Artists = new List { "Michael Jackson" }, - Album = "Thriller", - Year = "2005", - } - }; - - // No year or track number - yield return new object[] - { - new ParsedItem("Michael Jackson - Thriller - Beat It {Pop}.mp4") - { - Title = "Beat It", - Artists = new List { "Michael Jackson" }, - Album = "Thriller", - Genres = new List { "Pop"} - } - }; - - yield return new object[] - { - new ParsedItem("Michael Jackson - Beat It [2005] {Pop}.mp4") - { - Title = "Beat It", - Artists = new List { "Michael Jackson" }, - Year = "2005", - Genres = new List { "Pop"} - } - }; - - yield return new object[] - { - new ParsedItem("Michael Jackson - Beat It {Pop}.flac") - { - Title = "Beat It", - Artists = new List { "Michael Jackson" }, - Genres = new List { "Pop"} - } - }; - - yield return new object[] - { - new ParsedItem("Michael Jackson - Beat It [2005].mp4") - { - Title = "Beat It", - Artists = new List { "Michael Jackson" }, - Year = "2005" - } - }; - - yield return new object[] - { - new ParsedItem("Michael Jackson - Beat It.mp4") - { - Title = "Beat It", - Artists = new List { "Michael Jackson" } - } - }; - - // Extra spaces - yield return new object[] - { - new ParsedItem(" Michael Jackson - Beat It .mp4") - { - Title = "Beat It", - Artists = new List { "Michael Jackson" } - } - }; - - yield return new object[] - { - new ParsedItem("Beat It [2005] {Pop}.mp4") - { - Title = "Beat It", - Year = "2005", - Genres = new List { "Pop"} - } - }; - - yield return new object[] - { - new ParsedItem("Beat It [2005].mp4") - { - Title = "Beat It", - Year = "2005", - } - }; - - yield return new object[] - { - new ParsedItem("Beat It {Pop}.mp4") - { - Title = "Beat It", - Genres = new List { "Pop"} - } - }; - - yield return new object[] - { - new ParsedItem("Beat It.mp4") - { - Title = "Beat It", - } - }; - - yield return new object[] - { - new ParsedItem("82.99 F.M.mp3") - { - Title = "82.99 F.M", - } - }; - - yield return new object[] - { - new ParsedItem("吉田拓郎 - 夏休み [1971] {歌謡曲}.mp3") - { - Artists = new List { "吉田拓郎" }, - Title = "夏休み", - Year = "1971", - Genres = new List { "歌謡曲" } - } - }; - - yield return new object[] - { - new ParsedItem("五木ひろし with 木の実ナナ - 居酒屋.ogg") - { - Artists = new List { "五木ひろし with 木の実ナナ" }, - Title = "居酒屋" - } - }; - - yield return new object[] - { - new ParsedItem("Official髭男dism - I LOVE... [2020] {J-Pop}.mp3") - { - Artists = new List { "Official髭男dism" }, - Title = "I LOVE...", - Year = "2020", - Genres = new List { "J-Pop" } - } - }; - - // Album first, various artists, no genres - yield return new object[] - { - new ParsedItem("Compilation of Jamz [2022] = Ororo Munroe - Storms of My Heart.mp3") - { - Album = "Compilation of Jamz", - Artists = new List { "Ororo Munroe" }, - Title = "Storms of My Heart", - Year = "2022" - } - }; - - // Album first, various artists, with genres - yield return new object[] - { - new ParsedItem("Compilation of Jamz [2022] = Ororo Munroe - Storms of My Heart {World}.mp3") - { - Album = "Compilation of Jamz", - Artists = new List { "Ororo Munroe" }, - Title = "Storms of My Heart", - Year = "2022", - Genres = new List { "World" } - } - }; - - // Album first, various artists, no year, superfluous track number - yield return new object[] - { - new ParsedItem("最強の名曲集 = 020 20. 坂本龍馬 - 南方仁のとの会話.mp3") - { - Album = "最強の名曲集", - Artists = new List { "坂本龍馬" }, - Title = "南方仁のとの会話", - Track = "20" - } - }; - - // Album first, various artists, with year, superfluous track number - yield return new object[] - { - new ParsedItem("最強の名曲集 [2022] = 020 20. 坂本龍馬 - 南方仁のとの会話.mp3") - { - Album = "最強の名曲集", - Artists = new List { "坂本龍馬" }, - Title = "南方仁のとの会話", - Year = "2022", - Track = "20" - } - }; - - // Test accented characters - yield return new object[] - { - new ParsedItem("Scott Summers - Size X Jeans - Eyé On You.mp3") - { - Artists = new List { "Scott Summers" }, - Album = "Size X Jeans", - Title = "Eyé On You" - } - }; - - // Contains "ft." - yield return new object[] - { - new ParsedItem("Natalia Lafourcade - Tú Me Acostumbraste ft. Omara Portuondo (En Manos de Los Macorinos) (Cover).mp3") - { - Artists = new List { "Natalia Lafourcade" }, - Title = "Tú Me Acostumbraste ft. Omara Portuondo (En Manos de Los Macorinos) (Cover)", - } - }; - - // Album-based - yield return new object[] - { - new ParsedItem("Rinsyoe Kida, Akira Ishikawa - Tsugaru Jongara Bushi: Drum & Tsugaru Jamisen [1973] - 01 - 津軽じょんがら節.mp3") - { - Artists = new List { "Rinsyoe Kida, Akira Ishikawa" }, - Album = "Tsugaru Jongara Bushi: Drum & Tsugaru Jamisen", - Title = "津軽じょんがら節", - Track = "1", - Year = "1973", - } - }; - - // "S.O.S." parsing issues - yield return new object[] - { - new ParsedItem("Arbitrarious - S.O.S. (@地球) [1865] {International}.mp3") - { - Artists = new List { "Arbitrarious" }, - Title = "S.O.S. (@地球)", - Year = "1865", - Genres = new List { "International" } - } - }; - - // "...WHY" parsing issues - yield return new object[] - { - new ParsedItem("Paft Dunk - Ongakooz [1756] - 02 - ...WHY.mp3") - { - Artists = new List { "Paft Dunk" }, - Album = "Ongakooz", - Title = "...WHY", - Year = "1756", - Track = "2" } - }; - - // "WHY..." potential parsing issues - yield return new object[] - { - new ParsedItem("Paft Dunk - Ongakooz [1756] - 02 - WHY....mp3") - { - Artists = new List { "Paft Dunk" }, - Album = "Ongakooz", - Title = "WHY...", - Year = "1756", - Track = "2" } - }; - - // "...WHY..." potential parsing issues - yield return new object[] - { - new ParsedItem("Paft Dunk - Ongakooz [1756] - 02 - ...WHY....mp3") - { - Artists = new List { "Paft Dunk" }, - Album = "Ongakooz", - Title = "...WHY...", - Year = "1756", - Track = "2" } - }; - - yield return new object[] - { - new ParsedItem("真剣赫怒 - What's This, Mr.Random [2030].mp3") - { - Artists = new List { "真剣赫怒" }, - Title = "What's This, Mr.Random", - Year = "2030" - } - }; - - yield return new object[] - { - new ParsedItem("全世界の生物の魂 - If You... (Remix).mp3") - { - Artists = new List { "全世界の生物の魂" }, - Title = "If You... (Remix)", - } - }; - } - - IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); - } - - [Theory] - [ClassData(typeof(TestDataSet))] - public void CanParseValidFileNames(ParsedItem expected) - { - var regexCollection = new RegexCollection("Regexes.txt"); - - var match = regexCollection.GetFirstMatch(expected.FileName); - - var matchedTags = match.Groups - .OfType() - .Where(g => g.Success); - - var matchedData = new UpdatableFields(matchedTags); - - Assert.NotNull(matchedData); - - if (expected.Artists?.Any() == true) - { - Assert.Equal(expected.Artists.Count, matchedData.Artists.Length); - for (var i = 0; i < expected.Artists.Count; i++) - { - Assert.Equal(expected.Artists[i], matchedData.Artists[i].Trim()); - } - } - else - { - Assert.Null(matchedData.Artists); - } - - // There should always be a title. - Assert.Equal(expected.Title, matchedData.Title.Trim()); - - // TODO: Add a Disc and Track property to matched data. - //Assert.Equal(data.Disc, matchedData.Disc); - //Assert.Equal(data.Track, matchedData.Track); - - if (expected.Year != null) - Assert.Equal(expected.Year ?? null, matchedData.Year.ToString().Trim()); - else - Assert.Null(matchedData.Year); - - if (expected.Genres?.Any() == true) - { - Assert.Equal(expected.Genres.Count, matchedData.Genres.Length); - for (var i = 0; i < expected.Genres.Count; i++) - { - Assert.Equal(expected.Genres[i], matchedData.Genres[i].Trim()); - } - } - else - { - Assert.Null(matchedData.Genres); - } - } -} -*/ From bfd0e9a747868f48d6636472b38aede1734cd261 Mon Sep 17 00:00:00 2001 From: CodeConscious <50596087+codeconscious@users.noreply.github.com> Date: Tue, 10 Nov 2026 17:06:33 +0900 Subject: [PATCH 4/6] Remove yet more unused and commented code --- src/AudioTagger.Library/Genres/GenreService.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/AudioTagger.Library/Genres/GenreService.cs b/src/AudioTagger.Library/Genres/GenreService.cs index 2974c0f..a5fbeb5 100644 --- a/src/AudioTagger.Library/Genres/GenreService.cs +++ b/src/AudioTagger.Library/Genres/GenreService.cs @@ -45,10 +45,8 @@ public static Result> Read(string? genreFileName) try { using TextFieldParser csvParser = new(genreFileName); - // csvParser.CommentTokens = ["#"]; csvParser.SetDelimiters(Delimiters); csvParser.HasFieldsEnclosedInQuotes = false; - // csvParser.ReadLine(); // Skip header row while (!csvParser.EndOfData) { @@ -64,6 +62,4 @@ public static Result> Read(string? genreFileName) return Result.Fail(ex.Message); } } - - private static string EscapeQuotationMarks(string text) => text.Replace("\"", "\\\""); } From 81c893bf1077dc6638723f04024c02ae9e9b2cb0 Mon Sep 17 00:00:00 2001 From: CodeConscious <50596087+codeconscious@users.noreply.github.com> Date: Tue, 10 Nov 2026 17:09:15 +0900 Subject: [PATCH 5/6] Add empty line --- src/AudioTagger.Library/Genres/GenreService.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/AudioTagger.Library/Genres/GenreService.cs b/src/AudioTagger.Library/Genres/GenreService.cs index a5fbeb5..8517394 100644 --- a/src/AudioTagger.Library/Genres/GenreService.cs +++ b/src/AudioTagger.Library/Genres/GenreService.cs @@ -42,6 +42,7 @@ public static Result> Read(string? genreFileName) } Dictionary artistsWithGenres = []; + try { using TextFieldParser csvParser = new(genreFileName); From 9131879aadfdb7cffce023f8389cb231c6d48e39 Mon Sep 17 00:00:00 2001 From: CodeConscious <50596087+codeconscious@users.noreply.github.com> Date: Tue, 10 Nov 2026 17:40:23 +0900 Subject: [PATCH 6/6] Remove 0-year stat check --- src/AudioTagger.Console/Operations/TagStats.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/AudioTagger.Console/Operations/TagStats.cs b/src/AudioTagger.Console/Operations/TagStats.cs index e719043..d3c821f 100644 --- a/src/AudioTagger.Console/Operations/TagStats.cs +++ b/src/AudioTagger.Console/Operations/TagStats.cs @@ -80,7 +80,6 @@ public void Start( const int mostCommonYearCount = 15; var mostCommonYears = mediaFiles - .Where(f => f.Year != 0) .GroupBy(f => f.Year) .ToDictionary(f => f.Key, f => f.Count()) .OrderByDescending(f => f.Value)