mirror of
http://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-11-24 16:01:28 +00:00
possible input number tracks in "play all pages"; reduce threshold
This commit is contained in:
parent
c9f9871e26
commit
8e79357287
|
@ -49,10 +49,13 @@ def list_tracks(pg=None, search=None, tag=None, library=None):
|
||||||
for i in tracks_results:
|
for i in tracks_results:
|
||||||
play_track(track=i, multi=True)
|
play_track(track=i, multi=True)
|
||||||
elif select == 'Play all pages':
|
elif select == 'Play all pages':
|
||||||
if tracks_count > 1000:
|
if tracks_count > 500:
|
||||||
yn = input('WARNING: you really want add more than 1000 tracks? (y/[n])\n').lower()
|
yn = input('WARNING: you really want add more than 500 tracks? (y/[n] or number of tracks)\n').lower()
|
||||||
if yn != 'y':
|
try:
|
||||||
return
|
tracks_count = int(yn)
|
||||||
|
except:
|
||||||
|
if yn != 'y':
|
||||||
|
return
|
||||||
count_loaded = 0
|
count_loaded = 0
|
||||||
while tracks_count > count_loaded:
|
while tracks_count > count_loaded:
|
||||||
for i in tracks_results:
|
for i in tracks_results:
|
||||||
|
|
Loading…
Reference in a new issue