possible input number tracks in "play all pages"; reduce threshold

This commit is contained in:
localhost_frssoft 2023-08-03 13:43:27 +03:00
parent c9f9871e26
commit 8e79357287

View file

@ -49,8 +49,11 @@ 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 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