From 89f6f3a1d036b5c7efe1f9eb208f6136805cb8e5 Mon Sep 17 00:00:00 2001 From: iou1name Date: Tue, 29 Oct 2019 09:37:49 -0400 Subject: [PATCH] show track title in document title --- config.py.template | 1 + static/musik.js | 1 + 2 files changed, 2 insertions(+) diff --git a/config.py.template b/config.py.template index 8a80454..3ab525a 100755 --- a/config.py.template +++ b/config.py.template @@ -7,4 +7,5 @@ buckler = { 'url': "http://127.0.0.1:5400/buckler", 'app_id': 1, 'app_key': """password""", + 'login_url': "/buckler/login", } diff --git a/static/musik.js b/static/musik.js index b0bb4bb..307ada2 100644 --- a/static/musik.js +++ b/static/musik.js @@ -88,4 +88,5 @@ function change_track(track) { document.getElementById('nowPlayingTitle').innerHTML = track.title; document.getElementById('albumCover').firstChild.src = document.location.href + 'coverart?' + query; + document.title = 'Musik | ' + track.artist + ' - ' + track.title; }