mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-23 03:47:45 +01:00
Big Update: Automatic updating, Show what albums/songs you already have, Config fixes, Fixed restart & shutdown buttons
This commit is contained in:
@@ -26,7 +26,7 @@ class WebInterface(object):
|
||||
|
||||
def home(self):
|
||||
page = [templates._header]
|
||||
if headphones.LATEST_VERSION:
|
||||
if headphones.LATEST_VERSION and headphones.CURRENT_VERSION:
|
||||
if headphones.CURRENT_VERSION != headphones.LATEST_VERSION:
|
||||
page.append('''<div class="updatebar">A <a class="blue" href="http://github.com/rembo10/headphones/compare/%s...%s">
|
||||
newer version</a> is available. You're %s commits behind. <a class="blue" href="update">Click here to update</a></div>
|
||||
@@ -625,4 +625,6 @@ class WebInterface(object):
|
||||
def update(self):
|
||||
logger.info('Headphones is updating...')
|
||||
headphones.shutdown(restart=True, update=True)
|
||||
return 'Updating Headphones...'
|
||||
return 'Updating Headphones...'
|
||||
|
||||
update.exposed = True
|
||||
Reference in New Issue
Block a user