Go to file
MBR-0001 f5059a1454
Switch to new RESTful API (#54)
* add rest handler

* base

* 1st release

* code cleanup

* small fix

* store NextReset

* fixes

* cleanup

* logging

* fix logging

* additional check for pagination + moviehash_match

* clean up logging

* code cleanup

* search improvements

* Fix bugs and add hardcoded types

* More fixes

* Remove query since it makes hash matching more accurate

* Improve search with IMDb ID & shows now correctly query

* Remove log

* rename handler

* add login info validation

* small fixes

* Add length check

* Format

* Delete Jellyfin.Plugin.OpenSubtitles.sln.DotSettings.user

* cleanup & use temp api key if provided

* add support for both int & string in SearchResult

* strings

* change JsonElement to int

* code cleanup

* code cleanup

* add account message

* change exception type so it gets logged

* remove unnecessary using

* fix NRE in SearchSubtitlesAsync

* add debug logging & strings

* Use expiration time from JWT

* fix GET params order

* Move body serialization

* Add UpdateUserInfo

* Add back 429 logging

* Fix string formatting

* Replace OpenApiException

* Remove OpenApiException

* Change how download limit reset time is obtained

* Remove Util.OnHttpUpdate

* ApiController fixes & improvements

* Remove Swashbuckle reference

* string comparison

* Util improvements

* Convert fields to properties & add json attributes

* Remove unnecessary properties in ApiResponse

* Add link to API status

* Log more info when ComputeHash fails

* Catch correct exception type

* Use the new reset_time_utc

* code cleanup

* string formatting

Co-authored-by: Cody Robibero <cody@robibe.ro>

* Refactor api key handling

* fix formatting error

* simplify query logging

Co-authored-by: Martijn <martijn@melchers.nu>
Co-authored-by: Martijn <martijnmelchers@gmail.com>
Co-authored-by: Cody Robibero <cody@robibe.ro>
2021-08-28 19:23:32 +02:00
.github Update .github/dependabot.yml 2021-07-11 13:51:52 +02:00
Jellyfin.Plugin.OpenSubtitles Switch to new RESTful API (#54) 2021-08-28 19:23:32 +02:00
OpenSubtitlesHandler Switch to new RESTful API (#54) 2021-08-28 19:23:32 +02:00
.editorconfig update default editorconfig 2021-03-12 19:07:25 +01:00
.gitignore Add analyzers 2021-03-14 08:18:34 -06:00
build.yaml add imageUrl to build.yaml 2021-05-14 16:25:30 +02:00
Jellyfin.Plugin.OpenSubtitles.sln Switch to new RESTful API (#54) 2021-08-28 19:23:32 +02:00
jellyfin.ruleset Add analyzers 2021-03-14 08:18:34 -06:00
LICENSE move solution and change license to GPLv3 for OpenSubtitlesHandler 2019-03-12 01:39:56 +09:00
README.md update readme 2021-05-14 16:24:25 +02:00

Jellyfin OpenSubtitles Plugin

Part of the Jellyfin Project

Plugin Banner

GitHub Workflow Status GPLv3 License Current Release

About

This is a plugin allows you to download subtitles from Open Subtitles for your media.

Installation

See the official documentation for install instructions.

Build

  1. To build this plugin you will need .Net 5.x.

  2. Build plugin with following command

dotnet publish --configuration Release --output bin
  1. Place the dll-file in the plugins/opensubtitles folder (you might need to create the folders) of your JF install

Releasing

To release the plugin we recommend JPRM that will build and package the plugin. For additional context and for how to add the packaged plugin zip to a plugin manifest see the JPRM documentation for more info.

Contributing

We welcome all contributions and pull requests! If you have a larger feature in mind please open an issue so we can discuss the implementation before you start. In general refer to our contributing guidelines for further information.

Licence

This plugins code and packages are distributed under the GPLv3 License. See LICENSE for more information.