✨ Verify solidpkg file for correctness
This commit is contained in:
parent
96139d2305
commit
a221ee3a6b
3 changed files with 94 additions and 2 deletions
37
src/interfaces/ISolidFile.ts
Normal file
37
src/interfaces/ISolidFile.ts
Normal file
|
@ -0,0 +1,37 @@
|
|||
interface ISolidFile {
|
||||
//TODO
|
||||
}
|
||||
|
||||
interface ISolidFileInfo {
|
||||
/** List of files that are part of this torrent. */
|
||||
files: ISolidFile[];
|
||||
/** Length of one piece in bytes, e.g. 4194304 for 4 MB. */
|
||||
'piece length': number;
|
||||
/** Concatenated hashes of all pieces. */
|
||||
pieces: string;
|
||||
/** Whether the torrent is private, always 0. */
|
||||
private: 0 | 1;
|
||||
/** Whether the torrent is closed, always 1. */
|
||||
closed: 0 | 1;
|
||||
/** Unique ID of this torrent, e.g. '85ff8715-d1ce-4320-805c-bea80b6dd03c' */
|
||||
uniqueid: string;
|
||||
}
|
||||
|
||||
interface ISolid {
|
||||
/** Timestamp when this torrent was created, given in seconds since 1970. Can be read with `new Date(... * 1000)`. */
|
||||
'creation date': number;
|
||||
/** Internal tracker URL used to announce this torrent. */
|
||||
announce: string;
|
||||
/** Title of this torrent in the format `${product}: ${from}to${to}` */
|
||||
title: string;
|
||||
/** Unknown integer, always 16097. */
|
||||
networkgroupid: number;
|
||||
/** The URL where the files from this torrent are stored, in the format `http://cdn-patch.swtor.com/patch/${product}/${product}_${from}to${to}/` */
|
||||
reliable: string;
|
||||
/** Always '0' */
|
||||
'reliable-id': string;
|
||||
/** Contains further information about this torrent, including the list of files. */
|
||||
info: ISolidFileInfo;
|
||||
}
|
||||
|
||||
export default ISolid;
|
Loading…
Add table
Add a link
Reference in a new issue