4.0.1 • Published 2 years ago

filelist.js v4.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
2 years ago

filelist.js

A simple FileList wrapper made using Node.js

Important to know: FileList.io's API has a rate limit of 150 requests an hour, so use with caution! When the rate limit is hit the library will retry to run your request every 10 minutes.

Installation: npm install filelist.js

Documentation: here

Usage example:

const FileList = require('filelist.js');

const FL = new FileList('username', 'passkey');

// Search torrents
FL.search({
    // These two parameters are mandatory
    type: 'name',
    query: 'Brazzers',
    // The following parameters are optional
    // This can either be a number or an array of numbers
    category: 7,
    // These can either be a 0 (for false) or 1 (for true)
    moderated: 1,
    internal: 0,
    freeleech: 1,
    doubleup: 0,
    // This defaults to json - can be either json or rss
    output: 'json',
    // These can be integers 
    season: null,
    episode: null
}).then(console.log).catch(console.error)


// Latest uploaded torrents
FL.latest({
    // All these parameters are optional
    // Maximum number of torrents displayed in the request. Can be 1-100. Default value: 100
    limit: 21,
    // Accepted as: tt00000000 or 00000000
    // imdb: tt00000000,
    // Valid values: IDs from categories, An array of them is accepted. 
    category: [21, 23]
}).then(console.log).catch(console.error)


// Both return an array of objects which have the following structure: 
const returned = {
    id: 42487,
    name: 'Big.Tits.at.School.Brazzers.Expose-ERiKHERLOV',
    imdb: null,
    freeleech: false,
    doubleup: false,
    upload_date: '2009-01-13 18:49:55',
    download_link: 'https://filelist.io/download.php?id=42487&passkey=your_passkey',
    size: 551269586,
    internal: false,
    moderated: true,
    category: 'XXX',
    seeders: 2,
    leechers: 1,
    times_completed: 31605,
    comments: 86,
    files: 4,
    small_description: '',
    tv: { season: null, episode: null }
}

Your passkey can be obtained from here

Category IDs:

IDName
1Filme SD
2Filme DVD
3Filme DVD-RO
4Filme HD
5FLAC
6Filme 4K
7XXX
8Programe
9Jocuri PC
10Jocuri Console
11Audio
12Videoclip
13Sport
14TV
15Desene
16Docs
17Linux
18Diverse
19Filme HD-RO
20Filme Blu-Ray
21Seriale HD
22Mobile
23Seriale SD
24Anime
25Filme 3D
26Filme 4K Blu-Ray
27Seriale 4K
3.0.0

2 years ago

4.0.1

2 years ago

4.0.0

2 years ago

2.2.0

2 years ago

2.1.0

4 years ago

2.0.0

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago