Files
Scrobbler/frontend/import.html
T
mattandClaude Sonnet 5.5 65ee13fa65 Rename the product Scrobbled
Display name only: UI, docs, API title, dashboards, hashtag and User-Agent.
Identifiers (package, metrics, env vars, SCROBBLER_CONFIG) are unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 21:21:55 +01:00

58 lines
2.7 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Import · Scrobbled</title>
<link rel="icon" href="favicon.ico" sizes="48x48">
<link rel="icon" href="favicon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="apple-touch-icon.png">
<link rel="manifest" href="site.webmanifest">
<meta name="theme-color" content="#1F1C28">
<link rel="stylesheet" href="css/style.css">
<script src="config.js"></script>
<script type="module" src="js/import.js"></script>
</head>
<body>
<header class="site-header" id="site-header"></header>
<main id="main">
<h1 class="page-title">Import history</h1>
<p class="lede">Bring in your Last.fm history. Plays that are already here are skipped, so importing the same history twice is safe.</p>
<div id="messages"></div>
<div class="import-sources">
<section aria-labelledby="file-title">
<h2 id="file-title">From an export file</h2>
<p class="muted">A CSV from lastfm-to-csv, any CSV with artist, track and date columns, or a JSON export of your scrobbles. Gzipped files work too.</p>
<form id="file-form" class="stacked-form">
<div class="field">
<label for="file">Export file</label>
<input id="file" name="file" type="file" accept=".csv,.tsv,.txt,.json,.gz" required>
<span class="hint" id="file-limit"></span>
</div>
<div class="upload-progress" id="upload-progress" hidden>
<div class="bar" aria-hidden="true"><div class="bar-fill"></div></div>
<span class="muted" role="status"></span>
</div>
<button class="button" type="submit">Upload and import</button>
</form>
</section>
<section aria-labelledby="lastfm-title" id="lastfm-section" hidden>
<h2 id="lastfm-title">Straight from Last.fm</h2>
<p class="muted">Copies the public scrobble history of a Last.fm account. Large histories take a few minutes; you can leave this page while it runs.</p>
<form id="lastfm-form" class="stacked-form">
<div class="field">
<label for="lastfm-username">Last.fm username</label>
<input id="lastfm-username" name="username" required maxlength="64" autocomplete="off" spellcheck="false">
</div>
<button class="button" type="submit">Import from Last.fm</button>
</form>
</section>
</div>
<section aria-labelledby="jobs-title">
<h2 id="jobs-title" class="section-head">Your imports</h2>
<ul class="rows" id="jobs"></ul>
</section>
</main>
</body>
</html>