0.1.4 • Published 7 years ago

liteiptv v0.1.4

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

liteiptv

Node interface for LiteIPTV

Install in your project with npm i -S liteiptv

Class: LiteIPTV

Example:

import LiteIPTV from 'liteiptv'
const liteiptv = new LiteIPTV('USERNAME', 'PASSWORD')

LiteIPTV.categories(live)

Get list of available stream categories

Parameters

live: boolean, Live or video-on-demand?

Returns: Promise, Resolves to a list of available categories

Example:

liteiptv.categories()
  .then(streams => console.log(streams))

LiteIPTV.category(id, live, m3u)

Get the streams for a category

Parameters

id: number, The id from categories()

live: boolean, Live or video-on-demand?

m3u: boolean, Return an M3U playlist for this stream list?

Returns: Promise, Resolves to a list of streams

Example:

liteiptv.category(4)
  .then(streams => console.log(streams))

LiteIPTV.categoryToM3u(channels)

Generate an M3U playlist for the output of category() if you are cacheing your output.

This is great

Parameters

channels: object, The output from category()

Returns: string, M3U playlist

LiteIPTV.panel()

Get all info at once. This is a built-in endpoint that is useful if you want to grab all the data at once.

Returns: Promise, Resolves to a large object with all your info

Example:

liteiptv.panel()
  .then(info => console.log(info))
0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.1

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago