Finished API integration

This commit is contained in:
2025-10-30 21:24:32 +03:30
parent 305170f185
commit 03d13d432a
11 changed files with 636 additions and 339 deletions
+21
View File
@@ -0,0 +1,21 @@
export type MagnetUrl = {
/**
* A magnet link is a string that contains all the information needed to download a torrent file.
* It consists of several parameters that are separated by ampersands (&).
* The parameters are:
* - xt (exact topic): The hash of the torrent file.
* - dn (display name): The name of the torrent file.
* - tr (tracker URL): The URL of the tracker.
* - as (acceptable source): The URL of the acceptable source.
* - xs (exact source): The URL of the exact source.
* - kt (keyword topic): The keyword topic.
* - mt (magnet topic): The magnet topic.
*/
xt: string;
dn?: string;
tr?: string[];
as?: string[];
xs?: string[];
kt?: string;
mt?: string;
}