From 8e793572876e35335f0c76c010cce3cbe6cf46f6 Mon Sep 17 00:00:00 2001 From: localhost_frssoft Date: Thu, 3 Aug 2023 13:43:27 +0300 Subject: [PATCH] possible input number tracks in "play all pages"; reduce threshold --- src/fw_tracks.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/fw_tracks.py b/src/fw_tracks.py index e56876b..3c297d1 100644 --- a/src/fw_tracks.py +++ b/src/fw_tracks.py @@ -49,10 +49,13 @@ def list_tracks(pg=None, search=None, tag=None, library=None): for i in tracks_results: play_track(track=i, multi=True) elif select == 'Play all pages': - if tracks_count > 1000: - yn = input('WARNING: you really want add more than 1000 tracks? (y/[n])\n').lower() - if yn != 'y': - return + if tracks_count > 500: + yn = input('WARNING: you really want add more than 500 tracks? (y/[n] or number of tracks)\n').lower() + try: + tracks_count = int(yn) + except: + if yn != 'y': + return count_loaded = 0 while tracks_count > count_loaded: for i in tracks_results: