"See more" for albums and singles in artist page

This commit is contained in:
Shiny Nematoda 2023-03-24 10:34:26 +00:00 committed by vrifox
parent c46ce75472
commit 09ce7c64df
No known key found for this signature in database
GPG key ID: D40098E5B60B2197
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];