feat: toloka

This commit is contained in:
ner committed 2024-10-25 17:29:26 +03:00
1 parent f3b90f30c3
commit be9a128793
11 files changed
+644 -58

No files matched your search

+14
View File
@@ -6,6 +6,7 @@ import { createUniqueRandomGenerator } from '@/lib/utils';
import mapMoviesSeriesResponseToShows, { mapMovieSeriesToShow } from './dto/Show'; import mapMoviesSeriesResponseToShows, { mapMovieSeriesToShow } from './dto/Show';
import pirateBay from './parsers/pirate-bay'; import pirateBay from './parsers/pirate-bay';
import toloka from './parsers/toloka';
import yts from './parsers/yts'; import yts from './parsers/yts';
import http from './Http'; import http from './Http';
import { Sort } from './parsers'; import { Sort } from './parsers';
@@ -275,3 +276,16 @@ export const TPBTorrents = async ({ query, sort }: { imdbID: string; query: stri
return []; return [];
} }
}; };
export const TLKTorrents = async ({ query, sort }: { imdbID: string; query: string; sort: Sort }) => {
try {
return toloka.search({
query,
sort
});
} catch (error) {
return [];
}
};
export const fetchTLKMagnet = async (url: string) => toloka.magnet(url);
+78
View File
@@ -0,0 +1,78 @@
import axios, { AxiosInstance } from 'axios';
import { parse } from 'node-html-parser';
import parseTorrent from 'parse-torrent';
import torrentTitle from 'parse-torrent-title';
import { Sort } from './index';
export class Toloka {
private client: AxiosInstance;
private sort = {
[Sort.size]: 7,
[Sort.seeds]: 10
};
private magnets: Record<string, string> = {};
constructor(private host: string = process.env.TOLOKA_HOST || 'https://toloka.to') {
this.host = host;
this.client = axios.create({
baseURL: this.host,
headers: { Cookie: 'toloka_sid=0504c23f6b4fc00d39530cfa78f8d767; toloka_ssl=1' }
});
}
async search({ query, sort = Sort.size }: { query: string; sort?: Sort }): Promise<Torrent[]> {
return this.client.get(`/tracker.php?o=${this.sort[sort]}&nm=${query}`).then(({ data }) => {
const html = parse(data);
const rows = html?.querySelectorAll('.prow1, .prow2');
return rows?.map((row) => {
const originalTitle = row.querySelector('td:nth-child(3)')?.innerText;
const size = row.querySelector('td:nth-child(7)')?.innerText;
const seeders = row.querySelector('td:nth-child(10)')?.innerText;
const download = row.querySelector('td:nth-child(6) a')?.getAttribute('href');
const { year, source, codec, container, title, season, episode, resolution } = torrentTitle.parse(
originalTitle || ''
);
return {
year,
source,
codec,
container,
originalTitle,
title: `${title}${season && episode ? ` [S${season}:E${episode}]` : ''}`,
id: originalTitle,
size,
seeders: parseInt(seeders || '0'),
quality: resolution,
magnet: '',
download
};
}) as Torrent[];
});
}
async magnet(url: string): Promise<string> {
if (this.magnets[url]) return this.magnets[url];
const { data } = await this.client.get(`/${url}`, {
responseType: 'arraybuffer'
});
const torrent = await parseTorrent(data);
const magnet = `magnet:?xt=urn:btih:${torrent.infoHash}&dn=${encodeURIComponent(
torrent.name as string
)}&tr=${torrent.announce?.join('&tr=')}`;
this.magnets[url] = magnet;
return magnet;
}
}
const parser = new Toloka();
export default parser;
@@ -0,0 +1,89 @@
import { FC } from 'react';
import { Cast, ListVideo, Magnet, Play } from 'lucide-react';
import { Quality } from '@/api/parsers/yts/models';
import { Button } from '@/components/ui/button';
import ButtonsGroup from '@/components/ui/buttons-group';
import { cn } from '@/lib/utils';
import { providers } from '../../../../constants';
import { useCastMagnet, usePrefix } from '../../../../hooks/useMagnetHosts';
import showPlayer from '../../../Player';
import useMagnet from './useMagnet';
interface Props {
torrent: Torrent;
backdrop: string;
title: string;
provider: string;
}
const Actions: FC<Props> = ({ torrent, backdrop, title, provider }) => {
const prefix = usePrefix();
const cast = useCastMagnet();
const { mutateAsync, isPending } = useMagnet();
const supportedForStream = Boolean(
(provider === providers.yts.key &&
torrent.seeders &&
[Quality.The1080P, Quality.The720P].includes(torrent.quality as Quality)) ||
torrent.container?.includes('mp4')
);
const supportedForCast = prefix && !prefix.includes('{host}');
const prefetchMagnet = (handler: (magnet: string) => void) => () => {
if (!torrent.download) return handler(torrent.magnet);
return mutateAsync(torrent.download).then((magnet) => handler(magnet));
};
return (
<ButtonsGroup className='ml-auto w-fit grow-0'>
{supportedForStream && (
<Button
disabled={isPending}
variant='destructive'
className={cn('flex-grow-0 px-3 bg-red-600')}
onClick={prefetchMagnet((magnet) => showPlayer({ magnet, backdrop, title }))}
title='Play'
>
<Play size={15} />
</Button>
)}
<Button
disabled={isPending}
variant='outline'
className='relative grow-0 px-3'
title='Play using your native video player'
onClick={prefetchMagnet((magnet) => {
window.open(`${process.env.NEXT_PUBLIC_TORRENT_PROXY}/stream?m3u&link=${encodeURIComponent(magnet)}`);
})}
>
<ListVideo size={20} />
</Button>
<Button
disabled={isPending}
className='relative grow-0 px-3'
variant='outline'
onClick={prefetchMagnet((magnet) => window.open(magnet))}
title='Download magnet'
>
<Magnet size={20} />
</Button>
{supportedForCast && (
<Button
disabled={isPending}
className='grow-0 px-3'
variant='outline'
onClick={prefetchMagnet((magnet) => cast(magnet))}
>
<Cast size={20} />
</Button>
)}
</ButtonsGroup>
);
};
export default Actions;
@@ -0,0 +1,9 @@
import { useMutation } from '@tanstack/react-query';
import { fetchTLKMagnet } from '@/api';
const useMagnet = () => {
return useMutation({ mutationFn: fetchTLKMagnet });
};
export default useMagnet;
@@ -1,19 +1,13 @@
import { FC, Fragment } from 'react'; import { FC, Fragment } from 'react';
import { Cast, ListVideo, Magnet, Play } from 'lucide-react';
import { Sort } from '@/api/parsers'; import { Sort } from '@/api/parsers';
import { Quality } from '@/api/parsers/yts/models';
import { Button } from '@/components/ui/button';
import ButtonsGroup from '@/components/ui/buttons-group';
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '@/components/ui/table'; import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '@/components/ui/table';
import { cn } from '@/lib/utils';
import { providers } from '../../constants';
import { useCastMagnet, usePrefix } from '../../hooks/useMagnetHosts';
import showHostManagerModal from '../HostManager'; import showHostManagerModal from '../HostManager';
import showPlayer from '../Player';
import TableHeadSortable from '../TableHeadSortable'; import TableHeadSortable from '../TableHeadSortable';
import Actions from './components/Actions';
interface Props { interface Props {
title: string; title: string;
backdrop: string; backdrop: string;
@@ -26,9 +20,6 @@ interface Props {
} }
const TorrentsTable: FC<Props> = ({ title, torrents, backdrop, sort, sortable, provider, year, onChangeSort }) => { const TorrentsTable: FC<Props> = ({ title, torrents, backdrop, sort, sortable, provider, year, onChangeSort }) => {
const prefix = usePrefix();
const cast = useCastMagnet();
const colSpan = 5; const colSpan = 5;
return ( return (
@@ -54,15 +45,6 @@ const TorrentsTable: FC<Props> = ({ title, torrents, backdrop, sort, sortable, p
<TableBody> <TableBody>
{torrents?.map((torrent) => { {torrents?.map((torrent) => {
const supportedForStream = Boolean(
(provider === providers.yts.key &&
torrent.seeders &&
[Quality.The1080P, Quality.The720P].includes(torrent.quality as Quality)) ||
torrent.container?.includes('mp4')
);
const supportedForCast = prefix && !prefix.includes('{host}');
const yearView = torrent.year && year.toString() != torrent.year && `[${torrent.year}]`; const yearView = torrent.year && year.toString() != torrent.year && `[${torrent.year}]`;
return ( return (
@@ -87,40 +69,7 @@ const TorrentsTable: FC<Props> = ({ title, torrents, backdrop, sort, sortable, p
</TableCell> </TableCell>
<TableCell className='truncate p-2'>{torrent.seeders}</TableCell> <TableCell className='truncate p-2'>{torrent.seeders}</TableCell>
<TableCell className='p-1 pr-2 text-center'> <TableCell className='p-1 pr-2 text-center'>
<ButtonsGroup className='ml-auto w-fit grow-0'> <Actions title={title} backdrop={backdrop} torrent={torrent} provider={provider} />
{supportedForStream && (
<Button
variant='destructive'
className={cn('flex-grow-0 px-3 bg-red-600')}
onClick={() => showPlayer({ magnet: torrent.magnet, backdrop, title })}
title='Play'
>
<Play size={15} />
</Button>
)}
<Button
variant='outline'
className='relative grow-0 px-3'
title='Play using your native video player'
>
<a
className='absolute left-0 top-0 size-full'
href={`${process.env.NEXT_PUBLIC_TORRENT_PROXY}/stream?m3u&link=${encodeURIComponent(
torrent.magnet
)}`}
/>
<ListVideo size={20} />
</Button>
<Button className='relative grow-0 px-3' variant='outline' title='Download magnet'>
<a className='absolute left-0 top-0 size-full' href={torrent.magnet} />
<Magnet size={20} />
</Button>
{supportedForCast && (
<Button className='grow-0 px-3' variant='outline' onClick={() => cast(torrent.magnet!)}>
<Cast size={20} />
</Button>
)}
</ButtonsGroup>
</TableCell> </TableCell>
</TableRow> </TableRow>
</Fragment> </Fragment>
@@ -1,6 +1,7 @@
import { TPBTorrents, YTSTorrents } from '@/api'; import { TLKTorrents, TPBTorrents, YTSTorrents } from '@/api';
export const providers = { export const providers = {
yts: { label: 'YTS', key: 'yts', queryFn: YTSTorrents, sortable: false }, yts: { label: 'YTS', key: 'yts', queryFn: YTSTorrents, sortable: false },
tpb: { label: 'The Pirate Bay', key: 'tpb', queryFn: TPBTorrents, sortable: true } tpb: { label: 'The Pirate Bay', key: 'tpb', queryFn: TPBTorrents, sortable: true },
tlk: { label: 'Toloka', key: 'tlk', queryFn: TLKTorrents, sortable: true }
}; };
@@ -34,6 +34,13 @@ const showTorrentsModal = create(({ title, year, imdbID, backdrop, onResolve }:
key: providers.tpb.key, key: providers.tpb.key,
imdbID imdbID
}); });
const tlk = useTorrents({
query: withYear ? `${title} ${year}` : title,
queryFn: providers.tlk.queryFn,
sort,
key: providers.tlk.key,
imdbID
});
const tabs = [ const tabs = [
{ {
@@ -43,6 +50,10 @@ const showTorrentsModal = create(({ title, year, imdbID, backdrop, onResolve }:
{ {
query: tpb, query: tpb,
provider: providers.tpb provider: providers.tpb
},
{
query: tlk,
provider: providers.tlk
} }
]; ];
@@ -65,7 +76,7 @@ const showTorrentsModal = create(({ title, year, imdbID, backdrop, onResolve }:
</Button> </Button>
</div> </div>
<Tabs value={providerKey} className='w-full rounded-none'> <Tabs value={providerKey} className='w-full rounded-none'>
<TabsList className='grid w-full grid-cols-2'> <TabsList className='grid w-full grid-cols-3'>
{tabs.map(({ provider, query }) => ( {tabs.map(({ provider, query }) => (
<TabsTrigger <TabsTrigger
disabled={checkIsEmpty(query)} disabled={checkIsEmpty(query)}
+432
View File
@@ -25,6 +25,7 @@
"media-icons": "^1.1.5", "media-icons": "^1.1.5",
"next": "^14.2.7", "next": "^14.2.7",
"next-pwa": "^5.6.0", "next-pwa": "^5.6.0",
"parse-torrent": "^11.0.17",
"react": "^18.3.1", "react": "^18.3.1",
"react-dom": "^18.3.1", "react-dom": "^18.3.1",
"react-modal-promise": "^1.0.2", "react-modal-promise": "^1.0.2",
@@ -35,6 +36,7 @@
"@tanstack/react-query-devtools": "^5.59.15", "@tanstack/react-query-devtools": "^5.59.15",
"@types/js-cookie": "^3.0.3", "@types/js-cookie": "^3.0.3",
"@types/node": "20.4.4", "@types/node": "20.4.4",
"@types/parse-torrent": "^5.8.7",
"@types/react": "18.2.15", "@types/react": "18.2.15",
"@types/react-dom": "18.2.7", "@types/react-dom": "18.2.7",
"autoprefixer": "^10.4.14", "autoprefixer": "^10.4.14",
@@ -4285,6 +4287,18 @@
"react": "^18 || ^19" "react": "^18 || ^19"
} }
}, },
"node_modules/@thaunknown/thirty-two": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/@thaunknown/thirty-two/-/thirty-two-1.0.5.tgz",
"integrity": "sha512-Q53KyCXweV1CS62EfqtPDqfpksn5keQ59PGqzzkK+g8Vif1jB4inoBCcs/BUSdsqddhE3G+2Fn+4RX3S6RqT0A==",
"license": "MIT",
"dependencies": {
"uint8-util": "^2.2.5"
},
"engines": {
"node": ">=0.2.6"
}
},
"node_modules/@types/estree": { "node_modules/@types/estree": {
"version": "1.0.6", "version": "1.0.6",
"resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz",
@@ -4320,6 +4334,15 @@
"integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==",
"dev": true "dev": true
}, },
"node_modules/@types/magnet-uri": {
"version": "5.1.5",
"resolved": "https://registry.npmjs.org/@types/magnet-uri/-/magnet-uri-5.1.5.tgz",
"integrity": "sha512-SbBjlb1KGe38VfjRR+mwqztJd/4skhdKkRbIzPDhTy7IAeEAPZWIVSEkZw00Qr4ZZOGR3/ATJ20WWPBfrKHGdA==",
"dev": true,
"dependencies": {
"@types/node": "*"
}
},
"node_modules/@types/minimatch": { "node_modules/@types/minimatch": {
"version": "5.1.2", "version": "5.1.2",
"resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-5.1.2.tgz", "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-5.1.2.tgz",
@@ -4331,6 +4354,26 @@
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.4.4.tgz", "resolved": "https://registry.npmjs.org/@types/node/-/node-20.4.4.tgz",
"integrity": "sha512-CukZhumInROvLq3+b5gLev+vgpsIqC2D0deQr/yS1WnxvmYLlJXZpaQrQiseMY+6xusl79E04UjWoqyr+t1/Ew==" "integrity": "sha512-CukZhumInROvLq3+b5gLev+vgpsIqC2D0deQr/yS1WnxvmYLlJXZpaQrQiseMY+6xusl79E04UjWoqyr+t1/Ew=="
}, },
"node_modules/@types/parse-torrent": {
"version": "5.8.7",
"resolved": "https://registry.npmjs.org/@types/parse-torrent/-/parse-torrent-5.8.7.tgz",
"integrity": "sha512-vZtYe450hO+KL7B5fejM8CHWg1LPZKeVXlolphPsWf6n4H0ZUlI6ICbqHoaFmH7JQmU2yRbGgyvqqizdFuGPFQ==",
"dev": true,
"dependencies": {
"@types/magnet-uri": "*",
"@types/node": "*",
"@types/parse-torrent-file": "*"
}
},
"node_modules/@types/parse-torrent-file": {
"version": "4.0.6",
"resolved": "https://registry.npmjs.org/@types/parse-torrent-file/-/parse-torrent-file-4.0.6.tgz",
"integrity": "sha512-SxqVth0Iv0WuEkqWS5MaY4S4Tlyi+QHkElQREvsUPw2xHcPgKyQ2dkJRRv5vAxmLzH+tnMdOj1Nws/wsenbzUw==",
"dev": true,
"dependencies": {
"@types/node": "*"
}
},
"node_modules/@types/prop-types": { "node_modules/@types/prop-types": {
"version": "15.7.5", "version": "15.7.5",
"resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.5.tgz", "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.5.tgz",
@@ -4667,6 +4710,18 @@
"license": "Apache-2.0", "license": "Apache-2.0",
"peer": true "peer": true
}, },
"node_modules/abort-controller": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz",
"integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==",
"license": "MIT",
"dependencies": {
"event-target-shim": "^5.0.0"
},
"engines": {
"node": ">=6.5"
}
},
"node_modules/acorn": { "node_modules/acorn": {
"version": "8.13.0", "version": "8.13.0",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.13.0.tgz", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.13.0.tgz",
@@ -5126,6 +5181,36 @@
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
"integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="
}, },
"node_modules/base64-arraybuffer": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-1.0.2.tgz",
"integrity": "sha512-I3yl4r9QB5ZRY3XuJVEPfc2XhZO6YweFPI+UovAzn+8/hb3oJ6lnysaFcjVpkCPfVWFUDvoZ8kmVDP7WyRtYtQ==",
"license": "MIT",
"engines": {
"node": ">= 0.6.0"
}
},
"node_modules/bencode": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/bencode/-/bencode-4.0.0.tgz",
"integrity": "sha512-AERXw18df0pF3ziGOCyUjqKZBVNH8HV3lBxnx5w0qtgMIk4a1wb9BkcCQbkp9Zstfrn/dzRwl7MmUHHocX3sRQ==",
"license": "MIT",
"dependencies": {
"uint8-util": "^2.2.2"
},
"engines": {
"node": ">=12.20.0"
}
},
"node_modules/bep53-range": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/bep53-range/-/bep53-range-2.0.0.tgz",
"integrity": "sha512-sMm2sV5PRs0YOVk0LTKtjuIprVzxgTQUsrGX/7Yph2Rm4FO2Fqqtq7hNjsOB5xezM4v4+5rljCgK++UeQJZguA==",
"license": "MIT",
"engines": {
"node": ">=12.20.0"
}
},
"node_modules/big-integer": { "node_modules/big-integer": {
"version": "1.6.51", "version": "1.6.51",
"resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.51.tgz", "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.51.tgz",
@@ -5509,6 +5594,16 @@
"postcss-media-query-parser": "^0.2.3" "postcss-media-query-parser": "^0.2.3"
} }
}, },
"node_modules/cross-fetch-ponyfill": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/cross-fetch-ponyfill/-/cross-fetch-ponyfill-1.0.3.tgz",
"integrity": "sha512-uOBkDhUAGAbx/FEzNKkOfx3w57H8xReBBXoZvUnOKTI0FW0Xvrj3GrYv2iZXUqlffC1LMGfQzhmBM/ke+6eTDA==",
"license": "MIT",
"dependencies": {
"abort-controller": "^3.0.0",
"node-fetch": "^3.3.0"
}
},
"node_modules/cross-spawn": { "node_modules/cross-spawn": {
"version": "7.0.3", "version": "7.0.3",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
@@ -5583,6 +5678,15 @@
"integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==", "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==",
"dev": true "dev": true
}, },
"node_modules/data-uri-to-buffer": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz",
"integrity": "sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==",
"license": "MIT",
"engines": {
"node": ">= 12"
}
},
"node_modules/debounce": { "node_modules/debounce": {
"version": "1.2.1", "version": "1.2.1",
"resolved": "https://registry.npmjs.org/debounce/-/debounce-1.2.1.tgz", "resolved": "https://registry.npmjs.org/debounce/-/debounce-1.2.1.tgz",
@@ -6590,6 +6694,15 @@
"node": ">=0.10.0" "node": ">=0.10.0"
} }
}, },
"node_modules/event-target-shim": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz",
"integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==",
"license": "MIT",
"engines": {
"node": ">=6"
}
},
"node_modules/events": { "node_modules/events": {
"version": "3.3.0", "version": "3.3.0",
"resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz",
@@ -6679,6 +6792,29 @@
"reusify": "^1.0.4" "reusify": "^1.0.4"
} }
}, },
"node_modules/fetch-blob": {
"version": "3.2.0",
"resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz",
"integrity": "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/jimmywarting"
},
{
"type": "paypal",
"url": "https://paypal.me/jimmywarting"
}
],
"license": "MIT",
"dependencies": {
"node-domexception": "^1.0.0",
"web-streams-polyfill": "^3.0.3"
},
"engines": {
"node": "^12.20 || >= 14.13"
}
},
"node_modules/file-entry-cache": { "node_modules/file-entry-cache": {
"version": "6.0.1", "version": "6.0.1",
"resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz",
@@ -6852,6 +6988,18 @@
"node": ">= 6" "node": ">= 6"
} }
}, },
"node_modules/formdata-polyfill": {
"version": "4.0.10",
"resolved": "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz",
"integrity": "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==",
"license": "MIT",
"dependencies": {
"fetch-blob": "^3.1.2"
},
"engines": {
"node": ">=12.20.0"
}
},
"node_modules/fraction.js": { "node_modules/fraction.js": {
"version": "4.3.7", "version": "4.3.7",
"resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.3.7.tgz", "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.3.7.tgz",
@@ -6968,6 +7116,18 @@
"integrity": "sha512-I0UBV/XOz1XkIJHEUDMZAbzCThU/H8DxmSfmdGcKPnVhu2VfFqr34jr9777IyaTYvxjedWhqVIilEDsCdP5G6g==", "integrity": "sha512-I0UBV/XOz1XkIJHEUDMZAbzCThU/H8DxmSfmdGcKPnVhu2VfFqr34jr9777IyaTYvxjedWhqVIilEDsCdP5G6g==",
"license": "ISC" "license": "ISC"
}, },
"node_modules/get-stdin": {
"version": "9.0.0",
"resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-9.0.0.tgz",
"integrity": "sha512-dVKBjfWisLAicarI2Sf+JuBE/DghV4UzNAVe9yhEJuzeREd3JhOTE9cUaJTeSa77fsbQUK3pcOpJfM59+VKZaA==",
"license": "MIT",
"engines": {
"node": ">=12"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/get-stream": { "node_modules/get-stream": {
"version": "6.0.1", "version": "6.0.1",
"resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz",
@@ -8196,6 +8356,34 @@
"sourcemap-codec": "^1.4.8" "sourcemap-codec": "^1.4.8"
} }
}, },
"node_modules/magnet-uri": {
"version": "7.0.5",
"resolved": "https://registry.npmjs.org/magnet-uri/-/magnet-uri-7.0.5.tgz",
"integrity": "sha512-Ke+dDiYHK1Rq/ZyGUAgk7NIkoypivxolTj/A0qr60ypP0FjeP+NTUNEhr965HsRan0zGxKEBK73+SsjRyJWkXg==",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/feross"
},
{
"type": "patreon",
"url": "https://www.patreon.com/feross"
},
{
"type": "consulting",
"url": "https://feross.org/support"
}
],
"license": "MIT",
"dependencies": {
"@thaunknown/thirty-two": "^1.0.3",
"bep53-range": "^2.0.0",
"uint8-util": "^2.1.9"
},
"engines": {
"node": ">=12.20.0"
}
},
"node_modules/make-dir": { "node_modules/make-dir": {
"version": "3.1.0", "version": "3.1.0",
"resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz",
@@ -8443,6 +8631,43 @@
"next": ">=9.0.0" "next": ">=9.0.0"
} }
}, },
"node_modules/node-domexception": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz",
"integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/jimmywarting"
},
{
"type": "github",
"url": "https://paypal.me/jimmywarting"
}
],
"license": "MIT",
"engines": {
"node": ">=10.5.0"
}
},
"node_modules/node-fetch": {
"version": "3.3.2",
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.2.tgz",
"integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==",
"license": "MIT",
"dependencies": {
"data-uri-to-buffer": "^4.0.0",
"fetch-blob": "^3.1.4",
"formdata-polyfill": "^4.0.10"
},
"engines": {
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/node-fetch"
}
},
"node_modules/node-html-parser": { "node_modules/node-html-parser": {
"version": "6.1.5", "version": "6.1.5",
"resolved": "https://registry.npmjs.org/node-html-parser/-/node-html-parser-6.1.5.tgz", "resolved": "https://registry.npmjs.org/node-html-parser/-/node-html-parser-6.1.5.tgz",
@@ -8765,6 +8990,40 @@
"node": ">=6" "node": ">=6"
} }
}, },
"node_modules/parse-torrent": {
"version": "11.0.17",
"resolved": "https://registry.npmjs.org/parse-torrent/-/parse-torrent-11.0.17.tgz",
"integrity": "sha512-bkfEtrqIMT4+bSWs+m7+Ktd7LSJsDefA9qfJQ3UFwOeBqipiQ+347guu79zX++nRwMnrdvRecLmgaRcdiYjE4w==",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/feross"
},
{
"type": "patreon",
"url": "https://www.patreon.com/feross"
},
{
"type": "consulting",
"url": "https://feross.org/support"
}
],
"license": "MIT",
"dependencies": {
"bencode": "^4.0.0",
"cross-fetch-ponyfill": "^1.0.3",
"get-stdin": "^9.0.0",
"magnet-uri": "^7.0.5",
"queue-microtask": "^1.2.3",
"uint8-util": "^2.2.5"
},
"bin": {
"parse-torrent": "bin/cmd.js"
},
"engines": {
"node": ">=12.20.0"
}
},
"node_modules/parse-torrent-title": { "node_modules/parse-torrent-title": {
"version": "1.4.0", "version": "1.4.0",
"resolved": "https://registry.npmjs.org/parse-torrent-title/-/parse-torrent-title-1.4.0.tgz", "resolved": "https://registry.npmjs.org/parse-torrent-title/-/parse-torrent-title-1.4.0.tgz",
@@ -10612,6 +10871,15 @@
"node": ">=14.17" "node": ">=14.17"
} }
}, },
"node_modules/uint8-util": {
"version": "2.2.5",
"resolved": "https://registry.npmjs.org/uint8-util/-/uint8-util-2.2.5.tgz",
"integrity": "sha512-/QxVQD7CttWpVUKVPz9znO+3Dd4BdTSnFQ7pv/4drVhC9m4BaL2LFHTkJn6EsYoxT79VDq/2Gg8L0H22PrzyMw==",
"license": "MIT",
"dependencies": {
"base64-arraybuffer": "^1.0.2"
}
},
"node_modules/unbox-primitive": { "node_modules/unbox-primitive": {
"version": "1.0.2", "version": "1.0.2",
"resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz",
@@ -10804,6 +11072,15 @@
"node": ">=10.13.0" "node": ">=10.13.0"
} }
}, },
"node_modules/web-streams-polyfill": {
"version": "3.3.3",
"resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz",
"integrity": "sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==",
"license": "MIT",
"engines": {
"node": ">= 8"
}
},
"node_modules/webidl-conversions": { "node_modules/webidl-conversions": {
"version": "4.0.2", "version": "4.0.2",
"resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz",
@@ -13821,6 +14098,14 @@
"@tanstack/query-devtools": "5.58.0" "@tanstack/query-devtools": "5.58.0"
} }
}, },
"@thaunknown/thirty-two": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/@thaunknown/thirty-two/-/thirty-two-1.0.5.tgz",
"integrity": "sha512-Q53KyCXweV1CS62EfqtPDqfpksn5keQ59PGqzzkK+g8Vif1jB4inoBCcs/BUSdsqddhE3G+2Fn+4RX3S6RqT0A==",
"requires": {
"uint8-util": "^2.2.5"
}
},
"@types/estree": { "@types/estree": {
"version": "1.0.6", "version": "1.0.6",
"resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz",
@@ -13853,6 +14138,15 @@
"integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==",
"dev": true "dev": true
}, },
"@types/magnet-uri": {
"version": "5.1.5",
"resolved": "https://registry.npmjs.org/@types/magnet-uri/-/magnet-uri-5.1.5.tgz",
"integrity": "sha512-SbBjlb1KGe38VfjRR+mwqztJd/4skhdKkRbIzPDhTy7IAeEAPZWIVSEkZw00Qr4ZZOGR3/ATJ20WWPBfrKHGdA==",
"dev": true,
"requires": {
"@types/node": "*"
}
},
"@types/minimatch": { "@types/minimatch": {
"version": "5.1.2", "version": "5.1.2",
"resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-5.1.2.tgz", "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-5.1.2.tgz",
@@ -13863,6 +14157,26 @@
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.4.4.tgz", "resolved": "https://registry.npmjs.org/@types/node/-/node-20.4.4.tgz",
"integrity": "sha512-CukZhumInROvLq3+b5gLev+vgpsIqC2D0deQr/yS1WnxvmYLlJXZpaQrQiseMY+6xusl79E04UjWoqyr+t1/Ew==" "integrity": "sha512-CukZhumInROvLq3+b5gLev+vgpsIqC2D0deQr/yS1WnxvmYLlJXZpaQrQiseMY+6xusl79E04UjWoqyr+t1/Ew=="
}, },
"@types/parse-torrent": {
"version": "5.8.7",
"resolved": "https://registry.npmjs.org/@types/parse-torrent/-/parse-torrent-5.8.7.tgz",
"integrity": "sha512-vZtYe450hO+KL7B5fejM8CHWg1LPZKeVXlolphPsWf6n4H0ZUlI6ICbqHoaFmH7JQmU2yRbGgyvqqizdFuGPFQ==",
"dev": true,
"requires": {
"@types/magnet-uri": "*",
"@types/node": "*",
"@types/parse-torrent-file": "*"
}
},
"@types/parse-torrent-file": {
"version": "4.0.6",
"resolved": "https://registry.npmjs.org/@types/parse-torrent-file/-/parse-torrent-file-4.0.6.tgz",
"integrity": "sha512-SxqVth0Iv0WuEkqWS5MaY4S4Tlyi+QHkElQREvsUPw2xHcPgKyQ2dkJRRv5vAxmLzH+tnMdOj1Nws/wsenbzUw==",
"dev": true,
"requires": {
"@types/node": "*"
}
},
"@types/prop-types": { "@types/prop-types": {
"version": "15.7.5", "version": "15.7.5",
"resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.5.tgz", "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.5.tgz",
@@ -14125,6 +14439,14 @@
"integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==",
"peer": true "peer": true
}, },
"abort-controller": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz",
"integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==",
"requires": {
"event-target-shim": "^5.0.0"
}
},
"acorn": { "acorn": {
"version": "8.13.0", "version": "8.13.0",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.13.0.tgz", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.13.0.tgz",
@@ -14447,6 +14769,24 @@
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
"integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="
}, },
"base64-arraybuffer": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-1.0.2.tgz",
"integrity": "sha512-I3yl4r9QB5ZRY3XuJVEPfc2XhZO6YweFPI+UovAzn+8/hb3oJ6lnysaFcjVpkCPfVWFUDvoZ8kmVDP7WyRtYtQ=="
},
"bencode": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/bencode/-/bencode-4.0.0.tgz",
"integrity": "sha512-AERXw18df0pF3ziGOCyUjqKZBVNH8HV3lBxnx5w0qtgMIk4a1wb9BkcCQbkp9Zstfrn/dzRwl7MmUHHocX3sRQ==",
"requires": {
"uint8-util": "^2.2.2"
}
},
"bep53-range": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/bep53-range/-/bep53-range-2.0.0.tgz",
"integrity": "sha512-sMm2sV5PRs0YOVk0LTKtjuIprVzxgTQUsrGX/7Yph2Rm4FO2Fqqtq7hNjsOB5xezM4v4+5rljCgK++UeQJZguA=="
},
"big-integer": { "big-integer": {
"version": "1.6.51", "version": "1.6.51",
"resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.51.tgz", "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.51.tgz",
@@ -14698,6 +15038,15 @@
"postcss-media-query-parser": "^0.2.3" "postcss-media-query-parser": "^0.2.3"
} }
}, },
"cross-fetch-ponyfill": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/cross-fetch-ponyfill/-/cross-fetch-ponyfill-1.0.3.tgz",
"integrity": "sha512-uOBkDhUAGAbx/FEzNKkOfx3w57H8xReBBXoZvUnOKTI0FW0Xvrj3GrYv2iZXUqlffC1LMGfQzhmBM/ke+6eTDA==",
"requires": {
"abort-controller": "^3.0.0",
"node-fetch": "^3.3.0"
}
},
"cross-spawn": { "cross-spawn": {
"version": "7.0.3", "version": "7.0.3",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
@@ -14750,6 +15099,11 @@
"integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==", "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==",
"dev": true "dev": true
}, },
"data-uri-to-buffer": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz",
"integrity": "sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A=="
},
"debounce": { "debounce": {
"version": "1.2.1", "version": "1.2.1",
"resolved": "https://registry.npmjs.org/debounce/-/debounce-1.2.1.tgz", "resolved": "https://registry.npmjs.org/debounce/-/debounce-1.2.1.tgz",
@@ -15493,6 +15847,11 @@
"resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",
"integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==" "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g=="
}, },
"event-target-shim": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz",
"integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ=="
},
"events": { "events": {
"version": "3.3.0", "version": "3.3.0",
"resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz",
@@ -15567,6 +15926,15 @@
"reusify": "^1.0.4" "reusify": "^1.0.4"
} }
}, },
"fetch-blob": {
"version": "3.2.0",
"resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz",
"integrity": "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==",
"requires": {
"node-domexception": "^1.0.0",
"web-streams-polyfill": "^3.0.3"
}
},
"file-entry-cache": { "file-entry-cache": {
"version": "6.0.1", "version": "6.0.1",
"resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz",
@@ -15687,6 +16055,14 @@
"mime-types": "^2.1.12" "mime-types": "^2.1.12"
} }
}, },
"formdata-polyfill": {
"version": "4.0.10",
"resolved": "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz",
"integrity": "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==",
"requires": {
"fetch-blob": "^3.1.2"
}
},
"fraction.js": { "fraction.js": {
"version": "4.3.7", "version": "4.3.7",
"resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.3.7.tgz", "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.3.7.tgz",
@@ -15762,6 +16138,11 @@
"resolved": "https://registry.npmjs.org/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-3.0.2.tgz", "resolved": "https://registry.npmjs.org/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-3.0.2.tgz",
"integrity": "sha512-I0UBV/XOz1XkIJHEUDMZAbzCThU/H8DxmSfmdGcKPnVhu2VfFqr34jr9777IyaTYvxjedWhqVIilEDsCdP5G6g==" "integrity": "sha512-I0UBV/XOz1XkIJHEUDMZAbzCThU/H8DxmSfmdGcKPnVhu2VfFqr34jr9777IyaTYvxjedWhqVIilEDsCdP5G6g=="
}, },
"get-stdin": {
"version": "9.0.0",
"resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-9.0.0.tgz",
"integrity": "sha512-dVKBjfWisLAicarI2Sf+JuBE/DghV4UzNAVe9yhEJuzeREd3JhOTE9cUaJTeSa77fsbQUK3pcOpJfM59+VKZaA=="
},
"get-stream": { "get-stream": {
"version": "6.0.1", "version": "6.0.1",
"resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz",
@@ -16585,6 +16966,16 @@
"sourcemap-codec": "^1.4.8" "sourcemap-codec": "^1.4.8"
} }
}, },
"magnet-uri": {
"version": "7.0.5",
"resolved": "https://registry.npmjs.org/magnet-uri/-/magnet-uri-7.0.5.tgz",
"integrity": "sha512-Ke+dDiYHK1Rq/ZyGUAgk7NIkoypivxolTj/A0qr60ypP0FjeP+NTUNEhr965HsRan0zGxKEBK73+SsjRyJWkXg==",
"requires": {
"@thaunknown/thirty-two": "^1.0.3",
"bep53-range": "^2.0.0",
"uint8-util": "^2.1.9"
}
},
"make-dir": { "make-dir": {
"version": "3.1.0", "version": "3.1.0",
"resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz",
@@ -16742,6 +17133,21 @@
"workbox-window": "^6.5.4" "workbox-window": "^6.5.4"
} }
}, },
"node-domexception": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz",
"integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ=="
},
"node-fetch": {
"version": "3.3.2",
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.2.tgz",
"integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==",
"requires": {
"data-uri-to-buffer": "^4.0.0",
"fetch-blob": "^3.1.4",
"formdata-polyfill": "^4.0.10"
}
},
"node-html-parser": { "node-html-parser": {
"version": "6.1.5", "version": "6.1.5",
"resolved": "https://registry.npmjs.org/node-html-parser/-/node-html-parser-6.1.5.tgz", "resolved": "https://registry.npmjs.org/node-html-parser/-/node-html-parser-6.1.5.tgz",
@@ -16967,6 +17373,19 @@
"callsites": "^3.0.0" "callsites": "^3.0.0"
} }
}, },
"parse-torrent": {
"version": "11.0.17",
"resolved": "https://registry.npmjs.org/parse-torrent/-/parse-torrent-11.0.17.tgz",
"integrity": "sha512-bkfEtrqIMT4+bSWs+m7+Ktd7LSJsDefA9qfJQ3UFwOeBqipiQ+347guu79zX++nRwMnrdvRecLmgaRcdiYjE4w==",
"requires": {
"bencode": "^4.0.0",
"cross-fetch-ponyfill": "^1.0.3",
"get-stdin": "^9.0.0",
"magnet-uri": "^7.0.5",
"queue-microtask": "^1.2.3",
"uint8-util": "^2.2.5"
}
},
"parse-torrent-title": { "parse-torrent-title": {
"version": "1.4.0", "version": "1.4.0",
"resolved": "https://registry.npmjs.org/parse-torrent-title/-/parse-torrent-title-1.4.0.tgz", "resolved": "https://registry.npmjs.org/parse-torrent-title/-/parse-torrent-title-1.4.0.tgz",
@@ -18177,6 +18596,14 @@
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.6.tgz", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.6.tgz",
"integrity": "sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==" "integrity": "sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA=="
}, },
"uint8-util": {
"version": "2.2.5",
"resolved": "https://registry.npmjs.org/uint8-util/-/uint8-util-2.2.5.tgz",
"integrity": "sha512-/QxVQD7CttWpVUKVPz9znO+3Dd4BdTSnFQ7pv/4drVhC9m4BaL2LFHTkJn6EsYoxT79VDq/2Gg8L0H22PrzyMw==",
"requires": {
"base64-arraybuffer": "^1.0.2"
}
},
"unbox-primitive": { "unbox-primitive": {
"version": "1.0.2", "version": "1.0.2",
"resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz",
@@ -18286,6 +18713,11 @@
"graceful-fs": "^4.1.2" "graceful-fs": "^4.1.2"
} }
}, },
"web-streams-polyfill": {
"version": "3.3.3",
"resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz",
"integrity": "sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw=="
},
"webidl-conversions": { "webidl-conversions": {
"version": "4.0.2", "version": "4.0.2",
"resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz",
+2
View File
@@ -27,6 +27,7 @@
"media-icons": "^1.1.5", "media-icons": "^1.1.5",
"next": "^14.2.7", "next": "^14.2.7",
"next-pwa": "^5.6.0", "next-pwa": "^5.6.0",
"parse-torrent": "^11.0.17",
"react": "^18.3.1", "react": "^18.3.1",
"react-dom": "^18.3.1", "react-dom": "^18.3.1",
"react-modal-promise": "^1.0.2", "react-modal-promise": "^1.0.2",
@@ -37,6 +38,7 @@
"@tanstack/react-query-devtools": "^5.59.15", "@tanstack/react-query-devtools": "^5.59.15",
"@types/js-cookie": "^3.0.3", "@types/js-cookie": "^3.0.3",
"@types/node": "20.4.4", "@types/node": "20.4.4",
"@types/parse-torrent": "^5.8.7",
"@types/react": "18.2.15", "@types/react": "18.2.15",
"@types/react-dom": "18.2.7", "@types/react-dom": "18.2.7",
"autoprefixer": "^10.4.14", "autoprefixer": "^10.4.14",
+1 -1
View File
@@ -1 +1 @@
if(!self.define){let e,s={};const n=(n,a)=>(n=new URL(n+".js",a).href,s[n]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=n,e.onload=s,document.head.appendChild(e)}else e=n,importScripts(n),s()})).then((()=>{let e=s[n];if(!e)throw new Error(`Module ${n} didn’t register its module`);return e})));self.define=(a,i)=>{const t=e||("document"in self?document.currentScript.src:"")||location.href;if(s[t])return;let c={};const r=e=>n(e,t),f={module:{uri:t},exports:c,require:r};s[t]=Promise.all(a.map((e=>f[e]||r(e)))).then((e=>(i(...e),c)))}}define(["./workbox-4754cb34"],(function(e){"use strict";importScripts(),self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"/_next/app-build-manifest.json",revision:"a3cd5f95f7db0d1d05cdd80d39fbbcc3"},{url:"/_next/static/8_22PWCS83fHwArrknWWz/_buildManifest.js",revision:"2ec694eb52ae4f523f265a46bae4d768"},{url:"/_next/static/8_22PWCS83fHwArrknWWz/_ssgManifest.js",revision:"b6652df95db52feb4daf4eca35380933"},{url:"/_next/static/chunks/152.e619d8b05424829e.js",revision:"e619d8b05424829e"},{url:"/_next/static/chunks/23-e95fe3862375276d.js",revision:"8_22PWCS83fHwArrknWWz"},{url:"/_next/static/chunks/26.286553a5ff2812fc.js",revision:"286553a5ff2812fc"},{url:"/_next/static/chunks/276.c3c1130f2adade69.js",revision:"c3c1130f2adade69"},{url:"/_next/static/chunks/344.05938a041227e582.js",revision:"05938a041227e582"},{url:"/_next/static/chunks/37-f6e2aef0dac1a9f4.js",revision:"8_22PWCS83fHwArrknWWz"},{url:"/_next/static/chunks/383.78d47f7582340f53.js",revision:"78d47f7582340f53"},{url:"/_next/static/chunks/408-9f4330d448d111de.js",revision:"8_22PWCS83fHwArrknWWz"},{url:"/_next/static/chunks/460.ac20021c7496f1d6.js",revision:"ac20021c7496f1d6"},{url:"/_next/static/chunks/497.a16beaad36f500fe.js",revision:"a16beaad36f500fe"},{url:"/_next/static/chunks/61.e269d4a699fba0b6.js",revision:"e269d4a699fba0b6"},{url:"/_next/static/chunks/621-fa4d2ff1cf645813.js",revision:"8_22PWCS83fHwArrknWWz"},{url:"/_next/static/chunks/673.362c29137dd3e968.js",revision:"362c29137dd3e968"},{url:"/_next/static/chunks/693-2767062d917b3456.js",revision:"8_22PWCS83fHwArrknWWz"},{url:"/_next/static/chunks/695.156d21364de6e419.js",revision:"156d21364de6e419"},{url:"/_next/static/chunks/755.5cd959eac5682527.js",revision:"5cd959eac5682527"},{url:"/_next/static/chunks/792.b51012549074b93f.js",revision:"b51012549074b93f"},{url:"/_next/static/chunks/810.6105e84414768b0d.js",revision:"6105e84414768b0d"},{url:"/_next/static/chunks/922.9ce4bf0553cfb724.js",revision:"9ce4bf0553cfb724"},{url:"/_next/static/chunks/957-cded7f5705dab153.js",revision:"8_22PWCS83fHwArrknWWz"},{url:"/_next/static/chunks/app/(site)/favorites/page-ffb6640ca3724ba2.js",revision:"8_22PWCS83fHwArrknWWz"},{url:"/_next/static/chunks/app/(site)/loading-96645736797edde7.js",revision:"8_22PWCS83fHwArrknWWz"},{url:"/_next/static/chunks/app/(site)/page-43d5ab309b47f26e.js",revision:"8_22PWCS83fHwArrknWWz"},{url:"/_next/static/chunks/app/(site)/popular/page-243e61f0cd1ad4c8.js",revision:"8_22PWCS83fHwArrknWWz"},{url:"/_next/static/chunks/app/(site)/similar/page-3421aec886d9bdf2.js",revision:"8_22PWCS83fHwArrknWWz"},{url:"/_next/static/chunks/app/(site)/starring/page-fa8f2c845631e4fa.js",revision:"8_22PWCS83fHwArrknWWz"},{url:"/_next/static/chunks/app/(site)/top/page-f6114c36b62ccf16.js",revision:"8_22PWCS83fHwArrknWWz"},{url:"/_next/static/chunks/app/(site)/watch-list/page-f94b41f0047b2259.js",revision:"8_22PWCS83fHwArrknWWz"},{url:"/_next/static/chunks/app/_not-found/page-aa0c8e90320336c2.js",revision:"8_22PWCS83fHwArrknWWz"},{url:"/_next/static/chunks/app/layout-2d41dd83e95d492b.js",revision:"8_22PWCS83fHwArrknWWz"},{url:"/_next/static/chunks/c8bcbd21.63daf74955ffea8b.js",revision:"63daf74955ffea8b"},{url:"/_next/static/chunks/fd9d1056-bdf7d185613ab264.js",revision:"8_22PWCS83fHwArrknWWz"},{url:"/_next/static/chunks/framework-f66176bb897dc684.js",revision:"8_22PWCS83fHwArrknWWz"},{url:"/_next/static/chunks/main-af50ab4bffe3e017.js",revision:"8_22PWCS83fHwArrknWWz"},{url:"/_next/static/chunks/main-app-51cdaff1a81e6b49.js",revision:"8_22PWCS83fHwArrknWWz"},{url:"/_next/static/chunks/pages/_app-6a626577ffa902a4.js",revision:"8_22PWCS83fHwArrknWWz"},{url:"/_next/static/chunks/pages/_error-1be831200e60c5c0.js",revision:"8_22PWCS83fHwArrknWWz"},{url:"/_next/static/chunks/polyfills-42372ed130431b0a.js",revision:"846118c33b2c0e922d7b3a7676f81f6f"},{url:"/_next/static/chunks/webpack-c237893ea1bfcd3a.js",revision:"8_22PWCS83fHwArrknWWz"},{url:"/_next/static/css/0d5f6452b2682b9b.css",revision:"0d5f6452b2682b9b"},{url:"/_next/static/css/9c0cd24400449eee.css",revision:"9c0cd24400449eee"},{url:"/_next/static/media/46c21389e888bf13-s.woff2",revision:"272930c09ba14c81bb294be1fe18b049"},{url:"/_next/static/media/8888a3826f4a3af4-s.p.woff2",revision:"792477d09826b11d1e5a611162c9797a"},{url:"/_next/static/media/eafabf029ad39a43-s.p.woff2",revision:"43751174b6b810eb169101a20d8c26f8"},{url:"/_next/static/media/f5767adec246cdc1-s.woLine truncated if(!self.define){let e,s={};const a=(a,n)=>(a=new URL(a+".js",n).href,s[a]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=a,e.onload=s,document.head.appendChild(e)}else e=a,importScripts(a),s()})).then((()=>{let e=s[a];if(!e)throw new Error(`Module ${a} didn’t register its module`);return e})));self.define=(n,c)=>{const i=e||("document"in self?document.currentScript.src:"")||location.href;if(s[i])return;let t={};const r=e=>a(e,i),u={module:{uri:i},exports:t,require:r};s[i]=Promise.all(n.map((e=>u[e]||r(e)))).then((e=>(c(...e),t)))}}define(["./workbox-4754cb34"],(function(e){"use strict";importScripts(),self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"/_next/app-build-manifest.json",revision:"2f5a1d17c836a7f987c5aad8087f7f69"},{url:"/_next/static/chunks/152.e619d8b05424829e.js",revision:"e619d8b05424829e"},{url:"/_next/static/chunks/23-e95fe3862375276d.js",revision:"mc2DxrE-1g9uq61LbuNSz"},{url:"/_next/static/chunks/26.286553a5ff2812fc.js",revision:"286553a5ff2812fc"},{url:"/_next/static/chunks/276.c3c1130f2adade69.js",revision:"c3c1130f2adade69"},{url:"/_next/static/chunks/311-cfac2c6c6bc4f409.js",revision:"mc2DxrE-1g9uq61LbuNSz"},{url:"/_next/static/chunks/344.05938a041227e582.js",revision:"05938a041227e582"},{url:"/_next/static/chunks/37-f6e2aef0dac1a9f4.js",revision:"mc2DxrE-1g9uq61LbuNSz"},{url:"/_next/static/chunks/383.78d47f7582340f53.js",revision:"78d47f7582340f53"},{url:"/_next/static/chunks/460.ac20021c7496f1d6.js",revision:"ac20021c7496f1d6"},{url:"/_next/static/chunks/497.a16beaad36f500fe.js",revision:"a16beaad36f500fe"},{url:"/_next/static/chunks/61.e269d4a699fba0b6.js",revision:"e269d4a699fba0b6"},{url:"/_next/static/chunks/621-fa4d2ff1cf645813.js",revision:"mc2DxrE-1g9uq61LbuNSz"},{url:"/_next/static/chunks/673.362c29137dd3e968.js",revision:"362c29137dd3e968"},{url:"/_next/static/chunks/693-2767062d917b3456.js",revision:"mc2DxrE-1g9uq61LbuNSz"},{url:"/_next/static/chunks/695.156d21364de6e419.js",revision:"156d21364de6e419"},{url:"/_next/static/chunks/755.5cd959eac5682527.js",revision:"5cd959eac5682527"},{url:"/_next/static/chunks/792.b51012549074b93f.js",revision:"b51012549074b93f"},{url:"/_next/static/chunks/810.6105e84414768b0d.js",revision:"6105e84414768b0d"},{url:"/_next/static/chunks/922.9ce4bf0553cfb724.js",revision:"9ce4bf0553cfb724"},{url:"/_next/static/chunks/957-9f7dee59febd35c3.js",revision:"mc2DxrE-1g9uq61LbuNSz"},{url:"/_next/static/chunks/app/(site)/favorites/page-597921ef02c719df.js",revision:"mc2DxrE-1g9uq61LbuNSz"},{url:"/_next/static/chunks/app/(site)/loading-96645736797edde7.js",revision:"mc2DxrE-1g9uq61LbuNSz"},{url:"/_next/static/chunks/app/(site)/page-50279285390a6523.js",revision:"mc2DxrE-1g9uq61LbuNSz"},{url:"/_next/static/chunks/app/(site)/popular/page-b24c2917fc8bafde.js",revision:"mc2DxrE-1g9uq61LbuNSz"},{url:"/_next/static/chunks/app/(site)/similar/page-76c09599bd10ea14.js",revision:"mc2DxrE-1g9uq61LbuNSz"},{url:"/_next/static/chunks/app/(site)/starring/page-cddd4e2d83614eda.js",revision:"mc2DxrE-1g9uq61LbuNSz"},{url:"/_next/static/chunks/app/(site)/top/page-489f98dd6cd2a463.js",revision:"mc2DxrE-1g9uq61LbuNSz"},{url:"/_next/static/chunks/app/(site)/watch-list/page-e3f529e210a2a8e9.js",revision:"mc2DxrE-1g9uq61LbuNSz"},{url:"/_next/static/chunks/app/_not-found/page-aa0c8e90320336c2.js",revision:"mc2DxrE-1g9uq61LbuNSz"},{url:"/_next/static/chunks/app/layout-e78d8a67bc5fd6ae.js",revision:"mc2DxrE-1g9uq61LbuNSz"},{url:"/_next/static/chunks/c8bcbd21.63daf74955ffea8b.js",revision:"63daf74955ffea8b"},{url:"/_next/static/chunks/fd9d1056-bdf7d185613ab264.js",revision:"mc2DxrE-1g9uq61LbuNSz"},{url:"/_next/static/chunks/framework-f66176bb897dc684.js",revision:"mc2DxrE-1g9uq61LbuNSz"},{url:"/_next/static/chunks/main-af50ab4bffe3e017.js",revision:"mc2DxrE-1g9uq61LbuNSz"},{url:"/_next/static/chunks/main-app-51cdaff1a81e6b49.js",revision:"mc2DxrE-1g9uq61LbuNSz"},{url:"/_next/static/chunks/pages/_app-6a626577ffa902a4.js",revision:"mc2DxrE-1g9uq61LbuNSz"},{url:"/_next/static/chunks/pages/_error-1be831200e60c5c0.js",revision:"mc2DxrE-1g9uq61LbuNSz"},{url:"/_next/static/chunks/polyfills-42372ed130431b0a.js",revision:"846118c33b2c0e922d7b3a7676f81f6f"},{url:"/_next/static/chunks/webpack-d4343f8c473d689d.js",revision:"mc2DxrE-1g9uq61LbuNSz"},{url:"/_next/static/css/0d5f6452b2682b9b.css",revision:"0d5f6452b2682b9b"},{url:"/_next/static/css/af880b2e4df9cb52.css",revision:"af880b2e4df9cb52"},{url:"/_next/static/mc2DxrE-1g9uq61LbuNSz/_buildManifest.js",revision:"2ec694eb52ae4f523f265a46bae4d768"},{url:"/_next/static/mc2DxrE-1g9uq61LbuNSz/_ssgManifest.js",revision:"b6652df95db52feb4daf4eca35380933"},{url:"/_next/static/media/46c21389e888bf13-s.woff2",revision:"272930c09ba14c81bb294be1fe18b049"},{url:"/_next/static/media/8888a3826f4a3af4-s.p.woff2",revision:"792477d09826b11d1e5a611162c9797a"},{url:"/_next/static/media/eafabf029ad39a43-s.p.woff2",revision:"43751174b6b810eb169101a20d8c26f8"},{url:"/_next/static/media/f5767adec246cdc1-s.woLine truncated
Vendored
+1
View File
@@ -131,6 +131,7 @@ interface Torrent {
codec?: string; codec?: string;
container?: string; container?: string;
year?: string; year?: string;
download?: string;
} }
interface Source { interface Source {