diff --git a/components/Preview/components/Torrents/constants.ts b/components/Preview/components/Torrents/constants.ts index 5966234..f91472a 100644 --- a/components/Preview/components/Torrents/constants.ts +++ b/components/Preview/components/Torrents/constants.ts @@ -25,11 +25,5 @@ export const providers = { key: 'tlk', queryFn: (options: Options) => queryFn({ ...options, key: 'tlk' }), sortable: true - }, - odc: { - label: '0day', - key: 'odc', - queryFn: (options: Options) => queryFn({ ...options, key: 'odc' }), - sortable: true } }; diff --git a/components/Preview/components/Torrents/index.tsx b/components/Preview/components/Torrents/index.tsx index 04bb099..b2dc5b4 100644 --- a/components/Preview/components/Torrents/index.tsx +++ b/components/Preview/components/Torrents/index.tsx @@ -52,7 +52,7 @@ const showTorrentsModal = create(({ onResolve, ...show }: Props) => { const isSeries = show.type === 'tv'; - // Toloka's and 0day's searches are plain word-AND matches with no IMDB filter. For movies, + // Toloka's search is a plain word-AND match with no IMDB filter. For movies, // scope the query by the show's year to keep, e.g., "Dune" (2021) away from "Dune: Part Two" (2024); // for series the TV sections do the disambiguation and a year suffix would hide other seasons. const scopedQuery = isSeries ? query : query && Number.isFinite(year) ? `${query} ${year}` : query; @@ -86,17 +86,8 @@ const showTorrentsModal = create(({ onResolve, ...show }: Props) => { type: show.type, show: tracked }); - const odc = useTorrents({ - query: scopedQuery, - queryFn: providers.odc.queryFn, - sort, - key: providers.odc.key, - imdbID: show.imdb_id!, - type: show.type, - show: tracked - }); - const queries = { yts, tpb, tlk, odc }; + const queries = { yts, tpb, tlk }; const { order, ...dndProps } = useProvidersOrder(); @@ -126,7 +117,7 @@ const showTorrentsModal = create(({ onResolve, ...show }: Props) => { @@ -135,7 +126,7 @@ const showTorrentsModal = create(({ onResolve, ...show }: Props) => { - + {tabs.map(({ provider, query }) => ( ))}