From c69f8aa4c8ed606bb8542e2881efbad0de833e1d Mon Sep 17 00:00:00 2001 From: joeshaw Date: Fri, 15 Dec 2006 17:46:25 +0000 Subject: [PATCH] Catch FormatException for the year property and ignore it. bgo #386070 --- Filters/FilterMusic.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Filters/FilterMusic.cs b/Filters/FilterMusic.cs index 0f8c0289..30b8d49c 100644 --- a/Filters/FilterMusic.cs +++ b/Filters/FilterMusic.cs @@ -111,8 +111,12 @@ namespace Beagle.Filters { foreach (int track in tag.TrackCounts) AddProperty (Beagle.Property.NewUnsearched ("fixme:trackcount", track)); - foreach (int year in tag.Years) - AddProperty (Beagle.Property.NewUnsearched ("fixme:year", year)); + try { + // FIXME: Not ideal; we probably should patch entagged-sharp to handle + // the format exception itself instead and keep going. + foreach (int year in tag.Years) + AddProperty (Beagle.Property.NewUnsearched ("fixme:year", year)); + } catch (FormatException) { } foreach (string genre in tag.Genres) AddProperty (Beagle.Property.NewKeyword ("fixme:genre", genre)); -- 2.11.4.GIT