parsing blog successfully and requesting youtube
This commit is contained in:
@@ -2,13 +2,22 @@
|
||||
import type { PageServerLoad } from './$types';
|
||||
import { getLatestPlaylistSong, getLatestWatchedSeries } from '#lib/server/jellyfin';
|
||||
import { getLatestBook } from '#lib/server/komga';
|
||||
import { JELLYFIN_PLAYLIST_ID, JELLYFIN_LIBRARY_ID, KOMGA_LIBRARY_ID } from '$app/env/private';
|
||||
import { fetchBlogArticles, getChannelInfo } from '#lib/server/content';
|
||||
import {
|
||||
JELLYFIN_PLAYLIST_ID,
|
||||
JELLYFIN_LIBRARY_ID,
|
||||
KOMGA_LIBRARY_ID,
|
||||
BLOG_URL,
|
||||
CHANNEL_ID
|
||||
} from '$app/env/private';
|
||||
|
||||
export const load = () => {
|
||||
const latestSong = getLatestPlaylistSong(globalThis.fetch, JELLYFIN_PLAYLIST_ID);
|
||||
console.log(JELLYFIN_LIBRARY_ID);
|
||||
const latestSeries = getLatestWatchedSeries(globalThis.fetch, JELLYFIN_LIBRARY_ID);
|
||||
const latestBook = getLatestBook(globalThis.fetch, KOMGA_LIBRARY_ID);
|
||||
const blogArticles = fetchBlogArticles(BLOG_URL);
|
||||
const info = getChannelInfo(CHANNEL_ID);
|
||||
|
||||
latestSong.catch(() => {});
|
||||
latestSeries.catch(() => {});
|
||||
|
||||
Reference in New Issue
Block a user