mirror of
https://codeberg.org/Hyperpipe/Hyperpipe
synced 2025-06-27 20:58:01 +02:00
Cleaning
This commit is contained in:
parent
c3c22fc455
commit
e3192f7438
4 changed files with 11 additions and 7 deletions
|
@ -231,7 +231,7 @@ export default {
|
|||
async getSong(e) {
|
||||
console.log(e);
|
||||
|
||||
const hash = e.split('?v=').pop(),
|
||||
const hash = new UrlSearchParams(e.substring(e.indexOf('?'))).get('v'),
|
||||
json = await this.getJson(
|
||||
'https://pipedapi.kavin.rocks/streams/' + hash,
|
||||
);
|
||||
|
@ -251,7 +251,7 @@ export default {
|
|||
async getAlbum(e) {
|
||||
console.log('Album: ', e);
|
||||
|
||||
const hash = e.split('?list=').pop(),
|
||||
const hash = new UrlSearchParams(e.substring(e.indexOf('?'))).get('list'),
|
||||
json = await this.getJson(
|
||||
'https://pipedapi.kavin.rocks/playlists/' + hash,
|
||||
);
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
<script setup>
|
||||
defineProps(['search', 'songItems', 'items']);
|
||||
defineProps([
|
||||
'search',
|
||||
'songItems',
|
||||
'items'
|
||||
]);
|
||||
defineEmits([
|
||||
'get-song',
|
||||
'get-album',
|
||||
|
@ -197,7 +201,6 @@ export default {
|
|||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.text-full {
|
||||
padding: 1rem;
|
||||
font-size: 1.5rem;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue