diff --git a/public/index.html b/public/index.html
index 06fec72..c5af2ec 100644
--- a/public/index.html
+++ b/public/index.html
@@ -37,7 +37,7 @@
{{ names[section] }}
-
+
@@ -54,15 +54,15 @@
{{ names[section] }}
|
{{track.SNG_TITLE + (track.VERSION ? ' '+track.VERSION : '')}} |
- {{artist.ART_NAME}} |
- {{track.ALB_TITLE}} |
+ {{artist.ART_NAME}} |
+ {{track.ALB_TITLE}} |
{{convertDuration(track.DURATION)}} |
get_app |
-
+
get_app
@@ -94,8 +94,8 @@
No Tracks found
|
{{track.SNG_TITLE + (track.VERSION ? ' '+track.VERSION : '')}} |
- {{artist.ART_NAME}} |
- {{track.ALB_TITLE}} |
+ {{artist.ART_NAME}} |
+ {{track.ALB_TITLE}} |
{{convertDuration(track.DURATION)}} |
get_app |
@@ -107,7 +107,7 @@
No Tracks found
No Albums found
-
+
get_app
@@ -123,7 +123,7 @@
No Albums found
No Artists found
-
+
get_app
@@ -139,7 +139,7 @@
No Artists found
No Playlists found
-
+
get_app
@@ -421,8 +421,8 @@
{{ metadata }}{{ rele
play_arrow |
{{ track.track_position }} |
explicit{{ track.title }} {{track.title_version}} |
- {{ track.artist.name }} |
- {{ track.album.title }} |
+ {{ track.artist.name }} |
+ {{ track.album.title }} |
{{ convertDuration(track.duration) }} |
|
diff --git a/public/js/app/app.js b/public/js/app/app.js
index 69d3eb7..ac21e78 100644
--- a/public/js/app/app.js
+++ b/public/js/app/app.js
@@ -106,7 +106,6 @@ socket.on('logging_in', function () {
})
socket.on('logged_in', function (data) {
- console.log(data)
switch (data.status) {
case 1:
case 3:
@@ -168,7 +167,6 @@ var settingsTab = new Vue({
})
socket.on("init_settings", function(settings, credentials){
- console.log(settings,credentials)
loadSettings(settings, credentials)
toast("Settings loaded!", 'settings')
})
diff --git a/public/js/app/downloadList.js b/public/js/app/downloadList.js
index bf2b8b4..bdac6a1 100644
--- a/public/js/app/downloadList.js
+++ b/public/js/app/downloadList.js
@@ -3,7 +3,6 @@ var queue = []
var queueComplete = []
socket.on('init_downloadQueue', function (data) {
- console.log(data)
if (data.queueComplete.length) {
data.queueComplete.forEach(item => {
addToQueue(data.queueList[item])
diff --git a/public/js/app/search.js b/public/js/app/search.js
index b0ee462..5a79bf0 100644
--- a/public/js/app/search.js
+++ b/public/js/app/search.js
@@ -23,7 +23,6 @@ function scrolledSearch(vueTab) {
}
function searchUpadate(result) {
- console.log(result)
vueTab = null
switch (result.type) {
case 'TRACK':
@@ -179,8 +178,6 @@ $("#searchbar").keyup(function(e){
sendAddToQueue(term);
}
}else{
- console.log( term );
-
if (term != MainSearch.results.QUERY || main_selected == 'search_tab'){
document.getElementById("search_tab_content").style.display = "none";
socket.emit("mainSearch", {term: term});
diff --git a/public/js/app/stackedTabs.js b/public/js/app/stackedTabs.js
index 13359ab..f3c0ba7 100644
--- a/public/js/app/stackedTabs.js
+++ b/public/js/app/stackedTabs.js
@@ -87,48 +87,45 @@ var tracklistTab = new Vue({
}
})
-function artistView(ev){
- console.log("ARTIST")
- let id = ev.currentTarget.dataset.id
+function resetArtistTab(){
artistTab.title = "Loading..."
artistTab.image = ""
artistTab.type = ""
artistTab.currentTab = ''
artistTab.sortKey = 'release_date'
artistTab.sortOrder = 'desc'
- artistTab.link = 'https://deezer.com/artist/'+id
+ artistTab.link = ''
artistTab.head = []
artistTab.body = null
+}
+
+function resetTracklistTab(){
+ tracklistTab.title = "Loading..."
+ tracklistTab.image = ""
+ tracklistTab.metadata = ""
+ tracklistTab.label = ""
+ tracklistTab.release_date = ""
+ tracklistTab.explicit = false
+ tracklistTab.type = ""
+ tracklistTab.head = []
+ tracklistTab.body = []
+}
+
+function artistView(ev){
+ let id = ev.currentTarget.dataset.id
+ resetArtistTab()
socket.emit('getTracklist', {type: 'artist', id: id})
showTab('artist', id)
}
function albumView(ev){
- console.log("ALBUM")
- tracklistTab.title = "Loading..."
- tracklistTab.image = ""
- tracklistTab.metadata = ""
- tracklistTab.label = ""
- tracklistTab.release_date = ""
- tracklistTab.explicit = false
- tracklistTab.type = ""
- tracklistTab.head = []
- tracklistTab.body = []
let id = ev.currentTarget.dataset.id
+ resetTracklistTab()
socket.emit('getTracklist', {type: 'album', id: id})
showTab('album', id)
}
function playlistView(ev){
- console.log("PLAYLIST")
- tracklistTab.title = "Loading..."
- tracklistTab.image = ""
- tracklistTab.metadata = ""
- tracklistTab.label = ""
- tracklistTab.release_date = ""
- tracklistTab.explicit = false
- tracklistTab.type = ""
- tracklistTab.head = []
- tracklistTab.body = []
let id = ev.currentTarget.dataset.id
+ resetTracklistTab()
socket.emit('getTracklist', {type: 'playlist', id: id})
showTab('playlist', id)
}
@@ -162,7 +159,6 @@ socket.on('show_album', function(data){
tracklistTab.metadata = `${data.artist.name} • ${data.tracks.length} songs`
tracklistTab.release_date = data.release_date.substring(0,10)
tracklistTab.image = data.cover_xl
- console.log(data.tracks)
tracklistTab.head = [
{title: 'music_note', width: "24px"},
{title: '#'},
diff --git a/public/js/app/tabs.js b/public/js/app/tabs.js
index 5ac7cc7..3aa62e9 100644
--- a/public/js/app/tabs.js
+++ b/public/js/app/tabs.js
@@ -4,7 +4,6 @@ var windows_stack = []
var currentStack = {}
function changeTab(evt, section, tabName) {
- console.log({ evt, section, tabName })
windows_stack = []
currentStack = {}
var i, tabcontent, tablinks
@@ -55,6 +54,9 @@ function backTab() {
clickElement('main_' + main_selected + 'link')
} else {
let tabObj = windows_stack.pop()
+ if (tabObj.type == 'artist') resetArtistTab()
+ else resetTracklistTab()
+ socket.emit('getTracklist', {type: tabObj.type, id: tabObj.id})
showTab(tabObj.type, tabObj.id, true)
}
}