Jellyfin Login ✓
This commit is contained in:
@@ -176,8 +176,7 @@ from jellypy import common, helpers
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" id="jellyfin_identifier" name="jellyfin_identifier" value="${config['jellyfin_identifier']}">
|
||||
<a class="btn btn-dark" id="verify-plex-server" href="#" role="button">Verify</a>
|
||||
<a class="btn btn-dark" id="verify-jellyfin-server" href="#" role="button">Verify</a>
|
||||
<span style="margin-left: 10px; display: none;" id="jellyfin-verify-status"></span>
|
||||
</div>
|
||||
|
||||
@@ -185,7 +184,7 @@ from jellypy import common, helpers
|
||||
<h3>Activity Logging</h3>
|
||||
<div class="wizard-input-section">
|
||||
<p class="help-block">
|
||||
Tautulli will keep a history of all streaming activity on your Plex server.
|
||||
JellyPy will keep a history of all streaming activity on your Jellyfin server.
|
||||
</p>
|
||||
</div>
|
||||
<div class="wizard-input-section">
|
||||
@@ -216,7 +215,7 @@ from jellypy import common, helpers
|
||||
<h3>Notifications</h3>
|
||||
<div class="wizard-input-section">
|
||||
<p class="help-block">
|
||||
Tautulli can send a wide variety of notifications to alert you of activity on your Plex
|
||||
JellyPy can send a wide variety of notifications to alert you of activity on your Jellyfin
|
||||
server.
|
||||
</p>
|
||||
<p class="help-block">
|
||||
@@ -225,20 +224,6 @@ from jellypy import common, helpers
|
||||
wizard.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="wizard-card" data-cardname="card7">
|
||||
<h3>Database Import</h3>
|
||||
<div class="wizard-input-section">
|
||||
<p class="help-block">
|
||||
If you have an existing Tautulli, PlexWatch, or Plexivity database, you can import the data
|
||||
into Tautulli.
|
||||
</p>
|
||||
<p class="help-block">
|
||||
To import a database, navigate to the <strong>Settings</strong> page
|
||||
and to the <strong>Import & Backups</strong> tab after you have completed this setup wizard.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<!-- Required fields but hidden -->
|
||||
<div style="display: none;">
|
||||
@@ -266,7 +251,6 @@ from jellypy import common, helpers
|
||||
<input type="text" name="home_stats_cards" id="home_stats_cards" value="first_run_wizard">
|
||||
<input type="text" name="home_library_cards" id="home_library_cards" value="first_run_wizard">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
@@ -308,7 +292,7 @@ from jellypy import common, helpers
|
||||
return retValue;
|
||||
}
|
||||
|
||||
function validatejellyfinip(el) {
|
||||
function validateJellyfinIp(el) {
|
||||
var valid_jellyfin_ip = el.val();
|
||||
var retValue = {};
|
||||
|
||||
@@ -324,7 +308,7 @@ from jellypy import common, helpers
|
||||
return retValue;
|
||||
}
|
||||
|
||||
function validatejellyfintoken(el) {
|
||||
function validateJellyfinToken(el) {
|
||||
var valid_jellyfin_token = el.val();
|
||||
var retValue = {};
|
||||
|
||||
@@ -518,24 +502,27 @@ from jellypy import common, helpers
|
||||
var jellyfin_verified = false;
|
||||
var authenticated = false;
|
||||
|
||||
$("#verify-plex-server").click(function () {
|
||||
$("#verify-jellyfin-server").click(function () {
|
||||
if (!(jellyfin_verified)) {
|
||||
var jellyfin_ip = $("#jellyfin_ip").val().trim();
|
||||
var jellyfin_port = $("#jellyfin_port").val().trim();
|
||||
var jellyfin_identifier = $("#jellyfin_identifier").val();
|
||||
var jellyfin_ssl = $("#jellyfin_ssl").val();
|
||||
var jellyfin_is_remote = $("#jellyfin_is_remote").val();
|
||||
var jellyfin_user = $("#jellyfin_user").val().trim();
|
||||
var jellyfin_password = $("#jellyfin_password").val();
|
||||
|
||||
if ((jellyfin_ip !== '') || (jellyfin_port !== '')) {
|
||||
$("#jellyfin-verify-status").html('<i class="fa fa-refresh fa-spin"></i> Verifying server...');
|
||||
$('#jellyfin-verify-status').fadeIn('fast');
|
||||
$.ajax({
|
||||
url: 'get_server_id',
|
||||
url: 'check_login',
|
||||
data: {
|
||||
hostname: jellyfin_ip,
|
||||
port: jellyfin_port,
|
||||
identifier: jellyfin_identifier,
|
||||
ssl: jellyfin_ssl,
|
||||
remote: jellyfin_is_remote
|
||||
remote: jellyfin_is_remote,
|
||||
user: jellyfin_user,
|
||||
password: jellyfin_password
|
||||
},
|
||||
cache: true,
|
||||
async: true,
|
||||
@@ -549,12 +536,12 @@ from jellypy import common, helpers
|
||||
var identifier = result.identifier;
|
||||
if (identifier) {
|
||||
$("#jellyfin_identifier").val(identifier);
|
||||
$("#jellyfin-verify-status").html('<i class="fa fa-check"></i> Server found!');
|
||||
$("#jellyfin-verify-status").html('<i class="fa fa-check"></i> Login successfull!');
|
||||
$('#jellyfin-verify-status').fadeIn('fast');
|
||||
jellyfin_verified = true;
|
||||
$("#jellyfin_valid").val("valid");
|
||||
} else {
|
||||
$("#jellyfin-verify-status").html('<i class="fa fa-exclamation-circle"></i> This is not a Plex Server!');
|
||||
$("#jellyfin-verify-status").html('<i class="fa fa-exclamation-circle"></i> This is not a Jellyfin Server!');
|
||||
$('#jellyfin-verify-status').fadeIn('fast');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user