parsing blog successfully and requesting youtube

This commit is contained in:
2026-11-04 13:46:19 +00:00
parent 0e65b8004e
commit 1ce397b734
132 changed files with 18999 additions and 52 deletions

View File

@@ -31,7 +31,13 @@ export function set_env(env) {
dynamic_private_env.KOMGA_API_KEY = KOMGA_API_KEY;
const KOMGA_LIBRARY_ID = validate(variables, env.KOMGA_LIBRARY_ID, "KOMGA_LIBRARY_ID", issues);
dynamic_private_env.KOMGA_LIBRARY_ID = KOMGA_LIBRARY_ID;
const BLOG_URL = validate(variables, env.BLOG_URL, "BLOG_URL", issues);
dynamic_private_env.BLOG_URL = BLOG_URL;
const GOOGLE_API_KEY = validate(variables, env.GOOGLE_API_KEY, "GOOGLE_API_KEY", issues);
dynamic_private_env.GOOGLE_API_KEY = GOOGLE_API_KEY;
const CHANNEL_ID = validate(variables, env.CHANNEL_ID, "CHANNEL_ID", issues);
dynamic_private_env.CHANNEL_ID = CHANNEL_ID;
handle_issues(issues);
}
set_env({JELLYFIN_URL:"https://watch.voidarc.co.uk/",JELLYFIN_API_KEY:"2727181a933049dcbc8d63cf0bcc15f3",JELLYFIN_PLAYLIST_ID:"e3088b1ab54766ad3668bc71a574a2f7",JELLYFIN_USER_ID:"5824596713e44e8c949f529e1a081393",JELLYFIN_LIBRARY_ID:"a656b907eb3a73532e40e44b968d0225",KOMGA_URL:"https://manga.voidarc.co.uk",KOMGA_API_KEY:"29f80f81450346199c40802b6d099002",KOMGA_LIBRARY_ID:"0N4TC3WZ89BFM"});
set_env({JELLYFIN_URL:"https://watch.voidarc.co.uk/",JELLYFIN_API_KEY:"2727181a933049dcbc8d63cf0bcc15f3",JELLYFIN_PLAYLIST_ID:"e3088b1ab54766ad3668bc71a574a2f7",JELLYFIN_USER_ID:"5824596713e44e8c949f529e1a081393",JELLYFIN_LIBRARY_ID:"a656b907eb3a73532e40e44b968d0225",KOMGA_URL:"https://manga.voidarc.co.uk",KOMGA_API_KEY:"29f80f81450346199c40802b6d099002",KOMGA_LIBRARY_ID:"0N4TC3WZ89BFM",BLOG_URL:"https://blog.voidarc.co.uk/index.xml",GOOGLE_API_KEY:"AIzaSyDH4fByDbbC8jFkW52MF8aVU2inkaCBJf0",CHANNEL_ID:"UCGB525XyCxL7zfMKKI4aN1A"});

View File

@@ -8,3 +8,6 @@ export const JELLYFIN_LIBRARY_ID = env.JELLYFIN_LIBRARY_ID;
export const KOMGA_URL = env.KOMGA_URL;
export const KOMGA_API_KEY = env.KOMGA_API_KEY;
export const KOMGA_LIBRARY_ID = env.KOMGA_LIBRARY_ID;
export const BLOG_URL = env.BLOG_URL;
export const GOOGLE_API_KEY = env.GOOGLE_API_KEY;
export const CHANNEL_ID = env.CHANNEL_ID;

View File

@@ -3,5 +3,5 @@ globalThis.__sveltekit_dev = {
env: {
// empty
},
version: "1793794104752"
version: "1793799746966"
};

View File

@@ -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(() => {});