|
|
@ -57,9 +57,12 @@ const Discover: React.FC = () => {
|
|
|
|
`/api/v1/discover/tv?language=${locale}`
|
|
|
|
`/api/v1/discover/tv?language=${locale}`
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
const { data: movieUpcomingData, error: movieUpcomingError } = useSWR<
|
|
|
|
const {
|
|
|
|
MovieDiscoverResult
|
|
|
|
data: movieUpcomingData,
|
|
|
|
>(`/api/v1/discover/movies/upcoming?language=${locale}`);
|
|
|
|
error: movieUpcomingError,
|
|
|
|
|
|
|
|
} = useSWR<MovieDiscoverResult>(
|
|
|
|
|
|
|
|
`/api/v1/discover/movies/upcoming?language=${locale}`
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
const { data: trendingData, error: trendingError } = useSWR<MixedResult>(
|
|
|
|
const { data: trendingData, error: trendingError } = useSWR<MixedResult>(
|
|
|
|
`/api/v1/discover/trending?language=${locale}`
|
|
|
|
`/api/v1/discover/trending?language=${locale}`
|
|
|
@ -69,9 +72,12 @@ const Discover: React.FC = () => {
|
|
|
|
'/api/v1/media?filter=available&take=20&sort=modified'
|
|
|
|
'/api/v1/media?filter=available&take=20&sort=modified'
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
const { data: requests, error: requestError } = useSWR<
|
|
|
|
const {
|
|
|
|
RequestResultsResponse
|
|
|
|
data: requests,
|
|
|
|
>('/api/v1/request?filter=unavailable&take=10&sort=modified&skip=0');
|
|
|
|
error: requestError,
|
|
|
|
|
|
|
|
} = useSWR<RequestResultsResponse>(
|
|
|
|
|
|
|
|
'/api/v1/request?filter=unavailable&take=10&sort=modified&skip=0'
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<>
|
|
|
|