Cleanup lib exports (#50)

This commit is contained in:
Ollie Taylor
2023-07-29 17:57:14 +01:00
committed by GitHub
parent bba24215eb
commit 528457fe59
59 changed files with 697 additions and 853 deletions
+9 -7
View File
@@ -1,14 +1,16 @@
import { audio } from 'svelte-podcast';
audio.load('/episode-audio.mp3');
audio.src.load(
// Audio file
'/episode-audio.mp3',
audio.load(
'https://media.transistor.fm/27a058c9/27b595e2.mp3',
// Your custom metadata
{
title: 'SvelteKit-superforms with Andreas Söderlund',
artwork:
'https://images.transistor.fm/file/transistor/images/show/12899/medium_1597678946-artwork.jpg',
guest_name: 'Andreas Söderlund',
title: 'A deep dive into Svelte Podcast',
artwork: '/artwork.png',
guest_name: 'OllieJT',
},
// Autoplay once loaded
false,
);
+4 -1
View File
@@ -1,3 +1,6 @@
import { audio } from 'svelte-podcast';
audio.load('/episode-audio.mp3');
audio.src.load('/episode-audio.mp3', {
title: 'Episode Title',
artwork: '/artwork.png',
});
+4 -1
View File
@@ -1,3 +1,6 @@
import { audio } from 'svelte-podcast';
audio.load('https://media.transistor.fm/27a058c9/27b595e2.mp3');
audio.src.load('https://media.transistor.fm/27a058c9/27b595e2.mp3', {
title: 'Episode Title',
artwork: '/artwork.png',
});
@@ -1,10 +1,9 @@
// include this in your /src/app.d.ts file
declare module 'svelte-podcast' {
interface EpisodeDetails {
interface AudioMetadata {
title: string;
artwork: string;
guest_name: string;
artwork: string | null;
}
}