mirror of
https://codeberg.org/Hyperpipe/Hyperpipe
synced 2025-06-28 05:08:00 +02:00
"See more" for albums and singles in artist page
This commit is contained in:
parent
9dd4534f83
commit
3f5abe967b
7 changed files with 81 additions and 85 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue