Skip to content

Persei08/omgtorrent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OMGtorrent Unoffical api module (based on xtorrent)

Install

npm install omgtorrent

Usage

const omgtorrent = require('omgtorrent');

Search

Simple search

omgtorrent.search({query: 'Avenger Infinity War'}).then(data => {
  console.log(data);
});

Advanced search

omgtorrent
  .search({
    query: 'Asterix Obelix',
    type: 'films',
    orderBy: 'time',
    sortBy: 'desc',
    page: 2,
  })
  .then(data => {
    console.log(data);
  });

Parameters

url {string} optional. If you need to use custom domain.

page {integer} optional. If you need more results you can ask for page 2, etc. Default is 1.

type {string} optional. To search only in the specified type category. Must be one of those values: 'films', 'series', 'jeux', 'logiciels', 'albums', 'ebooks'.

order {string} optional. To sort the results. Must be one of those values: 'rls', 'id_cat', 'id', 'time_maj', 'taille', 'seeders', 'leechers', 'downloaded', 'top', 'vues'. Default is 'seeders'.

orderBy {string} optional. To sort the results. Must be one of those values: 'desc', 'asc'. Default is 'desc'.

İnfo

omgtorrent
  .info(
    'https://www.omgtorrent.cz/torrent/avengers-3-infinity-war-2018-truefrench-bdrip-xvid-extreme_63278.html',
  )
  .then(data => {
    console.log(data);
  });

About

omgtorrent simple api (based on xtorrent)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published