"See more" for albums and singles in artist page

This commit is contained in:
Shiny Nematoda 2023-03-24 10:34:26 +00:00
parent 9dd4534f83
commit 3f5abe967b
7 changed files with 81 additions and 85 deletions

View file

@ -53,8 +53,6 @@ function parseUrl() {
const loc = location.pathname.split('/'),
base = loc[1].replace(location.search, '');
console.log(loc, base);
path.value = location.pathname;
switch (base) {
@ -67,15 +65,12 @@ function parseUrl() {
case 'watch':
player.state.status = 'circle';
data.getSong(loc[1] + location.search);
console.log(loc[1]);
break;
case 'playlist':
results.getAlbum(loc[1] + location.search);
console.log(loc[1]);
break;
case 'channel':
artist.getArtist(loc[2]);
console.log(loc[2]);
break;
case 'explore':
genreid.value = loc[2];