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.
- Go 1.20+
-
Clone this repository using Git or download as a zip file.
-
Run
go run main.go
to start the server.
URL: https://bettercopelk.navinda.xyz/api
Supported source names:
baiscopelk
cineru
piratelk
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
GET /download?postUrl=subtitle_post_url&source=source_name
- Description: Download a subtitle from a given source.
- Method: GET
- Response Content-Type:
application/zip
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