All Projects → gielcobben → caption-core

gielcobben / caption-core

Licence: MIT License
Caption Core acts as an abstraction layer for Caption’s core functionality.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to caption-core

nekocap
Browser extension for creating & uploading community captions for YouTube, niconico and other video sharing sites.
Stars: ✭ 27 (-18.18%)
Mutual labels:  subtitles, caption
Ffsubsync
Automagically synchronize subtitles with video.
Stars: ✭ 5,167 (+15557.58%)
Mutual labels:  subtitles, caption
version-check
An action that allows you to check whether your npm package version has been updated
Stars: ✭ 65 (+96.97%)
Mutual labels:  package
laravel-any
🏓 Laravel collection macro that determine if `any` item from the collection passes the given truth test.
Stars: ✭ 38 (+15.15%)
Mutual labels:  package
pidesktop
Collected files, drivers and documentation for the pidesktop case
Stars: ✭ 26 (-21.21%)
Mutual labels:  package
cookiecutter-pypackage
A cookiecutter template for Python package with heavy use of Github actions
Stars: ✭ 19 (-42.42%)
Mutual labels:  package
get-installed-path
Get locally or globally installation path of given package name.
Stars: ✭ 39 (+18.18%)
Mutual labels:  package
badgecreatr
Quickly place relevant badges at the top of your readme, stop copy pasting, start on your project
Stars: ✭ 61 (+84.85%)
Mutual labels:  package
atom-package-sync
Synchronize your atom packages and settings easily
Stars: ✭ 22 (-33.33%)
Mutual labels:  package
action-autotag
Automatically generate a new tag when the manifest file (package.json, Dockerfile, custom file, etc) version changes.
Stars: ✭ 45 (+36.36%)
Mutual labels:  package
grammarly
Grammarly API interface
Stars: ✭ 87 (+163.64%)
Mutual labels:  package
Arch-Data-Science
Archlinux PKGBUILDs for Data Science, Machine Learning, Deep Learning, NLP and Computer Vision
Stars: ✭ 92 (+178.79%)
Mutual labels:  package
normalize-pkg
Normalize values in package.json to improve compatibility, programmatic readability and usefulness with third party libs.
Stars: ✭ 18 (-45.45%)
Mutual labels:  package
chromecast-api
📺 Chromecast Node.js module
Stars: ✭ 122 (+269.7%)
Mutual labels:  subtitles
LiteOTP
Multi OTP Spam Amp/Paralell threads
Stars: ✭ 50 (+51.52%)
Mutual labels:  package
menu button
Flutter plugin to display a popup menu button widget with handsome design and easy to use.
Stars: ✭ 64 (+93.94%)
Mutual labels:  package
angular-package-builder
[DEPRECATED] Packages your Angular 4+ library based on the Angular Package Format.
Stars: ✭ 25 (-24.24%)
Mutual labels:  package
react-double-marquee
A React marquee component that smoothly loops content.
Stars: ✭ 24 (-27.27%)
Mutual labels:  package
sound field analysis-py
Analyze, visualize and process sound field data recorded by spherical microphone arrays.
Stars: ✭ 61 (+84.85%)
Mutual labels:  package
ContactEtc
Laraval package to instantly add a customisable contact form to your site.
Stars: ✭ 21 (-36.36%)
Mutual labels:  package

icon
Caption Core


banner

INTRODUCTION

Caption Core acts as an abstraction layer for Caption’s core functionality. This allows third parties to add new sources or update existing ones. By introducing a simple but powerful API, all other modules that rely on Caption’s core will be able to upgrade smoothly.

View Caption.


🛠 Install

Setup:
npm install --save caption-core
ES6
import Caption from "caption-core";
CommonJS
const Caption = require("caption-core");

⚡️ Contribute

Caption Core is completely open-source. We've tried to make it as easy as possible to contribute. If you'd like to help out by adding sources or assisting in other parts of development, here's how to get started:

To begin working locally:
  1. Fork this repository to your own GitHub account
  2. Clone it to your local device: git clone [email protected]:gielcobben/caption-core.git
  3. Install the dependencies: npm install
  4. Build the module using Rollup: npm run build
  5. Run one of the examples: node examples/search.js.

📦 Sources

Caption currently uses 2 sources to gather subtitles. We're continuously adding sources, but the app's open-source nature also allows you to add your own when desired.

Standard sources:
  • OpenSubtitles
  • Addic7ed

🔎 Search by query

Code:
const Caption = require("caption-core");

const ENGLISH = "eng";
const LIMIT = 10;

Caption.searchByQuery("Comedians in Cars", ENGLISH, LIMIT)
  .on("fastest", subtitles => {
    // Fastest source has been checked.
  })
  .on("completed", subtitles => {
    // All sources are checked.
  });
Output:
[
  {
    name: "Comedians in Cars.HDTV.x264.srt",
    download: "http://dl.opensubtitles.org/en/download/...",
    extention: "",
    source: "opensubtitles",
    size: "",
    score: 4,
  },
  {
    name: "Comedians in Cars.1080p.WEB-DL.H264.srt",
    download: "http://dl.opensubtitles.org/en/download/...",
    extention: "",
    source: "opensubtitles",
    size: "",
    score: 3,
  },
];

🎞 Search by file

Code:
const Caption = require("caption-core");

const ENGLISH = "eng";
const LIMIT = 10;

Caption.searchByFiles(
  [
    "~/Movies/Comedians in Cars.S01E01.mp4",
    "~/Movies/Comedians in Cars.S01E02.mp4",
  ],
  ENGLISH,
  LIMIT,
).on("completed", subtitles => {
  // All sources are checked.
});
Output:
[
  {
    name: "Comedians in Cars.HDTV.x264.srt",
    download: "http://dl.opensubtitles.org/en/download/...",
    extention: "",
    source: "opensubtitles",
    size: "",
    score: 4,
  },
  {
    name: "Comedians in Cars.1080p.WEB-DL.H264.srt",
    download: "http://dl.opensubtitles.org/en/download/...",
    extention: "",
    source: "addic7ed",
    size: "",
    score: 3,
  },
];

📺 Download subtitle

Code:
const Caption = require("caption-core");

Caption.download(
  {
    name: "Comedians in Cars.HDTV.x264.srt",
    download: "http://dl.opensubtitles.org/en/download/...",
    extention: "",
    source: "opensubtitles",
    size: "",
    score: 4,
  },
  "opensubtitles",
  "~/Movies/Comedians in Cars.S01E01.srt",
);

⭐️ Links

Authors:
Repositories:

🔑 License

MIT © Giel Cobben & Vernon de Goede

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].