From 47549745cef60078f4d8de3803b4b8013b2e85a7 Mon Sep 17 00:00:00 2001 From: ATawzer <34928044+ATawzer@users.noreply.github.com> Date: Mon, 16 Nov 2020 09:11:52 -0700 Subject: [PATCH] Date filter trigger Even if otherwise specified, date filters will be applied to track writing if the amount of tracks exceeds 10,000 --- storm/utils.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/storm/utils.py b/storm/utils.py index 963f815..408671e 100644 --- a/storm/utils.py +++ b/storm/utils.py @@ -131,10 +131,17 @@ def Run(self): # Get Album lists self.get_artist_albums() self.filter_albums() - + # Tracks self.get_album_tracks() self.clean_tracks() + + # if track list to large apply date filter + if len(self.storm_track_ids)>9999: + self.filter_unseen = True + self.filter_albums() + self.get_album_tracks() + self.clean_tracks() # Playlist Writing self.archive_current()