[READ-ONLY] Mirror of https://github.com/flo-bit/skywatched. review movies and tv shows, based on at proto skywatched.app
0

Configure Feed

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

cast of scond movie

gree45 (Jan 28, 2025, 2:20 PM +0100) 35be9b3a a8dad0bf

+7 -4
+6 -3
src/routes/game/[kind]/[id]/[kind2]/[id2]/[counter]/+page.server.ts
··· 15 15 const id = parseInt(event.params.id.split('-')[0]); 16 16 const id2 = parseInt(event.params.id2.split('-')[0]); 17 17 const kind = event.params.kind; 18 - const kind2=event.params.kind2; 18 + const kind2= event.params.kind2; 19 19 const couter=0; 20 20 21 21 if (kind !== 'movie' && kind !== 'tv') { ··· 40 40 }); 41 41 42 42 const castPromise = getCast(id, kind); 43 + const castPromise2 = getCast(id2, kind2); 43 44 44 - const [result,result2, trailer, recommendations, watchProviders, ratings, cast] = await Promise.all([ 45 + const [result,result2, trailer, recommendations, watchProviders, ratings, cast,cast2] = await Promise.all([ 45 46 resultPromise, 46 47 resultPromise2, 47 48 trailerPromise, 48 49 recommendationsPromise, 49 50 watchProvidersPromise, 50 51 ratingsPromise, 51 - castPromise 52 + castPromise, 53 + castPromise2 52 54 ]); 53 55 54 56 if (!result || result.success === false) { ··· 80 82 watchProviders, 81 83 ratings, 82 84 cast, 85 + cast2, 83 86 couter 84 87 }; 85 88 }
+1 -1
src/routes/game/[kind]/[id]/[kind2]/[id2]/[counter]/+page.svelte
··· 202 202 {/each} 203 203 </div> 204 204 <div class={'flex gap-x-6 overflow-x-auto'}> 205 - {#each data.cast as castMember} 205 + {#each data.cast2 as castMember} 206 206 <a 207 207 href={`/cast/${castMember.id}-${nameToId(castMember.name)}`} 208 208 class="flex flex-col items-center gap-1"