Added tracklist code to replace readmp3 routine
This commit is contained in:
13
tracktest.py
Normal file → Executable file
13
tracktest.py
Normal file → Executable 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):
|
||||
|
||||
Reference in New Issue
Block a user