deer social fork for personal usage. but you might see a use idk. github mirror

Merge branch 'streamplace'

aylac.top 2a8960dc 06cf0d3c

verified
Changed files
+11
src
lib
strings
+11
src/lib/strings/embed-player.ts
··· 25 25 'giphy', 26 26 'tenor', 27 27 'flickr', 28 + 'streamplace', 28 29 ] as const 29 30 30 31 export type EmbedPlayerSource = (typeof embedPlayerSources)[number] ··· 45 46 | 'giphy_gif' 46 47 | 'tenor_gif' 47 48 | 'flickr_album' 49 + | 'streamplace_stream' 48 50 49 51 export const externalEmbedLabels: Record<EmbedPlayerSource, string> = { 50 52 youtube: 'YouTube', ··· 57 59 appleMusic: 'Apple Music', 58 60 soundcloud: 'SoundCloud', 59 61 flickr: 'Flickr', 62 + streamplace: 'Streamplace', 60 63 } 61 64 62 65 export interface EmbedPlayerParams { ··· 449 452 default: 450 453 // we don't know what this is so we can't embed it 451 454 return undefined 455 + } 456 + } 457 + 458 + if (urlp.hostname === 'stream.place') { 459 + return { 460 + type: 'streamplace_stream', 461 + source: 'streamplace', 462 + playerUri: `https://stream.place/embed${urlp.pathname}`, 452 463 } 453 464 } 454 465 }