Gstreamer goes to the next song when finishing playback
This commit is contained in:
parent
cc1627225d
commit
48e53926f1
|
@ -105,6 +105,8 @@ def drawProgress():
|
||||||
return
|
return
|
||||||
win = settings.get("maxyx")
|
win = settings.get("maxyx")
|
||||||
max = int(win[1] * p)
|
max = int(win[1] * p)
|
||||||
|
if max > win[1]:
|
||||||
|
max = win[1]
|
||||||
if max == 0:
|
if max == 0:
|
||||||
cline.message.disp(" "*(win[1]-1) ,win[0]-1)
|
cline.message.disp(" "*(win[1]-1) ,win[0]-1)
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -115,11 +115,15 @@ def addtrk(path):
|
||||||
except:
|
except:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
arid = insartalb("artist", t.artist)
|
arid = insartalb("artist", t.artist)
|
||||||
alid = insartalb("album", t.album)
|
alid = insartalb("album", t.album)
|
||||||
|
|
||||||
a = f.audioProperties()
|
a = f.audioProperties()
|
||||||
instrk(arid, alid, t.title, a.length, path)
|
instrk(arid, alid, t.title, a.length, path)
|
||||||
|
except:
|
||||||
|
write("Error adding: "+path)
|
||||||
|
#pass
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue