flixhq-api 1.0.0 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
A specialized Node.js library that provides an API for obtaining movie and TV show information, including metadata, seasons, episodes, and streaming sources from FlixHQ.
|
|
4
4
|
|
|
5
|
-
[](https://www.npmjs.com/package/flixhq-api)
|
|
6
|
+

|
|
7
7
|
|
|
8
8
|
## Features
|
|
9
9
|
|
|
@@ -17,7 +17,7 @@ A specialized Node.js library that provides an API for obtaining movie and TV sh
|
|
|
17
17
|
## Installation
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
|
-
npm i
|
|
20
|
+
npm i flixhq-api
|
|
21
21
|
|
|
22
22
|
```
|
|
23
23
|
|
|
@@ -169,10 +169,10 @@ Get available streaming servers for a movie or episode.
|
|
|
169
169
|
|
|
170
170
|
```javascript
|
|
171
171
|
// For a movie
|
|
172
|
-
const servers = await flixhq.getServers("12345", "movie");
|
|
172
|
+
const servers = await flixhq.getServers("12345", "movie"); // id of movie
|
|
173
173
|
|
|
174
174
|
// For an episode
|
|
175
|
-
const servers = await flixhq.getServers("
|
|
175
|
+
const servers = await flixhq.getServers("67890", "tv"); //id of episode returned from getEpisodes(seasonId)
|
|
176
176
|
|
|
177
177
|
```
|
|
178
178
|
|
|
@@ -181,7 +181,7 @@ const servers = await flixhq.getServers("episode-id-67890", "tv");
|
|
|
181
181
|
Extracts the streaming link (m3u8) for a specific server ID.
|
|
182
182
|
|
|
183
183
|
```javascript
|
|
184
|
-
const source = await flixhq.fetchSource("
|
|
184
|
+
const source = await flixhq.fetchSource("54321"); / sourceID of getServers(contentId, type)
|
|
185
185
|
/* Returns:
|
|
186
186
|
{
|
|
187
187
|
source: "https://.../master.m3u8",
|