Skip to content

Commit

Permalink
Date filter trigger
Browse files Browse the repository at this point in the history
Even if otherwise specified, date filters will be applied to track writing if the amount of tracks exceeds 10,000
  • Loading branch information
ATawzer committed Nov 16, 2020
1 parent 5b4e71f commit 4754974
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion storm/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 4754974

Please sign in to comment.