Fixed versioning.

This commit is contained in:
Andrew Dunai 2018-01-31 12:12:53 +02:00
parent 145ae101fb
commit b48b147542
2 changed files with 4 additions and 2 deletions

View file

@ -9,7 +9,9 @@ except ImportError:
APP_NAME = 'Clay Player'
VERSION = '0.5.5'
if codename is not None:
VERSION += '-' + codename(separator='-', id=VERSION)
VERSION_WITH_CODENAME = VERSION + '-' + codename(separator='-', id=VERSION)
else:
VERSION_WITH_CODENAME = VERSION
USER_AGENT = ' '.join([
'Mozilla/5.0 (X11; Linux x86_64)'
'AppleWebKit/537.36 (KHTML, like Gecko)'

View file

@ -129,7 +129,7 @@ class PlayBar(urwid.Pile):
if track is None:
return u'{} {}'.format(
meta.APP_NAME,
meta.VERSION
meta.VERSION_WITH_CODENAME
)
progress = player.get_play_progress_seconds()
total = player.get_length_seconds()