Skip to content

Alternative front-end to search & download Sinhala subtitles from various sites.

Notifications You must be signed in to change notification settings

ipmanlk/BettercopeLK

Repository files navigation

BettercopeLK

Better way to search & download Sinhala subtitles

Disclaimer: This project is an experiment involving Go programming, deployment methods, and platforms. It offers Sinhala subtitle search and download features, but please be cautious as it may not receive regular updates and is not meant for production use. Its functionality and availability may change without prior notice.

Online versions

Currently supported sites

Requirements

  • Go 1.20+

Usage

  1. Clone this repository using Git or download as a zip file.

  2. Run go run main.go to start the server.

API Documentation

URL: https://bettercopelk.navinda.xyz/api

Supported source names:

  • baiscopelk
  • cineru
  • piratelk

Search subtitles (SSE endpoint)

GET /search?query=movie_name

  • Description: Get a list of subtitles for a given movie name. This is a Server-Sent Events (SSE) endpoint.
  • Method: GET

Download subtitle

GET /download?postUrl=subtitle_post_url&source=source_name

  • Description: Download a subtitle from a given source.
  • Method: GET
  • Response Content-Type: application/zip

Bulk download subtitles

POST /bulk-download

  • Description: Download multiple subtitles as a single zip file.
  • Method: POST
  • Request Format: JSON
    {
      "data": [
        {
          "postUrl": "subtitle_post_url",
          "source": "source_name"
        },
        {
          "postUrl": "subtitle_post_url",
          "source": "source_name"
        }
      ]
    }
  • Response Content-Type: application/zip

Screenshots