2020-04-30 02:24:41 +00:00
|
|
|
{% extends '_main.html' %}
|
|
|
|
|
|
|
|
{% block title %}Providers - Bazarr{% endblock %}
|
|
|
|
|
|
|
|
{% block page_head %}
|
|
|
|
|
|
|
|
{% endblock page_head %}
|
|
|
|
|
|
|
|
{% block bcleft %}
|
|
|
|
<div class="">
|
|
|
|
<button class="btn btn-outline" id="save_button">
|
|
|
|
<div>
|
|
|
|
<span class="fa-stack">
|
|
|
|
<i class="fas fa-save fa-stack-2x align-top text-themecolor text-center font-20" aria-hidden="true"></i>
|
|
|
|
<i id="save_button_checkmark" class="fas fa-check fa-stack-2x" style="color:green;"></i>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="align-bottom text-themecolor small text-center">Save</div>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
{% endblock bcleft %}
|
|
|
|
|
|
|
|
{% block bcright %}
|
|
|
|
|
|
|
|
{% endblock bcright %}
|
|
|
|
|
|
|
|
{% block body %}
|
|
|
|
<div class="container-fluid" style="padding-top: 3em;">
|
|
|
|
<form class="form" name="settings_form" id="settings_form">
|
|
|
|
<h4>Providers</h4>
|
|
|
|
<hr/>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3 text-right">
|
2020-05-21 01:55:12 +00:00
|
|
|
<b>Addic7ed</b>
|
2020-04-30 02:24:41 +00:00
|
|
|
</div>
|
2020-05-21 01:55:12 +00:00
|
|
|
<div class="form-group col-sm-8">
|
2020-04-30 02:24:41 +00:00
|
|
|
<label class="custom-control custom-checkbox">
|
|
|
|
<input type="checkbox" class="custom-control-input provider" id="addic7ed">
|
2020-05-21 01:55:12 +00:00
|
|
|
<span class="custom-control-label restart">Requires Anti-Captcha Provider</span>
|
2020-04-30 02:24:41 +00:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="addic7ed_div">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-4 text-right">
|
|
|
|
<b>Username</b>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-4">
|
|
|
|
<input type="text" class="form-control" id="settings-addic7ed-username" name="settings-addic7ed-username" value="{{settings.addic7ed.username}}">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-4 text-right">
|
|
|
|
<b>Password</b>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-4">
|
|
|
|
<input type="password" class="form-control" id="settings-addic7ed-password" name="settings-addic7ed-password" value="{{settings.addic7ed.password}}">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3 text-right">
|
|
|
|
<b>Argenteam</b>
|
|
|
|
</div>
|
2020-05-21 01:55:12 +00:00
|
|
|
<div class="form-group col-sm-8">
|
2020-04-30 02:24:41 +00:00
|
|
|
<label class="custom-control custom-checkbox">
|
|
|
|
<input type="checkbox" class="custom-control-input provider" id="argenteam">
|
2020-05-21 01:55:12 +00:00
|
|
|
<span class="custom-control-label">Spanish Subtitles Provider.</span>
|
2020-04-30 02:24:41 +00:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3 text-right">
|
|
|
|
<b>Assrt</b>
|
|
|
|
</div>
|
2020-05-21 01:55:12 +00:00
|
|
|
<div class="form-group col-sm-8">
|
2020-04-30 02:24:41 +00:00
|
|
|
<label class="custom-control custom-checkbox">
|
|
|
|
<input type="checkbox" class="custom-control-input provider" id="assrt">
|
2020-05-21 01:55:12 +00:00
|
|
|
<span class="custom-control-label">Chinese Subtitles Provider.</span>
|
2020-04-30 02:24:41 +00:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="assrt_div">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-4 text-right">
|
|
|
|
<b>Token</b>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-4">
|
|
|
|
<input type="text" class="form-control" id="settings-assrt-token" name="settings-assrt-token" value="{{settings.assrt.token}}">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3 text-right">
|
|
|
|
<b>BetaSeries</b>
|
|
|
|
</div>
|
2020-05-21 01:55:12 +00:00
|
|
|
<div class="form-group col-sm-8">
|
2020-04-30 02:24:41 +00:00
|
|
|
<label class="custom-control custom-checkbox">
|
|
|
|
<input type="checkbox" class="custom-control-input provider" id="betaseries">
|
2020-05-21 01:55:12 +00:00
|
|
|
<span class="custom-control-label">French/English provider for TV Shows only.</span>
|
2020-04-30 02:24:41 +00:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="betaseries_div">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-4 text-right">
|
2020-07-19 23:20:19 +00:00
|
|
|
<b>API Key</b>
|
2020-04-30 02:24:41 +00:00
|
|
|
</div>
|
|
|
|
<div class="col-sm-4">
|
|
|
|
<input type="text" class="form-control" id="settings-betaseries-token" name="settings-betaseries-token" value="{{settings.betaseries.token}}">
|
2020-07-19 23:20:19 +00:00
|
|
|
<a href="https://www.betaseries.com/api/" target="_blank">API key generation page</a>
|
2020-04-30 02:24:41 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3 text-right">
|
|
|
|
<b>BSplayer</b>
|
|
|
|
</div>
|
|
|
|
<div class="form-group col-sm-1">
|
|
|
|
<label class="custom-control custom-checkbox">
|
|
|
|
<input type="checkbox" class="custom-control-input provider" id="bsplayer">
|
|
|
|
<span class="custom-control-label"></span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3 text-right">
|
|
|
|
<b>GreekSubtitles</b>
|
|
|
|
</div>
|
2020-05-21 01:55:12 +00:00
|
|
|
<div class="form-group col-sm-8">
|
2020-04-30 02:24:41 +00:00
|
|
|
<label class="custom-control custom-checkbox">
|
|
|
|
<input type="checkbox" class="custom-control-input provider" id="greeksubtitles">
|
2020-05-21 01:55:12 +00:00
|
|
|
<span class="custom-control-label">Greek Subtitles Provider.</span>
|
2020-04-30 02:24:41 +00:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3 text-right">
|
|
|
|
<b>Hosszupuska</b>
|
|
|
|
</div>
|
2020-05-21 01:55:12 +00:00
|
|
|
<div class="form-group col-sm-8">
|
2020-04-30 02:24:41 +00:00
|
|
|
<label class="custom-control custom-checkbox">
|
|
|
|
<input type="checkbox" class="custom-control-input provider" id="hosszupuska">
|
2020-05-21 01:55:12 +00:00
|
|
|
<span class="custom-control-label">Hungarian Subtitles Provider.</span>
|
2020-04-30 02:24:41 +00:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3 text-right">
|
|
|
|
<b>LegendasDivx</b>
|
|
|
|
</div>
|
2020-05-21 01:55:12 +00:00
|
|
|
<div class="form-group col-sm-8">
|
2020-04-30 02:24:41 +00:00
|
|
|
<label class="custom-control custom-checkbox">
|
|
|
|
<input type="checkbox" class="custom-control-input provider" id="legendasdivx">
|
2020-05-21 01:55:12 +00:00
|
|
|
<span class="custom-control-label">Brazilian & Portuguese Subtitles Provider.</span>
|
2020-04-30 02:24:41 +00:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="legendasdivx_div">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-4 text-right">
|
|
|
|
<b>Username</b>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-4">
|
|
|
|
<input type="text" class="form-control" id="settings-legendasdivx-username" name="settings-legendasdivx-username" value="{{settings.legendasdivx.username}}">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-4 text-right">
|
|
|
|
<b>Password</b>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-4">
|
|
|
|
<input type="password" class="form-control" id="settings-legendasdivx-password" name="settings-legendasdivx-password" value="{{settings.legendasdivx.password}}">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br>
|
2020-05-09 19:16:29 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-4 text-right">
|
|
|
|
<b>Skip wrong FPS</b>
|
|
|
|
</div>
|
|
|
|
<div class="form-group col-sm-1">
|
|
|
|
<label class="custom-control custom-checkbox">
|
|
|
|
<input type="checkbox" class="custom-control-input" id="settings-legendasdivx-skip_wrong_fps" name="settings-legendasdivx-skip_wrong_fps">
|
|
|
|
<span class="custom-control-label"></span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br>
|
2020-04-30 02:24:41 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3 text-right">
|
|
|
|
<b>LegendasTV</b>
|
|
|
|
</div>
|
2020-05-21 01:55:12 +00:00
|
|
|
<div class="form-group col-sm-8">
|
2020-04-30 02:24:41 +00:00
|
|
|
<label class="custom-control custom-checkbox">
|
|
|
|
<input type="checkbox" class="custom-control-input provider" id="legendastv">
|
2020-05-21 01:55:12 +00:00
|
|
|
<span class="custom-control-label">Brazilian Portuguese Subtitles Provider.</span>
|
2020-04-30 02:24:41 +00:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="legendastv_div">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-4 text-right">
|
|
|
|
<b>Username</b>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-4">
|
|
|
|
<input type="text" class="form-control" id="settings-legendastv-username" name="settings-legendastv-username" value="{{settings.legendastv.username}}">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-4 text-right">
|
|
|
|
<b>Password</b>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-4">
|
|
|
|
<input type="password" class="form-control" id="settings-legendastv-password" name="settings-legendastv-password" value="{{settings.legendastv.password}}">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3 text-right">
|
|
|
|
<b>Napiprojekt</b>
|
|
|
|
</div>
|
2020-05-21 01:55:12 +00:00
|
|
|
<div class="form-group col-sm-8">
|
2020-04-30 02:24:41 +00:00
|
|
|
<label class="custom-control custom-checkbox">
|
|
|
|
<input type="checkbox" class="custom-control-input provider" id="napiprojekt">
|
2020-05-21 01:55:12 +00:00
|
|
|
<span class="custom-control-label">Polish Subtitles Provider.</span>
|
2020-04-30 02:24:41 +00:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3 text-right">
|
|
|
|
<b>Napisy24</b>
|
|
|
|
</div>
|
2020-05-21 01:55:12 +00:00
|
|
|
<div class="form-group col-sm-8">
|
2020-04-30 02:24:41 +00:00
|
|
|
<label class="custom-control custom-checkbox">
|
|
|
|
<input type="checkbox" class="custom-control-input provider" id="napisy24">
|
2020-05-21 01:55:12 +00:00
|
|
|
<span class="custom-control-label">Polish Subtitles Provider.</span>
|
2020-04-30 02:24:41 +00:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="napisy24_div">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-4 text-right">
|
|
|
|
<b>Username</b>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-4">
|
|
|
|
<input type="text" class="form-control" id="settings-napisy24-username" name="settings-napisy24-username" value="{{settings.napisy24.username}}">
|
2020-06-16 15:06:14 +00:00
|
|
|
<label>The Provided Credentials Must Have API Access. Leave empty to use the defaults.</label>
|
2020-04-30 02:24:41 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-4 text-right">
|
|
|
|
<b>Password</b>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-4">
|
|
|
|
<input type="password" class="form-control" id="settings-napisy24-password" name="settings-napisy24-password" value="{{settings.napisy24.password}}">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3 text-right">
|
|
|
|
<b>Nekur</b>
|
|
|
|
</div>
|
2020-05-21 01:55:12 +00:00
|
|
|
<div class="form-group col-sm-8">
|
2020-04-30 02:24:41 +00:00
|
|
|
<label class="custom-control custom-checkbox">
|
|
|
|
<input type="checkbox" class="custom-control-input provider" id="nekur">
|
2020-05-21 01:55:12 +00:00
|
|
|
<span class="custom-control-label">Latvian Subtitles Provider.</span>
|
2020-04-30 02:24:41 +00:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3 text-right">
|
2020-05-18 23:28:21 +00:00
|
|
|
<b>OpenSubtitles.org</b>
|
2020-04-30 02:24:41 +00:00
|
|
|
</div>
|
|
|
|
<div class="form-group col-sm-1">
|
|
|
|
<label class="custom-control custom-checkbox">
|
|
|
|
<input type="checkbox" class="custom-control-input provider" id="opensubtitles">
|
|
|
|
<span class="custom-control-label"></span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="opensubtitles_div">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-4 text-right">
|
|
|
|
<b>Username</b>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-4">
|
|
|
|
<input type="text" class="form-control" id="settings-opensubtitles-username" name="settings-opensubtitles-username" value="{{settings.opensubtitles.username}}">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-4 text-right">
|
|
|
|
<b>Password</b>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-4">
|
|
|
|
<input type="password" class="form-control" id="settings-opensubtitles-password" name="settings-opensubtitles-password" value="{{settings.opensubtitles.password}}">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-4 text-right">
|
|
|
|
<b>VIP</b>
|
|
|
|
</div>
|
|
|
|
<div class="form-group col-sm-1">
|
|
|
|
<label class="custom-control custom-checkbox">
|
|
|
|
<input type="checkbox" class="custom-control-input" id="settings-opensubtitles-vip" name="settings-opensubtitles-vip">
|
|
|
|
<span class="custom-control-label"></span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-4 text-right">
|
|
|
|
<b>Use SSL</b>
|
|
|
|
</div>
|
|
|
|
<div class="form-group col-sm-1">
|
|
|
|
<label class="custom-control custom-checkbox">
|
|
|
|
<input type="checkbox" class="custom-control-input" id="settings-opensubtitles-ssl" name="settings-opensubtitles-ssl">
|
|
|
|
<span class="custom-control-label"></span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-4 text-right">
|
|
|
|
<b>Skip wrong FPS</b>
|
|
|
|
</div>
|
|
|
|
<div class="form-group col-sm-1">
|
|
|
|
<label class="custom-control custom-checkbox">
|
|
|
|
<input type="checkbox" class="custom-control-input" id="settings-opensubtitles-skip_wrong_fps" name="settings-opensubtitles-skip_wrong_fps">
|
|
|
|
<span class="custom-control-label"></span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3 text-right">
|
|
|
|
<b>Podnapisi</b>
|
|
|
|
</div>
|
|
|
|
<div class="form-group col-sm-1">
|
|
|
|
<label class="custom-control custom-checkbox">
|
|
|
|
<input type="checkbox" class="custom-control-input provider" id="podnapisi">
|
|
|
|
<span class="custom-control-label"></span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3 text-right">
|
|
|
|
<b>RegieLive</b>
|
|
|
|
</div>
|
2020-05-21 01:55:12 +00:00
|
|
|
<div class="form-group col-sm-8">
|
2020-04-30 02:24:41 +00:00
|
|
|
<label class="custom-control custom-checkbox">
|
|
|
|
<input type="checkbox" class="custom-control-input provider" id="regielive">
|
2020-05-21 01:55:12 +00:00
|
|
|
<span class="custom-control-label">Romanian Subtitles Provider.</span>
|
2020-04-30 02:24:41 +00:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-07-21 04:28:34 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3 text-right">
|
|
|
|
<b>Sous-Titres.eu</b>
|
|
|
|
</div>
|
|
|
|
<div class="form-group col-sm-8">
|
|
|
|
<label class="custom-control custom-checkbox">
|
|
|
|
<input type="checkbox" class="custom-control-input provider" id="soustitreseu">
|
|
|
|
<span class="custom-control-label">Mostly French Subtitles Provider.</span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-04-30 02:24:41 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3 text-right">
|
|
|
|
<b>Subdivx</b>
|
|
|
|
</div>
|
2020-05-21 01:55:12 +00:00
|
|
|
<div class="form-group col-sm-8">
|
2020-04-30 02:24:41 +00:00
|
|
|
<label class="custom-control custom-checkbox">
|
|
|
|
<input type="checkbox" class="custom-control-input provider" id="subdivx">
|
2020-05-21 01:55:12 +00:00
|
|
|
<span class="custom-control-label">Spanish Subtitles Provider.</span>
|
2020-04-30 02:24:41 +00:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3 text-right">
|
|
|
|
<b>Subs.sab.bz</b>
|
|
|
|
</div>
|
2020-05-21 01:55:12 +00:00
|
|
|
<div class="form-group col-sm-8">
|
2020-04-30 02:24:41 +00:00
|
|
|
<label class="custom-control custom-checkbox">
|
|
|
|
<input type="checkbox" class="custom-control-input provider" id="subssabbz">
|
2020-05-30 14:26:26 +00:00
|
|
|
<span class="custom-control-label">Bulgarian Subtitles Provider.</span>
|
2020-04-30 02:24:41 +00:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3 text-right">
|
|
|
|
<b>Subs4Free</b>
|
|
|
|
</div>
|
2020-05-21 01:55:12 +00:00
|
|
|
<div class="form-group col-sm-8">
|
2020-04-30 02:24:41 +00:00
|
|
|
<label class="custom-control custom-checkbox">
|
|
|
|
<input type="checkbox" class="custom-control-input provider" id="subs4free">
|
2020-05-21 01:55:12 +00:00
|
|
|
<span class="custom-control-label">Greek Subtitles Provider.</span>
|
2020-04-30 02:24:41 +00:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3 text-right">
|
|
|
|
<b>Subs4Series</b>
|
|
|
|
</div>
|
2020-05-21 01:55:12 +00:00
|
|
|
<div class="form-group col-sm-8">
|
2020-04-30 02:24:41 +00:00
|
|
|
<label class="custom-control custom-checkbox">
|
|
|
|
<input type="checkbox" class="custom-control-input provider" id="subs4series">
|
2020-05-21 01:55:12 +00:00
|
|
|
<span class="custom-control-label">Greek Subtitles Provider.</span>
|
2020-04-30 02:24:41 +00:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3 text-right">
|
2020-05-21 01:55:12 +00:00
|
|
|
<b>Subscene</b>
|
2020-04-30 02:24:41 +00:00
|
|
|
</div>
|
2020-05-21 01:55:12 +00:00
|
|
|
<div class="form-group col-sm-8">
|
2020-04-30 02:24:41 +00:00
|
|
|
<label class="custom-control custom-checkbox">
|
|
|
|
<input type="checkbox" class="custom-control-input provider" id="subscene">
|
2020-05-21 01:55:12 +00:00
|
|
|
<span class="custom-control-label restart">Requires Anti-Captcha Provider</span>
|
2020-04-30 02:24:41 +00:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="subscene_div">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-4 text-right">
|
|
|
|
<b>Username</b>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-4">
|
|
|
|
<input type="text" class="form-control" id="settings-subscene-username" name="settings-subscene-username" value="{{settings.subscene.username}}">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-4 text-right">
|
|
|
|
<b>Password</b>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-4">
|
|
|
|
<input type="password" class="form-control" id="settings-subscene-password" name="settings-subscene-password" value="{{settings.subscene.password}}">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3 text-right">
|
|
|
|
<b>Subscenter</b>
|
|
|
|
</div>
|
|
|
|
<div class="form-group col-sm-1">
|
|
|
|
<label class="custom-control custom-checkbox">
|
|
|
|
<input type="checkbox" class="custom-control-input provider" id="subscenter">
|
|
|
|
<span class="custom-control-label"></span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3 text-right">
|
|
|
|
<b>Subsunacs.net</b>
|
|
|
|
</div>
|
2020-05-21 01:55:12 +00:00
|
|
|
<div class="form-group col-sm-8">
|
2020-04-30 02:24:41 +00:00
|
|
|
<label class="custom-control custom-checkbox">
|
|
|
|
<input type="checkbox" class="custom-control-input provider" id="subsunacs">
|
2020-05-30 14:26:26 +00:00
|
|
|
<span class="custom-control-label">Bulgarian Subtitles Provider.</span>
|
2020-04-30 02:24:41 +00:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3 text-right">
|
|
|
|
<b>subtitri.id.lv</b>
|
|
|
|
</div>
|
2020-05-21 01:55:12 +00:00
|
|
|
<div class="form-group col-sm-8">
|
2020-04-30 02:24:41 +00:00
|
|
|
<label class="custom-control custom-checkbox">
|
|
|
|
<input type="checkbox" class="custom-control-input provider" id="subtitriid">
|
2020-05-21 01:55:12 +00:00
|
|
|
<span class="custom-control-label">Latvian Subtitles Provider.</span>
|
2020-04-30 02:24:41 +00:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3 text-right">
|
|
|
|
<b>Subtitulamos.tv</b>
|
|
|
|
</div>
|
2020-05-21 01:55:12 +00:00
|
|
|
<div class="form-group col-sm-8">
|
2020-04-30 02:24:41 +00:00
|
|
|
<label class="custom-control custom-checkbox">
|
|
|
|
<input type="checkbox" class="custom-control-input provider" id="subtitulamostv">
|
2020-05-21 01:55:12 +00:00
|
|
|
<span class="custom-control-label">Spanish subtitles provider.</span>
|
2020-09-30 17:39:25 +00:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3 text-right">
|
|
|
|
<b>Sucha</b>
|
|
|
|
</div>
|
|
|
|
<div class="form-group col-sm-8">
|
|
|
|
<label class="custom-control custom-checkbox">
|
|
|
|
<input type="checkbox" class="custom-control-input provider" id="sucha">
|
|
|
|
<span class="custom-control-label">Spanish subtitles provider.</span>
|
2020-04-30 02:24:41 +00:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3 text-right">
|
|
|
|
<b>Supersubtitles</b>
|
|
|
|
</div>
|
|
|
|
<div class="form-group col-sm-1">
|
|
|
|
<label class="custom-control custom-checkbox">
|
|
|
|
<input type="checkbox" class="custom-control-input provider" id="supersubtitles">
|
|
|
|
<span class="custom-control-label"></span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3 text-right">
|
|
|
|
<b>Titlovi</b>
|
|
|
|
</div>
|
|
|
|
<div class="form-group col-sm-1">
|
|
|
|
<label class="custom-control custom-checkbox">
|
|
|
|
<input type="checkbox" class="custom-control-input provider" id="titlovi">
|
|
|
|
<span class="custom-control-label"></span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="titlovi_div">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-4 text-right">
|
|
|
|
<b>Username</b>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-4">
|
|
|
|
<input type="text" class="form-control" id="settings-titlovi-username" name="settings-titlovi-username" value="{{settings.titlovi.username}}">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-4 text-right">
|
|
|
|
<b>Password</b>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-4">
|
|
|
|
<input type="password" class="form-control" id="settings-titlovi-password" name="settings-titlovi-password" value="{{settings.titlovi.password}}">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3 text-right">
|
|
|
|
<b>Titrari.ro</b>
|
|
|
|
</div>
|
|
|
|
<div class="form-group col-sm-1">
|
|
|
|
<label class="custom-control custom-checkbox">
|
|
|
|
<input type="checkbox" class="custom-control-input provider" id="titrari">
|
|
|
|
<span class="custom-control-label"></span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3 text-right">
|
|
|
|
<b>TVSubtitles</b>
|
|
|
|
</div>
|
|
|
|
<div class="form-group col-sm-1">
|
|
|
|
<label class="custom-control custom-checkbox">
|
|
|
|
<input type="checkbox" class="custom-control-input provider" id="tvsubtitles">
|
|
|
|
<span class="custom-control-label"></span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3 text-right">
|
|
|
|
<b>Wizdom</b>
|
|
|
|
</div>
|
2020-05-21 01:55:12 +00:00
|
|
|
<div class="form-group col-sm-8">
|
2020-04-30 02:24:41 +00:00
|
|
|
<label class="custom-control custom-checkbox">
|
|
|
|
<input type="checkbox" class="custom-control-input provider" id="wizdom">
|
2020-05-21 01:55:12 +00:00
|
|
|
<span class="custom-control-label">Wizdom.xyz Subtitles Provider.</span>
|
2020-04-30 02:24:41 +00:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3 text-right">
|
|
|
|
<b>XSubs</b>
|
|
|
|
</div>
|
2020-05-21 01:55:12 +00:00
|
|
|
<div class="form-group col-sm-8">
|
2020-04-30 02:24:41 +00:00
|
|
|
<label class="custom-control custom-checkbox">
|
|
|
|
<input type="checkbox" class="custom-control-input provider" id="xsubs">
|
2020-05-21 01:55:12 +00:00
|
|
|
<span class="custom-control-label">Greek Subtitles Provider.</span>
|
2020-04-30 02:24:41 +00:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="xsubs_div">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-4 text-right">
|
|
|
|
<b>Username</b>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-4">
|
|
|
|
<input type="text" class="form-control" id="settings-xsubs-username" name="settings-xsubs-username" value="{{settings.xsubs.username}}">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-4 text-right">
|
|
|
|
<b>Password</b>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-4">
|
|
|
|
<input type="password" class="form-control" id="settings-xsubs-password" name="settings-xsubs-password" value="{{settings.xsubs.password}}">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3 text-right">
|
|
|
|
<b>Yavka.net</b>
|
|
|
|
</div>
|
2020-05-21 01:55:12 +00:00
|
|
|
<div class="form-group col-sm-8">
|
2020-04-30 02:24:41 +00:00
|
|
|
<label class="custom-control custom-checkbox">
|
|
|
|
<input type="checkbox" class="custom-control-input provider" id="yavkanet">
|
2020-05-30 14:26:26 +00:00
|
|
|
<span class="custom-control-label">Bulgarian Subtitles Provider.</span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3 text-right">
|
|
|
|
<b>YIFY Subtitles</b>
|
|
|
|
</div>
|
|
|
|
<div class="form-group col-sm-8">
|
|
|
|
<label class="custom-control custom-checkbox">
|
|
|
|
<input type="checkbox" class="custom-control-input provider" id="yifysubtitles">
|
|
|
|
<span class="custom-control-label"></span>
|
2020-04-30 02:24:41 +00:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3 text-right">
|
|
|
|
<b>Zimuku</b>
|
|
|
|
</div>
|
2020-05-21 01:55:12 +00:00
|
|
|
<div class="form-group col-sm-8">
|
2020-04-30 02:24:41 +00:00
|
|
|
<label class="custom-control custom-checkbox">
|
|
|
|
<input type="checkbox" class="custom-control-input provider" id="zimuku">
|
2020-05-21 01:55:12 +00:00
|
|
|
<span class="custom-control-label">Chinese Subtitles Provider.</span>
|
2020-04-30 02:24:41 +00:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
{% endblock body %}
|
|
|
|
|
|
|
|
{% block tail %}
|
|
|
|
<script>
|
|
|
|
$(document).ready(function () {
|
2020-05-02 13:15:25 +00:00
|
|
|
// Show warning if there's unsaved changes in the settings_form
|
|
|
|
var form_changed = false;
|
|
|
|
$(window).on('beforeunload', function() {
|
|
|
|
if (form_changed) {
|
|
|
|
return "";
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2020-04-30 02:24:41 +00:00
|
|
|
// Hide checkmark over save button
|
|
|
|
$('#save_button_checkmark').hide();
|
2020-05-07 11:39:59 +00:00
|
|
|
$('#save_button').prop('disabled', true).css('cursor', 'not-allowed');
|
2020-04-30 02:24:41 +00:00
|
|
|
|
|
|
|
// Hide *_div on Select input changed to None
|
|
|
|
$('.provider').on('change', function() {
|
|
|
|
if ($(this).prop('checked')) {
|
|
|
|
$("[id=" + $(this).attr('id') + "_div]").show();
|
|
|
|
} else {
|
|
|
|
$("[id=" + $(this).attr('id') + "_div]").hide();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
// Set Checkbox input values
|
|
|
|
$('.provider').prop('checked', false).trigger('change');
|
2020-05-04 11:27:22 +00:00
|
|
|
{% if settings.general.enabled_providers %}
|
2020-04-30 02:24:41 +00:00
|
|
|
$('{{settings.general.enabled_providers}}'.split(',')).each( function(i, item) {
|
|
|
|
$("[id=" + item + "]").prop('checked', true).trigger('change');
|
|
|
|
})
|
2020-05-04 11:27:22 +00:00
|
|
|
{% endif %}
|
2020-04-30 02:24:41 +00:00
|
|
|
|
|
|
|
$('#settings-opensubtitles-vip').prop('checked', {{'true' if settings.opensubtitles.getboolean('vip') else 'false'}});
|
|
|
|
$('#settings-opensubtitles-ssl').prop('checked', {{'true' if settings.opensubtitles.getboolean('ssl') else 'false'}});
|
|
|
|
$('#settings-opensubtitles-skip_wrong_fps').prop('checked', {{'true' if settings.opensubtitles.getboolean('skip_wrong_fps') else 'false'}});
|
2020-05-09 19:16:29 +00:00
|
|
|
$('#settings-legendasdivx-skip_wrong_fps').prop('checked', {{'true' if settings.legendasdivx.getboolean('skip_wrong_fps') else 'false'}});
|
2020-04-30 02:24:41 +00:00
|
|
|
|
|
|
|
$('#save_button').on('click', function() {
|
|
|
|
var formdata = new FormData(document.getElementById("settings_form"));
|
|
|
|
|
|
|
|
// Add enabled providers
|
|
|
|
var enabled_providers = $(".provider").map(function () {
|
|
|
|
if ($(this).prop('checked')) {
|
|
|
|
return $(this).attr('id');
|
|
|
|
}
|
|
|
|
}).get().join(',');
|
|
|
|
formdata.append('settings-general-enabled_providers', enabled_providers)
|
|
|
|
|
|
|
|
// Make sure all checkbox input are sent with true/false value
|
|
|
|
$('input[type=checkbox]').each(function () {
|
|
|
|
formdata.set($(this).prop('id'), $(this).prop('checked'));
|
|
|
|
});
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
url: "{{ url_for('api.savesettings') }}",
|
|
|
|
data: formdata,
|
|
|
|
processData: false,
|
|
|
|
contentType: false,
|
|
|
|
type: 'POST',
|
|
|
|
complete: function () {
|
|
|
|
$('#save_button_checkmark').show();
|
2020-05-02 13:15:25 +00:00
|
|
|
form_changed = false;
|
2020-05-07 11:39:59 +00:00
|
|
|
$('#save_button').prop('disabled', true).css('cursor', 'not-allowed');
|
2020-04-30 02:24:41 +00:00
|
|
|
setTimeout(
|
|
|
|
function()
|
|
|
|
{
|
|
|
|
$('#save_button_checkmark').hide();
|
|
|
|
}, 2000);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
2020-05-02 13:15:25 +00:00
|
|
|
|
|
|
|
// monitor changes to the settings_form
|
|
|
|
$('#settings_form').on('change', function() {
|
|
|
|
form_changed = true;
|
2020-05-07 11:39:59 +00:00
|
|
|
$('#save_button').prop('disabled', false).css('cursor', 'auto');
|
2020-05-02 13:15:25 +00:00
|
|
|
})
|
2020-04-30 02:24:41 +00:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{% endblock tail %}
|