Gstreamer goes to the next song when finishing playback

This commit is contained in:
bjschuma 2010-02-13 15:58:31 -05:00
parent cc1627225d
commit 48e53926f1
2 changed files with 10 additions and 4 deletions

View File

@ -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:

View File

@ -115,11 +115,15 @@ def addtrk(path):
except: except:
return return
arid = insartalb("artist", t.artist) try:
alid = insartalb("album", t.album) arid = insartalb("artist", t.artist)
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