diff --git a/src/lib/components/AvatarComponent.svelte b/src/lib/components/AvatarComponent.svelte index 9a4aeea..d5250d8 100644 --- a/src/lib/components/AvatarComponent.svelte +++ b/src/lib/components/AvatarComponent.svelte @@ -10,8 +10,8 @@ diff --git a/src/lib/server/db.ts b/src/lib/server/db.ts index 5fb7ed7..e7935fb 100644 --- a/src/lib/server/db.ts +++ b/src/lib/server/db.ts @@ -32,8 +32,15 @@ type PostTagRow = { url: string; }; -type SongRow = SongInfo & { +type SongRow = { post_url: string; + postedUrl: string; + overviewUrl?: string; + type: 'album' | 'song'; + youtubeUrl?: string; + title?: string; + artistName?: string; + thumbnailUrl?: string; }; type Migration = { @@ -468,7 +475,16 @@ function getSongData(postIdsParams: String, postIds: string[]): Promise = tagRows.reduce( (result: Map, item) => { - result.set(item.post_url, [...(result.get(item.post_url) || []), item]); + const info = { + pageUrl: item.overviewUrl, + youtubeUrl: item.youtubeUrl, + type: item.type, + title: item.title, + artistName: item.artistName, + thumbnailUrl: item.thumbnailUrl, + postedUrl: item.postedUrl + } as SongInfo; + result.set(item.post_url, [...(result.get(item.post_url) || []), info]); return result; }, new Map() diff --git a/src/lib/server/timeline.ts b/src/lib/server/timeline.ts index 9b49f93..5a3f012 100644 --- a/src/lib/server/timeline.ts +++ b/src/lib/server/timeline.ts @@ -176,6 +176,8 @@ export class TimelineReader { return; } log.debug('Found YT URL', youtubeUrl, found_urls, found_urls.length); + } else { + log.debug('Found URLs and/or tags:', found_urls, found_tags); } // TODO: Change URL detection above to use this regex. diff --git a/static/style.css b/static/style.css index 11288af..526ce1b 100644 --- a/static/style.css +++ b/static/style.css @@ -21,6 +21,7 @@ body { --color-link: var(--color-mauve); --color-link-visited: var(--color-lavender); --color-bg: var(--color-grey-light); + --color-bg-translucent: hsla(42, 7%, 72%, 0.5); --color-button: var(--color-red-light); --color-button-shadow: var(--color-red-desat-dark); --color-button-hover: var(--color-red); @@ -48,6 +49,7 @@ a:visited { --color-link: var(--color-mauve); --color-link-visited: var(--color-lavender); --color-bg: var(--color-blue); + --color-bg-translucent: hsla(259, 82%, 26%, 0.5); --color-button: var(--color-red-light); --color-button-shadow: var(--color-red-desat); --color-button-hover: var(--color-red);