diff --git a/public/index.js b/public/index.js
index 4d3b7fd..a498071 100644
--- a/public/index.js
+++ b/public/index.js
@@ -210,7 +210,7 @@ window.onload = () => {
by ${d.artist.name}
-
+
@@ -224,13 +224,6 @@ window.onload = () => {
if (d.data.length === 0) return document.getElementById('albums').innerHTML = '
Not found!';
for (c of document.getElementById('albums').children) {
- if (c.children[0] && c.children[0].children[1]) {
- let id = c.id.split('-')[1];
- c.children[0].children[1].onclick = () => {
- clearError();
- startDownload(id, true);
- }
- }
let id = c.id.split('-')[1];
if (document.getElementById('album-bottom-' + id)) {
document.getElementById('album-bottom-' + id).innerHTML = '
';
@@ -248,7 +241,7 @@ window.onload = () => {
${d.artist} - ${d.title}
-
+
${formatTime(d.duration)}
@@ -256,16 +249,9 @@ window.onload = () => {
`
).join('');
- for (track of document.getElementById('album-bottom-' + id).children) {
- let trackId = track.id.split('-')[1];
- track.children[1].children[0].onclick = () => {
- clearError();
- startDownload(trackId, false);
- }
- }
}
}
}
search.addEventListener('change', change);
-};
\ No newline at end of file
+};