Skip to content

Commit de47cb7

Browse files
committed
More WIP on Album view.
1 parent de17c40 commit de47cb7

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/routes.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@
297297
'info' => $year,
298298
'attr' => $attr,
299299
'image' => $artThumb(A::get($attr, 'artwork')),
300-
'link' => 'applemusic/song/' . $id,
300+
'link' => Panel::url('applemusic/song/' . $id),
301301
'kind' => 'songs',
302302
];
303303
};
@@ -317,9 +317,8 @@
317317
'info' => $year,
318318
'attr' => $attr,
319319
'image' => $artThumb(A::get($attr, 'artwork')),
320-
// add a dedicated album-details route later
321-
// 'link' => 'applemusic/album/' . $id,
322-
'link' => A::get($attr, 'url', null), // apple music canonical album url
320+
'link' => Panel::url('applemusic/album/' . $id),
321+
//'link' => A::get($attr, 'url', null), // apple music canonical album url
323322
'kind' => 'albums',
324323
];
325324
};

src/components/MusicKitAlbum.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<k-panel-inside>
33
<k-view>
44
<k-header class="k-site-view-header">
5-
{{ song?.name || 'Song' }}
5+
{{ song?.name || 'Album' }}
66

77
<template #buttons>
88
<k-button v-if="album?.url" icon="headphones" :link="album.url" target="_blank" theme="blue-icon" variant="filled">Listen in Apple Music</k-button>

src/components/MusicKitHistory.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ export default {
227227
228228
// use internal route for album results
229229
if (pathSegment === 'album' && r.id) {
230-
base.link = `applemusic/albums/${encodeURIComponent(r.id)}`;
230+
base.link = `applemusic/album/${encodeURIComponent(r.id)}`;
231231
}
232232
233233
// add options only if we have a valid apple music url

0 commit comments

Comments
 (0)