npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@sl-code-lords/movie-api

v1.0.0

Published

Unofficial Sinhalasub.lk API

Downloads

4,798

Readme

📝 Table of Contents

🧐 About

The unofficial Scrap [https://sinhalasub.lk/]

🏁 Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Installing

yarn add @sl-code-lords/movie-api

or

npm i @sl-code-lords/movie-api

🎈 Usage

var { SinhalaSub }  = require('@sl-code-lords/movie-api')

Get Movies/Twshows List

// By Search
var input = 'money heist' //movie or tvshow name
await SinhalaSub.get_list.by_search(input) 

// BY Recently added movies 
var page = 1 //page number
await SinhalaSub.get_list.by_recent_movies(page)

// Get Recently added tvshows list
var page = 1 //page number
await SinhalaSub.get_list.by_recent_tvshows(page)

// Get Movies/Tvshows List By Language
var lang = 'English' // Language ( ex : Sinhala , English , Tamil , Hindi , Kannada , France , Japanese , Telugu , Malayalam , Korean , Other )
var page = 1 //page number
await SinhalaSub.get_list.by_language[lang](page)

// Get Movies/Tvshows List By Genre
var genre = 'Action' // Genre ( ex : History , Thriller , Comedy ,  Horror , Adventure , Science_fiction , Mystery , Animation , Sport ,  Drama , Action , Crime , Romance , Fantasy , Family , War , Adult_only , Short )
var page = 1 //page number
await SinhalaSub.get_list.by_genre[genre](page)

// Get Movies/Tvshows List By Year
var year = '2023' // year
var page = 1 //page number
await SinhalaSub.get_list.by_year(year,page)

// Get Movies/Tvshows List By Actor
var url = 'https://sinhalasub.lk/cast/dhanush/' // cast link
var page = 1 //page number
await SinhalaSub.get_list.by_actor(url,page)

// Get Movies/Tvshows List By Director
var url = 'https://sinhalasub.lk/director/s-s-rajamouli/' // director url
var page = 1 //page number
await SinhalaSub.get_list.by_director(url,page)

//The results will look like this.

{
  status: true,
  code_creator: { name: 'Thisal Sanujaya', github: '@sanuwaofficial' },
  results: [
    {
      title: 'Money Heist (2017 – 2021) Sinhala Subtitles | සිංහල උපසිරසි සමඟ',
      link: 'https://sinhalasub.lk/tvshows/money-heist-2017-sinhala-subtitles/',
      type: 'tvshows'
    },
    {
      title: 'Money Plane (2020) Sinhala Subtitles | සිංහල උපසිරසි සමඟ',
      link: 'https://sinhalasub.lk/movies/money-plane-2020-sinhala-subtitles/',
      type: 'movies'
    },
   2 more...
  ]
}

Get Movie Details and Download Links

var url = 'https://sinhalasub.lk/movies/rrr-2022-sinhala-subtitles/' // movie url
await SinhalaSub.movie(url)
//result
{
  "status": true,
  "code_creator": {
    "name": "Thisal Sanujaya",
    "github": "@sanuwaofficial"
  },
  "result": {
    "title": "RRR (2022) Sinhala Subtitles | සිංහල උපසිරසි සමඟ",
    "subtitle_author": "రౌద్రం రణం రుధిరం",
    "categories": ["Action","Drama","History","Telugu","War"],
    "release_date": "Mar. 24, 2022",
    "country": "India",
    "duration": "187 Min.",
    "IMDb_Rating" : "8.4 ( 60,677 votes )" ,
    "TMDb_Rating" : "8.5 ( 34 votes )" ,
    "director": { "name": "S.S. Rajamouli","link": "https://sinhalasub.lk/director/s-s-rajamouli/"},
    "cast": [
      {"name": "N.T. Rama Rao Jr.","link": "https://sinhalasub.lk/cast/n-t-rama-rao-jr/"},
      {"name": "Ram Charan","link": "https://sinhalasub.lk/cast/ram-charan/"},
      8 more...
    ],
    "desc": "",
    "images": [
      "https://sinhalasub.lk/wp-content/uploads/2022/03/u0XUBNQWlOvrh0Gd97ARGpIkL0-200x300.jpg",
      "https://images.hindustantimes.com/img/2022/04/01/1600x900/RRR-Movie-Review_1648825470847_1648825479894.jpg",
      "https://image.tmdb.org/t/p/original/mQBz0kkJw9gWW1accn1UIPVnvtL.jpg",
     8 more...
    ],
    "dl_links": [
      {
        "quality": "FHD 1080p",
        "size": "4.55 GB",
        "link": "https://001.sinhalaking.tk/0:/Movie/Telugu/RRR%20(2022)/www.SinhalaSub.net%20-%20RRR%20(2022)%20Telugu%20HQ%20HDRip%201080p.mp4"
      },
      {
        "quality": "HD 720p",
        "size": "2.03 GB",
        "link": "https://001.sinhalaking.tk/0:/Movie/Telugu/RRR%20(2022)/www.SinhalaSub.net%20-%20RRR%20(2022)%20Telugu%20HQ%20HDRip%20720p.mp4"
      },
    8 more...
    ]
  }
}

Get Tvshow Details and episode Links

var url = 'https://sinhalasub.lk/tvshows/money-heist-2017-sinhala-subtitles/' // tvshow url
await SinhalaSub.tvshow(url)
//result

{
  status: true,
  code_creator: { name: 'Thisal Sanujaya', github: '@sanuwaofficial' },
  result: {
    title: 'Money Heist (2017 – 2021) Sinhala Subtitles | සිංහල උපසිරසි සමඟ',
    categories: [ 'Crime', 'Drama', 'Spanish'],
    info: {
      Original_title: "La Casa de Papel",
      TMDb_Rating: " 8.3 16,046 votes ",
      First_air_date: "May. 02, 2017",
      Last_air_date: "Dec. 03, 2021",
      Seasons: "3",
      Episodes: "41",
      Average_Duration: "70 minutes "
    },
    cast: [
           { name: 'Álvaro Morte', link: 'https://sinhalasub.lk/cast/alvaro-morte/' },
           { name: 'Úrsula Corberó', link: 'https://sinhalasub.lk/cast/ursula-corbero/' },
           8 more...
          ],
    links: [ 
            [
             { episode: '1 - 1',
               link: 'https://sinhalasub.lk/episodes/money-heist-s1e1/'},
             {
              episode: '1 - 2',
              link: 'https://sinhalasub.lk/episodes/money-heist-s1e2/' },
             11 more...
           ], 
           [
             { episode: '2 - 1',
               link: 'https://sinhalasub.lk/episodes/money-heist-s2e1/'},
             { episode: '2 - 2',
               link: 'https://sinhalasub.lk/episodes/money-heist-s2e2/' },
             7 more...
           ],
            3 more... 
          ]
  }
}

Get Episode Details and download Links

var url = 'https://sinhalasub.lk/episodes/money-heist-s2e2/' // episode url
await SinhalaSub.episode(url)
//result
{
  "status": true,
  "code_creator": {
    "name": "Thisal Sanujaya",
    "github": "@sanuwaofficial"
  },
  "result": {
    "title": "Money Heist (2017 – 2021) Sinhala Subtitles | සිංහල උපසිරසි සමඟ: 2x2",
    "desc": "The Professor recruits Martin to put his brother’s plan into action and target the Bank of Spain. First step? Create total chaos.",
    "release_date": "Jul. 19, 2019",
    "images": [
      "https://image.tmdb.org/t/p/original/wg7nd7r0Iptr2W8kW37OSed1C4q.jpg",
      "https://image.tmdb.org/t/p/original/cwFuj35BzUNWSNSoAyOscwpAT2n.jpg"
    ],
    "dl_links": [
      {
        "quality": "HD 720p",
        "size": "470 MB",
        "link": "https://001.sinhalaking.tk/0:/TV/Money%20Heist%20(TV%20Series%202017%E2%80%932021)/S02/www.SinhalaSub.net%20-%20La.Casa.de.Papel.S02E02%20WEBRip%20720p.mp4"
      },
      {
        "quality": "HD 720p",
        "size": "470 MB",
        "link": "https://002.sinhalaking.tk/0:/TV/Money%20Heist%20(TV%20Series%202017%E2%80%932021)/S02/www.SinhalaSub.net%20-%20La.Casa.de.Papel.S02E02%20WEBRip%20720p.mp4"
      },
      {
        "quality": "HD 720p",
        "size": "470 MB",
        "link": "https://003.sinhalaking.tk/0:/TV/Money%20Heist%20(TV%20Series%202017%E2%80%932021)/S02/www.SinhalaSub.net%20-%20La.Casa.de.Papel.S02E02%20WEBRip%20720p.mp4"
      }
    ]
  }
}

✍️ Authors

See also the list of contributors who participated in this project.