94 lines
3.5 KiB
HTML
94 lines
3.5 KiB
HTML
<!doctype html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>Lidarr Spotify Downloader</title>
|
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&display=swap" rel="stylesheet" />
|
|
<link rel="stylesheet" href="/styles.css" />
|
|
</head>
|
|
<body>
|
|
<main class="layout">
|
|
<header class="hero">
|
|
<h1>Spotify zu Lidarr</h1>
|
|
<p>Album aus Spotify suchen, Tracks auswaehlen und direkt an Lidarr schicken.</p>
|
|
</header>
|
|
|
|
<section class="panel settings">
|
|
<h2>Einstellungen</h2>
|
|
<label class="toggle">
|
|
<input type="checkbox" id="cleanupToggle" />
|
|
<span>Ueberfluessige Dateien nach Download loeschen</span>
|
|
</label>
|
|
<div style="margin-top: 0.8rem;">
|
|
<button id="scanLibraryBtn" type="button">Bibliothek scannen</button>
|
|
<button id="updateLibraryBtn" type="button">Lidarr Bibliothek updaten</button>
|
|
<button id="updateFrontendBtn" type="button">Frontend updaten</button>
|
|
</div>
|
|
<p class="hint">
|
|
Wenn nur einzelne Songs gewaehlt sind, versucht die App unnoetige Track-Dateien in Lidarr zu entfernen.
|
|
</p>
|
|
</section>
|
|
|
|
<section class="panel">
|
|
<h2>Playlist importieren</h2>
|
|
<div class="search-row">
|
|
<select id="playlistSource">
|
|
<option value="spotify">Spotify Playlist</option>
|
|
<option value="youtube">YouTube Playlist</option>
|
|
</select>
|
|
<input id="playlistValue" placeholder="Playlist URL oder ID" />
|
|
<button id="importPlaylistBtn" type="button">Importieren</button>
|
|
</div>
|
|
<div id="playlistActions" style="display:none; margin-top:0.8rem;">
|
|
<button id="sendPlaylistBtn" type="button">Auswahl herunterladen</button>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="panel search">
|
|
<h2>Spotify suchen</h2>
|
|
<div class="search-row">
|
|
<select id="searchType">
|
|
<option value="album">Alben</option>
|
|
<option value="track">Tracks</option>
|
|
<option value="artist">Interpreten</option>
|
|
</select>
|
|
<select id="existsFilter">
|
|
<option value="all">Alle</option>
|
|
<option value="exists">Nur vorhanden</option>
|
|
<option value="missing">Nur nicht vorhanden</option>
|
|
</select>
|
|
<input id="query" placeholder="Album oder Artist eingeben" />
|
|
<button id="searchBtn">Suchen</button>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="panel" id="statusPanel">
|
|
<strong>Status:</strong>
|
|
<span id="status">Bereit.</span>
|
|
</section>
|
|
|
|
<section id="results" class="results"></section>
|
|
<section id="jobs" class="panel">
|
|
<h2>Jobs</h2>
|
|
<div id="jobList"></div>
|
|
</section>
|
|
</main>
|
|
|
|
<dialog id="albumDialog">
|
|
<form method="dialog" class="dialog-content">
|
|
<h3 id="dialogTitle"></h3>
|
|
<p id="dialogArtist"></p>
|
|
<div id="trackList" class="track-list"></div>
|
|
<div class="dialog-actions">
|
|
<button value="cancel">Abbrechen</button>
|
|
<button id="sendBtn" value="default">An Lidarr senden</button>
|
|
</div>
|
|
</form>
|
|
</dialog>
|
|
|
|
<script src="/app.js"></script>
|
|
</body>
|
|
</html>
|