fix
Signed-off-by: Core <core@coredev.uk>
This commit is contained in:
parent
be09ccd377
commit
bf6c439927
2 changed files with 6 additions and 1 deletions
|
@ -2247,6 +2247,11 @@ const app = new Vue({
|
||||||
artistId = item.relationships.artists.data[0].id;
|
artistId = item.relationships.artists.data[0].id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (item.relationships.albums && item.relationships.albums.data.length > 0) {
|
||||||
|
if (item.relationships.albums.data[0].attributes.artistUrl) {
|
||||||
|
artistId = item.relationships.albums.data[0].attributes.artistUrl.split("/").pop();
|
||||||
|
}
|
||||||
|
}
|
||||||
if (artistId == "") {
|
if (artistId == "") {
|
||||||
const url = item.relationships.catalog.data[0].attributes.artistUrl;
|
const url = item.relationships.catalog.data[0].attributes.artistUrl;
|
||||||
artistId = url.substring(url.lastIndexOf("/") + 1);
|
artistId = url.substring(url.lastIndexOf("/") + 1);
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
<template v-if="searchType == 'catalog'">
|
<template v-if="searchType == 'catalog'">
|
||||||
<h3>{{app.getLz('term.topResult')}}</h3>
|
<h3>{{app.getLz('term.topResult')}}</h3>
|
||||||
<mediaitem-scroller-horizontal
|
<mediaitem-scroller-horizontal
|
||||||
:items="search.results[search.results.meta.results.order[0]]['data']"></mediaitem-scroller-horizontal>
|
:items="search?.results[search?.results?.meta?.results?.order[0]]?.data"></mediaitem-scroller-horizontal>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col" v-if="search.results.song">
|
<div class="col" v-if="search.results.song">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue