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

Configure Feed

Select the types of activity you want to include in your feed.

better streamplace integration

ayla 386662d9 cba8461d

+15 -5
+15 -5
src/lib/strings/embed-player.ts
··· 46 46 | 'giphy_gif' 47 47 | 'tenor_gif' 48 48 | 'flickr_album' 49 - | 'streamplace_stream' 49 + | 'streamplace_video' 50 50 51 51 export const externalEmbedLabels: Record<EmbedPlayerSource, string> = { 52 52 youtube: 'YouTube', ··· 456 456 } 457 457 458 458 if (urlp.hostname === 'stream.place') { 459 - return { 460 - type: 'streamplace_stream', 461 - source: 'streamplace', 462 - playerUri: `https://stream.place/embed${urlp.pathname}`, 459 + const [_, page] = urlp.pathname.split('/') 460 + 461 + if ( 462 + (page === 'Stream' && (urlp.searchParams.get('user') as string)) || 463 + page.includes('.') 464 + ) { 465 + return { 466 + type: 'streamplace_video', 467 + source: 'streamplace', 468 + playerUri: `https://stream.place/embed${urlp.pathname}`, 469 + } 463 470 } 471 + 472 + return undefined 464 473 } 465 474 } 466 475 ··· 479 488 case 'youtube_video': 480 489 case 'twitch_video': 481 490 case 'vimeo_video': 491 + case 'streamplace_video': 482 492 return {aspectRatio: 16 / 9} 483 493 case 'youtube_short': 484 494 if (SCREEN_HEIGHT < 600) {