GithubHelp home page GithubHelp logo

opensubtitles-api's Introduction

OpenSubtitles.org API Client

build downloads nuget

With Covid-19 pandemic requests for our API went skyrocket, our servers could not handle so much traffic, so we decided to limit API usage just to authenticated requests for User Agents. In short it means, you have to provide opensubtitles.org username and password in LogIn() method.

Installation

## .NET CLI
dotnet add package Topdev.OpenSubtitles.Client

## Package Manager
Install-Package Topdev.OpenSubtitles.Client

Usage

var openSubtitlesApi = new OpenSubtitlesApi();

await openSubtitlesApi.LogInAsync("eng", "OSTestUserAgentTemp", "username", "password");

var subtitles = await openSubtitlesApi.FindSubtitlesAsync(
    SearchMethod.Qeury,
    "Game of thrones s01e01",
    "eng");

await openSubtitlesApi.DownloadSubtitleAsync(subtitles[0], null);

XmlRpcClient

Additionally project contains XmlRpcClient.

var rpcClient = new XmlRpcClient("http://some-rpc-endpoint");
var T = await rpcClient.InvokeAsync<T>("methodName", parameters);

Donations

Please feel free to donate to me. I'm not going to force you to donate, you can use my software completely free of charge and without limitation for any purpose you want. If you really want to give something to me then you are welcome to do so. I don't expect donations, nor do I insist that you give them.

ETH - 22a99ed4ebe631ff87332e6bcdcc6ef5ec01289f

opensubtitles-api's People

Contributors

tomaspavlic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

opensubtitles-api's Issues

Limit search results

Hello, how to search with more results? I tried with many keywords but just return max 5 results

License

Hi,

I wanted to use your library but there is no license included. When you get a chance, can you please add one?
https://choosealicense.com/ is a good reference on picking a license.

Cody

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.