Added tracklist code to replace readmp3 routine

This commit is contained in:
Jan
2019-09-26 16:03:19 +02:00
parent 20f0eb71b9
commit 88dce016de
6 changed files with 27 additions and 41 deletions

13
tracktest.py Normal file → Executable file
View File

@@ -1,23 +1,22 @@
#!/usr/bin/python
#!/usr/bin/python3
import time
import clockytracklist
print("-------------------------------------")
print("-------------------------------------")
t1=clockytracklist.ClockyTracklist("mp3",True,True)
t1.ShowTrackList()
tl=clockytracklist.ClockyTracklist("mp3",recursive=True,sort=False,verbose=True)
tl.ShowTrackList()
print("-------------------------------------")
t2=clockytracklist.ClockyTracklist("C:\data",True,True)
t2.ShowTrackList()
for e in tl.tracklist:
print(e);
t=0
while True:
t+=1
t1.CheckTrackList()
t2.CheckTrackList()
tl.CheckTrackList()
time.sleep(1)
if(t>30):