mirror of
https://codeberg.org/Hyperpipe/Hyperpipe
synced 2025-06-28 13:08:01 +02:00
Explore
This commit is contained in:
parent
1153f78546
commit
44ee558509
3 changed files with 74 additions and 34 deletions
|
@ -82,8 +82,7 @@ watch(
|
|||
|
||||
Reset();
|
||||
|
||||
data.songs = {};
|
||||
data.songs.items = i.items;
|
||||
data.songs = i;
|
||||
data.albumTitle = i.title;
|
||||
},
|
||||
);
|
||||
|
@ -93,6 +92,8 @@ watch(
|
|||
itms => {
|
||||
Reset();
|
||||
|
||||
console.log(itms);
|
||||
|
||||
for (let i in itms) {
|
||||
data[i] = {};
|
||||
data[i].items = itms[i];
|
||||
|
@ -133,11 +134,17 @@ watch(
|
|||
<div class="grid">
|
||||
<template v-for="song in data.songs.items">
|
||||
<SongItem
|
||||
:author="song.uploaderName || ''"
|
||||
:author="song.uploaderName || song.subtitle"
|
||||
:title="song.title || song.name"
|
||||
:channel="song.uploaderUrl || ''"
|
||||
:channel="song.uploaderUrl || song.subId"
|
||||
:play="song.url || '/watch?v=' + song.id"
|
||||
:art="'url(' + (song.thumbnail || song.thumbnails[1].url) + ')'"
|
||||
:art="
|
||||
'url(' +
|
||||
(song.thumbnail ||
|
||||
song.thumbnails[1]?.url ||
|
||||
song.thumbnails[0]?.url) +
|
||||
')'
|
||||
"
|
||||
@open-song="
|
||||
$emit('play-urls', [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue