sc-wrapper
TypeScript icon, indicating that this package has built-in type declarations

1.4.0 • Public • Published

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.4.02latest

Version History

VersionDownloads (Last 7 Days)Published
1.4.02
1.3.00
1.2.50
1.1.50
1.1.41
1.1.30
1.1.20
1.1.10
1.1.00
1.0.00

Package Sidebar

Install

npm i sc-wrapper

Weekly Downloads

3

Version

1.4.0

License

MIT

Unpacked Size

61.7 kB

Total Files

9

Last publish

Collaborators

  • paolodelfino