Coder Social home page Coder Social logo

kirovair / superliminal Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 6 KB

Small http app for Subliminal subtitle downloader to use with Sonarr / Radarr webhooks.

Home Page: https://hub.docker.com/r/kirovair/superliminal/

Python 100.00%
radarr sonarr docker subliminal

superliminal's Introduction

Superliminal

Small http app for Subliminal subtitle downloader to use with Sonarr / Radarr webhooks.

Why?

When you don't want to touch/alter the official Docker images of Sonarr / Radarr it's impossible to neatly integrate Subliminal next to those as another container. (At least without dirty container privilege haxx) This is simply a small webservice on top of the official Subliminal container which listens for Sonarr / Radarr webhook requests and then runs Subliminal on the downloaded file accordingly.

Some limitions

  • This will not pro-actively search for subtitles afterwards. It's a simple fix to use Subliminal in a Docker container too and never intended to be more.
  • For best results movie/series files should not be renamed.

Installation

  • Setup this Docker container next to your other Sonarr / Radarr container(s).
  • Make sure you map the /config volume to something you can access. Also map your video folders EXACTLY the same way you have in your Sonarr / Radarr containers. (Ex: /videos /tv /anime should be accessible using the same volume paths!)
  • Run the superliminal container and edit arguments.txt (found in /config) accordingly.
  • Add the webhook in Sonarr / Radarr

Example of arguments.txt

{
    "default": "--cache-dir /config --addic7ed YOURUSERNAME YOURPASSWORD --opensubtitles YOURUSERNAME YOURPASSWORD download -p addic7ed -p opensubtitles -l nl -m 85 -v \"#FILE#\"",
    "sonarr": null,
    "radarr": null
}

Then #FILE# will be replaced with the complete filepath of a tv show of movie after downloading. If you want different Subliminal parameters for Sonarr or Radarr use the corresponding values accordingly. The default parameters will be used when sonarr / radarr is null.

Add a webhook in Radarr/Sonarr

Go in Settings to configure a "Connect" WebHook:

  • Settings > Connect > add WebHook notification
  • Select On Download and On Upgrade
  • URL: http://<ip address>:<port>/
  • Example: http://192.168.2.2:8978/
  • Method: POST

Contribute

This was intended for personal use and it 'works-for-me โ„ข' so just shoot a pull request / issue if you see room for improvement. Tested on a Synology DS216+II with 8GB RAM.

Troubleshooting

Check the logs in /config for any pointers on what is wrong. :D

superliminal's People

Contributors

kirovair avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

superliminal's Issues

No media file found in request

Hi,

Thanks for this docker image that looks great.

I configured it following the readme and got this error :

INFO:werkzeug:172.17.0.6 - - [17/May/2018 11:00:34] "POST / HTTP/1.0" 400 -
WARNING:root:No media file found in request

How can I get more information ?

Thanks

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.