1.3.0 • Published 6 months ago

sc-wrapper v1.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

SC Wrapper

Wrapper for streamingcommunity website (to get the url, send a random message to: https://t.me/BelloFigoIlRobot)

API

There are three main functions exposed:

It searches for a movie or tv show by its name

/**
 * @description It can match the exact name or, if exact and estimate are true, can estimate the match of the movie title relative to the name we're searching for
 */
async function search_movie(
  name: string,
  {
    max_results = 3,
    match_estimate,
    match_exact,
  }: {
    max_results?: number;
    match_exact?: boolean;
    match_estimate?: boolean;
  }
): Promise<Movie[]>

It gets a movie or episode watch playlist url that, for example, you can use in a player like HLS Player

async function get_playlist(
  options: {
    movie_id: Movie["id"];
  } & (
    | {
        episode_id: number;
      }
    | {
        episode_id?: undefined;
      }
  )
): Promise<string>

It can generates a download link for a movie or episode or download it as a buffer that, for example, you can save in a file

async function download(
  master_playlist_url: string,
  return_type: "url" | "buffer"
): Promise<string | Buffer>

NPM

You can find it on npm

Build

You can manually build your version, you'll find the dist in the appropriate folder

npm install
npm run build
1.2.5

6 months ago

1.1.5

7 months ago

1.1.4

7 months ago

1.3.0

6 months ago

1.1.3

7 months ago

1.1.2

7 months ago

1.1.1

8 months ago

1.1.0

9 months ago

1.0.0

9 months ago