2005-03-03, 20:48
i'm not a python guru by any stretch (have never coded anything in python) but i'd try something like this:
reason is that the tag variable may well be invalid once the song has finished, so doing tag.gettitle() is operating on an invalid variable.
cheers,
jonathan
Quote: def run(self):
artist_name = ""
title_name = ""
while (self.running):
tag = self.overlay.get_player().getmusicinfotag()
if tag.gettitle() != title_name:
artist_name = tag.getartist()
title_name = tag.gettitle()
self.overlay.lyrics(artist_name, title_name)
time.sleep(5)
reason is that the tag variable may well be invalid once the song has finished, so doing tag.gettitle() is operating on an invalid variable.
cheers,
jonathan