mirror of
https://github.com/pvrzz/atmosphere.git
synced 2026-11-29 05:22:26 +00:00
c5c3357666
Ten tabs in three groups, opened from the sidebar, Ctrl+, or the engine chip. It remembers the last tab and scroll position, closes with Esc or the backdrop, and fits every window size.
457 lines
37 KiB
HTML
457 lines
37 KiB
HTML
<!doctype html>
|
||
<!-- atmosphere · index.html · Window markup: onboarding, sidebar, Get / Downloads views, the settings modal and the save-as menu. -->
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="utf-8" />
|
||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||
<title>Atmosphere</title>
|
||
<link rel="stylesheet" href="styles.css" />
|
||
</head>
|
||
<body>
|
||
<header class="titlebar" id="titlebar" data-tauri-drag-region>
|
||
<div class="tb-drag" data-tauri-drag-region></div>
|
||
<div class="tb-controls" id="winControls">
|
||
<button class="tb-btn" id="winMin" aria-label="Minimize" title="Minimize"><svg viewBox="0 0 10 10" aria-hidden="true"><path d="M0 5.5h10" /></svg></button>
|
||
<button class="tb-btn" id="winMax" aria-label="Maximize" title="Maximize"><svg viewBox="0 0 10 10" aria-hidden="true"><rect x="0.5" y="0.5" width="9" height="9" /></svg></button>
|
||
<button class="tb-btn close" id="winClose" aria-label="Close" title="Close"><svg viewBox="0 0 10 10" aria-hidden="true"><path d="M0.5 0.5l9 9M9.5 0.5l-9 9" /></svg></button>
|
||
</div>
|
||
</header>
|
||
<div class="shell" id="shell" inert>
|
||
<aside class="sidebar" id="sidebar">
|
||
<div class="side-brand" data-tauri-drag-region>
|
||
<span class="brand-full" data-tauri-drag-region>
|
||
<img class="lockup lockup-light" src="assets/lockup-light.svg" alt="Atmosphere" width="132" height="30" draggable="false" data-tauri-drag-region />
|
||
<img class="lockup lockup-dark" src="assets/lockup-dark.svg" alt="Atmosphere" width="132" height="30" draggable="false" data-tauri-drag-region />
|
||
</span>
|
||
<img class="brand-mark" src="assets/mark.svg" alt="Atmosphere" width="30" height="25" draggable="false" data-tauri-drag-region />
|
||
<button class="icon-btn side-toggle" id="sideToggle" type="button" aria-label="Collapse sidebar" aria-expanded="true" data-tip="Collapse sidebar (Ctrl+B)"><span class="i" data-icon="layout-sidebar-left-collapse"></span></button>
|
||
</div>
|
||
<nav class="nav" aria-label="Main">
|
||
<button class="nav-item" data-lib="home"><span class="i" data-icon="home"></span><span>Home</span></button>
|
||
<button class="nav-item" id="navSearch" type="button"><span class="i" data-icon="search"></span><span>Search</span><kbd>Ctrl K</kbd></button>
|
||
<button class="nav-item" data-nav="get"><span class="i" data-icon="cloud-download"></span><span>Get</span><kbd>Ctrl L</kbd></button>
|
||
<button class="nav-item" data-nav="downloads" id="navDownloads">
|
||
<span class="nav-ring" aria-hidden="true"><svg viewBox="0 0 20 20"><circle class="track" cx="10" cy="10" r="8.5"/><circle class="fill" id="navRing" cx="10" cy="10" r="8.5"/></svg><span class="i" data-icon="download"></span></span>
|
||
<span>Downloads</span><span class="count" id="navCount" hidden></span>
|
||
</button>
|
||
</nav>
|
||
|
||
<div class="nav-group">
|
||
<h2 class="nav-heading">Library</h2>
|
||
<nav class="nav" aria-label="Library">
|
||
<button class="nav-item" data-lib="songs"><span class="i" data-icon="music"></span><span>Songs</span></button>
|
||
<button class="nav-item" data-lib="albums"><span class="i" data-icon="disc"></span><span>Albums</span></button>
|
||
<button class="nav-item" data-lib="artists"><span class="i" data-icon="microphone-2"></span><span>Artists</span></button>
|
||
<button class="nav-item" data-lib="liked"><span class="i" data-icon="heart"></span><span>Liked</span></button>
|
||
<button class="nav-item" data-lib="stats"><span class="i" data-icon="chart-bar"></span><span>Stats</span></button>
|
||
</nav>
|
||
</div>
|
||
|
||
<div class="nav-group grow">
|
||
<div class="nav-heading-row">
|
||
<h2 class="nav-heading">Playlists</h2>
|
||
<button class="icon-btn" id="newPlaylistBtn" aria-label="New playlist or add a folder" title="New playlist or add a folder" aria-haspopup="menu"><span class="i" data-icon="plus"></span></button>
|
||
</div>
|
||
<nav class="nav playlist-nav" id="playlistNav" aria-label="Playlists"></nav>
|
||
<p class="fetched-empty" id="playlistEmpty">Playlists are folders on this device. Use + to make one or add a folder you already have.</p>
|
||
</div>
|
||
|
||
<div class="sidebar-foot">
|
||
<button class="nav-item" id="settingsBtn" data-settings="" aria-haspopup="dialog"><span class="i" data-icon="settings"></span><span>Settings</span><kbd>Ctrl ,</kbd></button>
|
||
<button class="update-chip" id="updateChip" hidden></button>
|
||
<button class="engine-state" id="engineState" data-settings="engine" aria-haspopup="dialog"></button>
|
||
</div>
|
||
</aside>
|
||
|
||
<main class="main">
|
||
<section class="view view-get" data-view="get">
|
||
<header class="command">
|
||
<form class="command-bar" id="commandForm" autocomplete="off">
|
||
<span class="i command-glyph" id="commandGlyph" data-icon="link"></span>
|
||
<input id="commandInput" spellcheck="false" placeholder="Paste a link, or search YouTube and SoundCloud" aria-label="Link or search" />
|
||
<div class="scope" id="searchScope" role="radiogroup" aria-label="Search on" hidden>
|
||
<button type="button" role="radio" data-scope="youtube" aria-checked="true">YouTube</button>
|
||
<button type="button" role="radio" data-scope="soundcloud" aria-checked="false">SoundCloud</button>
|
||
</div>
|
||
<button class="btn primary" id="commandGo" type="submit"><span class="label">Fetch</span><span class="spin" aria-hidden="true"></span></button>
|
||
</form>
|
||
<div class="clip" id="clipChip" hidden>
|
||
<span class="i" data-icon="clipboard"></span>
|
||
<span>Copied link</span>
|
||
<code id="clipUrl"></code>
|
||
<button class="btn small" id="clipUse">Fetch it</button>
|
||
<button class="icon-btn" id="clipDismiss" aria-label="Dismiss"><span class="i" data-icon="x"></span></button>
|
||
</div>
|
||
<div class="fetched-strip" id="fetchedStrip" hidden>
|
||
<ul class="fetched-list" id="fetchedList"></ul>
|
||
<button class="link-btn" id="clearFetched" hidden>Clear</button>
|
||
</div>
|
||
<p id="fetchedEmpty" hidden></p>
|
||
</header>
|
||
|
||
<div class="get-scroll" id="getScroll">
|
||
<div class="banner" id="engineBanner" hidden>
|
||
<span class="i" data-icon="alert-circle"></span>
|
||
<div><strong>Atmosphere needs its download engine.</strong> <span id="engineBannerText">yt-dlp reads links from 1,000+ sites. It takes about a minute to set up.</span></div>
|
||
<button class="btn" id="engineBannerBtn">Set up engine</button>
|
||
</div>
|
||
|
||
<div class="empty-get" id="emptyGet">
|
||
<div class="empty-art" aria-hidden="true"><img src="assets/mark.svg" alt="" width="120" height="100" /></div>
|
||
<h1>Paste a link to begin</h1>
|
||
<p>Drop in anything you have the rights to keep. Atmosphere reads it, shows you exactly what's available, and saves it tagged and named.</p>
|
||
<ul class="examples">
|
||
<li><span class="i" data-icon="music"></span><div><strong>A track or video</strong><span>Saved as one file, with its cover and details.</span></div></li>
|
||
<li><span class="i" data-icon="disc"></span><div><strong>An album, EP or playlist</strong><span>Detected, numbered in order, kept in one folder.</span></div></li>
|
||
<li><span class="i" data-icon="user-circle"></span><div><strong>A profile or channel</strong><span>Every upload, listed so you can pick.</span></div></li>
|
||
<li><span class="i" data-icon="file-music"></span><div><strong>A direct file link</strong><span>Links ending in .mp3, .wav, .flac, .mp4 and more, checked and read for their real quality and tags.</span></div></li>
|
||
</ul>
|
||
<p class="hint">Tip: drag a link onto this window, or press <kbd>Ctrl V</kbd> anywhere.</p>
|
||
</div>
|
||
|
||
<article class="sheet" id="sheet" hidden></article>
|
||
</div>
|
||
|
||
<footer class="commit" id="commit" hidden>
|
||
<button class="save-as" id="saveAsBtn" aria-haspopup="dialog" aria-expanded="false">
|
||
<span class="save-as-label">Save as</span>
|
||
<span class="save-as-value" id="saveAsValue">Best quality</span>
|
||
<span class="i" data-icon="chevron-down"></span>
|
||
</button>
|
||
<button class="dest" id="destBtn" title="Change where downloads are saved">
|
||
<span class="i" data-icon="folder"></span>
|
||
<span class="dest-path" id="destPath"></span>
|
||
</button>
|
||
<select id="destPlaylist" class="dest-playlist" aria-label="Also add to a playlist" title="Also add finished downloads to a playlist folder"><option value="">No playlist</option></select>
|
||
<label class="attest">
|
||
<input type="checkbox" id="attest" />
|
||
<span id="attestText">I have the rights to this</span>
|
||
</label>
|
||
<button class="btn primary big" id="downloadBtn" disabled>Download</button>
|
||
</footer>
|
||
</section>
|
||
|
||
<section class="view view-library" data-view="library" hidden>
|
||
<div class="lib-scroll" id="libScroll"><div id="libView"></div></div>
|
||
</section>
|
||
|
||
<section class="view view-downloads" data-view="downloads" hidden>
|
||
<header class="view-head">
|
||
<div>
|
||
<h1>Downloads</h1>
|
||
<p class="view-sub" id="downloadsSub">Nothing in progress</p>
|
||
</div>
|
||
<div class="row">
|
||
<button class="btn" id="openFolderBtn"><span class="i" data-icon="folder-open"></span>Open folder</button>
|
||
<button class="btn danger-ghost" id="cancelAllBtn" hidden>Cancel all</button>
|
||
</div>
|
||
</header>
|
||
<div class="downloads-scroll">
|
||
<section id="activeGroups" class="groups"></section>
|
||
<section class="history" id="historySection">
|
||
<div class="history-head">
|
||
<h2>Recent</h2>
|
||
<button class="link-btn" id="clearHistory">Clear history</button>
|
||
</div>
|
||
<div id="historyList"></div>
|
||
</section>
|
||
<div class="empty-downloads" id="emptyDownloads">
|
||
<span class="i" data-icon="arrow-down-circle"></span>
|
||
<h2>Nothing here yet</h2>
|
||
<p>Files you download appear here, with a shortcut to find them on disk.</p>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
</main>
|
||
</div>
|
||
|
||
<footer class="player idle" id="player">
|
||
<div class="np">
|
||
<div id="npArt"></div>
|
||
<div class="np-text"><button class="np-title link" id="npTitle">Nothing playing</button><span class="np-artist" id="npArtist"></span></div>
|
||
<span id="npLike"></span>
|
||
</div>
|
||
<div class="transport">
|
||
<div class="controls">
|
||
<button class="icon-btn" id="shuffleBtn" aria-label="Shuffle" aria-pressed="false" title="Shuffle"><span class="i" data-icon="arrows-shuffle"></span></button>
|
||
<button class="icon-btn" id="prevBtn" aria-label="Previous" title="Previous (Ctrl ←)"><span class="i" data-icon="player-skip-back-filled"></span></button>
|
||
<button class="play-btn" id="playBtn" aria-label="Play"></button>
|
||
<button class="icon-btn" id="nextBtn" aria-label="Next" title="Next (Ctrl →)"><span class="i" data-icon="player-skip-forward-filled"></span></button>
|
||
<button class="icon-btn" id="repeatBtn" aria-label="Repeat" aria-pressed="false"></button>
|
||
</div>
|
||
<div class="seek-row"><span class="time" id="tCur">0:00</span><input type="range" id="seek" class="range" min="0" max="1000" value="0" aria-label="Seek" /><span class="time" id="tDur">0:00</span></div>
|
||
</div>
|
||
<div class="np-tools">
|
||
<button class="icon-btn" id="fxBtn" aria-label="Sound and effects" aria-pressed="false" aria-expanded="false" title="Sound, presets, pitch and tempo"><span class="i" data-icon="adjustments-horizontal"></span></button>
|
||
<button class="icon-btn" id="lyricsBtn" aria-label="Lyrics" aria-pressed="false" title="Lyrics (L)"><span class="i" data-icon="microphone"></span></button>
|
||
<button class="icon-btn" id="queueBtn" aria-label="Queue" aria-pressed="false" title="Queue (Q)"><span class="i" data-icon="list"></span></button>
|
||
<button class="icon-btn" id="sleepBtn" aria-label="Sleep timer" aria-pressed="false" title="Sleep timer" aria-haspopup="menu"><span class="i" data-icon="moon"></span></button>
|
||
<button class="icon-btn" id="videoBtn" aria-label="Show the music video" aria-pressed="false" title="Music video (V)" hidden><span class="i" data-icon="video"></span></button>
|
||
<button class="icon-btn" id="miniBtn" aria-label="Mini player" title="Mini player (P)"><span class="i" data-icon="picture-in-picture"></span></button>
|
||
<button class="icon-btn" id="tvBtn" aria-label="TV mode" title="TV mode (F)"><span class="i" data-icon="device-tv"></span></button>
|
||
<button class="icon-btn" id="muteBtn" aria-label="Mute"></button>
|
||
<input type="range" id="volume" class="range vol" min="0" max="100" value="85" aria-label="Volume" />
|
||
</div>
|
||
</footer>
|
||
|
||
<aside class="drawer-panel" id="lyricsPanel" aria-label="Lyrics" hidden></aside>
|
||
<aside class="drawer-panel" id="queuePanel" aria-label="Queue" hidden></aside>
|
||
<div class="fx" id="fxPanel" role="dialog" aria-label="Sound and effects" hidden></div>
|
||
<div class="tv" id="tv" hidden></div>
|
||
<div class="mini" id="mini" hidden></div>
|
||
|
||
<div class="save-menu" id="saveMenu" role="dialog" aria-label="Save as" hidden></div>
|
||
<div class="menu" id="typeMenu" role="menu" hidden></div>
|
||
|
||
<div class="onboarding" id="onboarding" hidden>
|
||
<div class="ob-card">
|
||
<img class="ob-mark" src="assets/mark.svg" alt="" width="96" height="80" />
|
||
<ol class="ob-steps" aria-label="Setup steps"><li class="on" id="obStep1Dot">Your responsibility</li><li id="obStep2Dot">Engine</li></ol>
|
||
|
||
<section class="ob-step" id="obStep1">
|
||
<h1>Welcome to Atmosphere</h1>
|
||
<p class="lede">It saves audio and video you're allowed to keep. Before you start, please confirm each of these.</p>
|
||
<label class="pledge"><input type="checkbox" class="pledge-check" /><span>I'll only download media I <b>own</b>, that the <b>rights holder has allowed</b> me to download, or that's under a licence that permits it, such as artist-enabled downloads or Creative Commons.</span></label>
|
||
<label class="pledge"><input type="checkbox" class="pledge-check" /><span>I understand that downloading without permission can infringe copyright and break a site's terms, and that <b>I'm responsible</b> for how I use Atmosphere.</span></label>
|
||
<label class="pledge"><input type="checkbox" class="pledge-check" /><span>I won't share downloaded media unless its licence or the rights holder allows it.</span></label>
|
||
<button class="btn primary big wide" id="obAccept" disabled>Agree and continue</button>
|
||
</section>
|
||
|
||
<section class="ob-step" id="obStep2" hidden>
|
||
<h1>Set up the engine</h1>
|
||
<p class="lede">Atmosphere uses two trusted open-source tools: <b>yt-dlp</b> reads links from 1,000+ sites, and <b>ffmpeg</b> converts and tags files. Both are downloaded from their official releases and checksum-verified.</p>
|
||
<div class="ob-tools" id="obTools"></div>
|
||
<div class="row end">
|
||
<button class="btn ghost" id="obSkip">I'll do this later</button>
|
||
<button class="btn primary big" id="obInstall">Set up both</button>
|
||
</div>
|
||
</section>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="set-wrap" id="settingsModal" hidden>
|
||
<div class="set-modal" role="dialog" aria-modal="true" aria-labelledby="setTitle">
|
||
<nav class="set-rail" aria-label="Settings sections">
|
||
<h2 class="nav-heading">Listening</h2>
|
||
<button class="nav-item set-tab" type="button" data-tab="playback" aria-controls="setp-playback"><span class="i" data-icon="headphones"></span><span>Playback</span></button>
|
||
<button class="nav-item set-tab" type="button" data-tab="lyrics" aria-controls="setp-lyrics"><span class="i" data-icon="microphone"></span><span>Lyrics</span></button>
|
||
<button class="nav-item set-tab" type="button" data-tab="library" aria-controls="setp-library"><span class="i" data-icon="books"></span><span>Library</span></button>
|
||
<h2 class="nav-heading">Downloads</h2>
|
||
<button class="nav-item set-tab" type="button" data-tab="downloads" aria-controls="setp-downloads"><span class="i" data-icon="download"></span><span>Downloads</span></button>
|
||
<button class="nav-item set-tab" type="button" data-tab="network" aria-controls="setp-network"><span class="i" data-icon="world"></span><span>Sign-in & network</span></button>
|
||
<button class="nav-item set-tab" type="button" data-tab="engine" aria-controls="setp-engine"><span class="i" data-icon="tool"></span><span>Engine</span></button>
|
||
<h2 class="nav-heading">App</h2>
|
||
<button class="nav-item set-tab" type="button" data-tab="general" aria-controls="setp-general"><span class="i" data-icon="settings"></span><span>General</span></button>
|
||
<button class="nav-item set-tab" type="button" data-tab="discord" aria-controls="setp-discord"><span class="i" data-icon="brand-discord"></span><span>Discord</span></button>
|
||
<button class="nav-item set-tab" type="button" data-tab="connections" aria-controls="setp-connections"><span class="i" data-icon="plug-connected"></span><span>Connections</span></button>
|
||
<button class="nav-item set-tab" type="button" data-tab="storage" aria-controls="setp-storage"><span class="i" data-icon="database"></span><span>Storage</span></button>
|
||
</nav>
|
||
<div class="set-main">
|
||
<header class="set-head">
|
||
<div class="set-head-text"><h1 id="setTitle">Settings</h1><span class="saved" id="savedFlag" aria-live="polite"></span></div>
|
||
<button class="set-close" id="settingsClose" type="button" aria-label="Close settings" title="Close (Esc)"><span class="set-close-x"><span class="i" data-icon="x"></span></span><span class="set-close-key" aria-hidden="true">Esc</span></button>
|
||
</header>
|
||
<div class="set-scroll" id="settingsScroll">
|
||
<div class="settings">
|
||
<section class="set-panel" id="setp-playback" data-panel="playback" aria-labelledby="setTitle" hidden>
|
||
<span class="set-anchor" id="set-playback"></span>
|
||
<div class="group">
|
||
<div class="setting">
|
||
<div><strong>Crossfade</strong><span id="xfNote">Off. The next song is always loaded ahead, so songs play back to back with no gap.</span></div>
|
||
<div class="slider-row"><input type="range" class="range" id="xfRange" min="0" max="12" step="1" value="0" aria-label="Crossfade length" /><span class="slider-val" id="xfVal">Off</span></div>
|
||
</div>
|
||
<label class="setting"><div><strong>Even out volume</strong><span>Plays quiet and loud songs at a similar level, like streaming apps do. Each song is measured once; your files aren't changed.</span></div><input type="checkbox" class="switch" id="levelToggle" /></label>
|
||
</div>
|
||
</section>
|
||
<section class="set-panel" id="setp-lyrics" data-panel="lyrics" aria-labelledby="setTitle" hidden>
|
||
<span class="set-anchor" id="set-lyrics"></span>
|
||
<p class="set-note">Sources are tried top to bottom until synced lyrics are found. Reorder them with the arrows.</p>
|
||
<div class="group" id="lyricsProviders"></div>
|
||
<div class="group gap-top">
|
||
<div class="setting"><div><strong>Musixmatch API key</strong><span>A developer API key from developer.musixmatch.com (free tier available). Stays on this device.</span></div><input class="text" type="password" data-key="musixmatchKey" placeholder="Not set" spellcheck="false" autocomplete="off" /></div>
|
||
<label class="setting"><div><strong>Soft focus around the current line</strong><span>Blurs synced lyrics more the further they are from what's being sung. Hover any line to read it clearly.</span></div><input type="checkbox" class="switch" id="lyricsBlurToggle" /></label>
|
||
<label class="setting"><div><strong>Save lyrics with downloads</strong><span>Writes a synced .lrc file next to each song you download, when lyrics are found.</span></div><input type="checkbox" class="switch" data-key="lyricsOnDownload" /></label>
|
||
</div>
|
||
<h2 class="sub">Custom sources</h2>
|
||
<div class="group" id="customProviders"></div>
|
||
</section>
|
||
<section class="set-panel" id="setp-library" data-panel="library" aria-labelledby="setTitle" hidden>
|
||
<span class="set-anchor" id="set-library"></span>
|
||
<div class="group" id="libFolders"></div>
|
||
<div class="group gap-top">
|
||
<div class="setting"><div><strong>Playlist folders live in</strong><span id="playlistsDir"></span></div></div>
|
||
<label class="setting"><div><strong>Find artist photos, bios and logos</strong><span>Looks up artist names on Deezer, Wikipedia, Wikidata and TheAudioDB, which need no account or key. Nothing else is sent, and you can change or remove anything on an artist's page.</span></div><input type="checkbox" class="switch" data-key="artistInfo" /></label>
|
||
<div class="setting" id="hiddenSongs"></div>
|
||
<label class="setting"><div><strong>Copy songs into playlists</strong><span>Off: songs are hard-linked, so they appear in the folder without using extra space (same drive only). On: real copies, which are best for syncing to phones and USB drives.</span></div><input type="checkbox" class="switch" data-key="playlistCopy" /></label>
|
||
</div>
|
||
</section>
|
||
<section class="set-panel" id="setp-downloads" data-panel="downloads" aria-labelledby="setTitle" hidden>
|
||
<span class="set-anchor" id="set-downloads"></span>
|
||
<h2 id="set-files">Files</h2>
|
||
<div class="group">
|
||
<div class="setting">
|
||
<div><strong>Save to</strong><span id="setDir"></span></div>
|
||
<button class="btn" id="setDirBtn">Change…</button>
|
||
</div>
|
||
<label class="setting"><div><strong>Prefer official audio</strong><span>When you save only the sound of a YouTube music video, use the artist's official audio upload if there is one, since videos often have intros, effects or a different mix.</span></div><input type="checkbox" class="switch" data-key="preferOfficialAudio" /></label>
|
||
<label class="setting"><div><strong>Give albums and playlists their own folder</strong><span>Albums go in Albums, playlists in Playlists (so they show up as playlists), and single songs in Tracks.</span></div><input type="checkbox" class="switch" data-key="collectionFolders" /></label>
|
||
<label class="setting"><div><strong>Number tracks in albums and playlists</strong><span>Keeps files sorted in their original order.</span></div><input type="checkbox" class="switch" data-key="numberTracks" /></label>
|
||
<div class="setting stack">
|
||
<div><strong>File names</strong><span>Click a token to add it. Preview: <code id="templatePreview"></code></span></div>
|
||
<input class="text" data-key="filenameTemplate" id="templateInput" spellcheck="false" />
|
||
<div class="tokens" id="tokens"></div>
|
||
</div>
|
||
<label class="setting"><div><strong>Skip anything downloaded before</strong><span>Remembers what you've saved, even after files are moved.</span></div><input type="checkbox" class="switch" data-key="skipDownloaded" /></label>
|
||
<div class="setting">
|
||
<div><strong>Downloads at once</strong><span>Albums and playlists always start in track order.</span></div>
|
||
<div class="stepper"><button type="button" data-step="-1" aria-label="Fewer">−</button><output id="concValue">3</output><button type="button" data-step="1" aria-label="More">+</button></div>
|
||
</div>
|
||
</div>
|
||
<h2 id="set-tags">Tags</h2>
|
||
<div class="group">
|
||
<label class="setting"><div><strong>Write metadata and cover art</strong><span>Title, artist, album, track number, date and artwork, plus any edits you make.</span></div><input type="checkbox" class="switch" data-key="embedMetadata" /></label>
|
||
<label class="setting"><div><strong>Keep chapters</strong><span>When the source has them (mixes, long videos).</span></div><input type="checkbox" class="switch" data-key="embedChapters" /></label>
|
||
</div>
|
||
<h2 id="set-video">Video</h2>
|
||
<div class="group">
|
||
<label class="setting"><div><strong>Embed subtitles</strong><span>When available, in these languages:</span></div><input type="checkbox" class="switch" data-key="embedSubtitles" /></label>
|
||
<div class="setting"><div><strong>Subtitle languages</strong><span>Comma-separated codes, e.g. <code>en,es</code></span></div><input class="text short" data-key="subtitleLangs" spellcheck="false" /></div>
|
||
<label class="setting"><div><strong>Cut sponsor segments</strong><span>Uses SponsorBlock on YouTube. Audio downloads also drop non-music sections.</span></div><input type="checkbox" class="switch" data-key="sponsorblock" /></label>
|
||
</div>
|
||
</section>
|
||
<section class="set-panel" id="setp-network" data-panel="network" aria-labelledby="setTitle" hidden>
|
||
<span class="set-anchor" id="set-network"></span>
|
||
<div class="group">
|
||
<div class="setting signin">
|
||
<div><strong>Use my browser sign-in</strong><span>Lets Atmosphere reach content your account can already see, like your own private uploads. Your sign-in stays on this computer.</span><p class="signin-status" id="signinStatus" role="status" hidden></p></div>
|
||
<div class="signin-ctl">
|
||
<select data-key="cookiesBrowser" id="signinSelect">
|
||
<option value="">Off</option>
|
||
<option value="firefox">Firefox</option>
|
||
<option value="chrome">Chrome</option>
|
||
<option value="edge">Edge</option>
|
||
<option value="brave">Brave</option>
|
||
<option value="opera">Opera</option>
|
||
<option value="vivaldi">Vivaldi</option>
|
||
<option value="chromium">Chromium</option>
|
||
<option value="file">A cookies.txt file</option>
|
||
</select>
|
||
<button class="btn" id="signinCheck" type="button"><span class="label">Check</span><span class="spin" aria-hidden="true"></span></button>
|
||
</div>
|
||
</div>
|
||
<div class="setting" id="cookiesFileRow" hidden>
|
||
<div><strong>Cookies file</strong><span id="cookiesFilePath">Export one in Netscape format from a browser you're signed in to, using a cookies.txt extension.</span></div>
|
||
<button class="btn" id="cookiesFilePick" type="button">Choose file</button>
|
||
</div>
|
||
<div class="setting"><div><strong>Speed limit</strong><span>Blank for no limit. For example <code>2M</code> is 2 MB/s.</span></div><input class="text short" data-key="rateLimit" placeholder="No limit" spellcheck="false" /></div>
|
||
<div class="setting"><div><strong>Proxy</strong><span>For example <code>socks5://127.0.0.1:1080</code></span></div><input class="text" data-key="proxy" placeholder="None" spellcheck="false" /></div>
|
||
</div>
|
||
</section>
|
||
<section class="set-panel" id="setp-engine" data-panel="engine" aria-labelledby="setTitle" hidden>
|
||
<span class="set-anchor" id="set-engine"></span>
|
||
<div class="group" id="engineGroup">
|
||
<div class="setting tool" id="toolYtdlp"></div>
|
||
<div class="setting tool" id="toolFfmpeg"></div>
|
||
<details class="setting advanced">
|
||
<summary><strong>Use my own copies</strong><span>Point to yt-dlp or ffmpeg you've installed yourself.</span></summary>
|
||
<div class="adv-fields">
|
||
<label><span>yt-dlp path</span><input class="text" data-key="ytdlpPath" placeholder="Managed by Atmosphere" spellcheck="false" /></label>
|
||
<label><span>ffmpeg path</span><input class="text" data-key="ffmpegPath" placeholder="Managed by Atmosphere" spellcheck="false" /></label>
|
||
</div>
|
||
</details>
|
||
</div>
|
||
</section>
|
||
<section class="set-panel" id="setp-general" data-panel="general" aria-labelledby="setTitle" hidden>
|
||
<span class="set-anchor" id="set-app"></span>
|
||
<div class="group">
|
||
<div class="setting"><div><strong>Updates</strong><span id="updateInfo">Atmosphere</span></div><button class="btn" id="updateBtn" type="button"><span class="label">Check for updates</span><span class="spin" aria-hidden="true"></span></button></div>
|
||
<label class="setting"><div><strong>Check for updates automatically</strong><span>When Atmosphere opens, and every few hours while it's open, it asks its GitHub releases page whether there's a newer version. You choose when to install, and every update is signed and checked first.</span></div><input type="checkbox" class="switch" data-key="checkUpdates" /></label>
|
||
<div class="setting">
|
||
<div><strong>Appearance</strong><span>Follows Windows unless you choose.</span></div>
|
||
<div class="seg" data-seg="theme"><button type="button" data-value="system">System</button><button type="button" data-value="light">Light</button><button type="button" data-value="dark">Dark</button></div>
|
||
</div>
|
||
<label class="setting"><div><strong>Offer copied links</strong><span>When you switch to Atmosphere with a link copied, offer to fetch it.</span></div><input type="checkbox" class="switch" data-key="watchClipboard" /></label>
|
||
</div>
|
||
<h2 id="set-rights">Your responsibility</h2>
|
||
<div class="group">
|
||
<div class="setting">
|
||
<div><strong>Rights acknowledgment</strong><span id="rightsInfo"></span></div>
|
||
<button class="btn danger-ghost" id="revokeBtn">Withdraw</button>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
<section class="set-panel" id="setp-discord" data-panel="discord" aria-labelledby="setTitle" hidden>
|
||
<span class="set-anchor" id="set-discord"></span>
|
||
<div class="group">
|
||
<label class="setting"><div><strong>Show what you're listening to</strong><span class="api-status" id="discordStatus" role="status">Off. Nothing is shared with Discord.</span></div><input type="checkbox" class="switch" data-key="discordEnabled" id="discordToggle" /></label>
|
||
<div class="setting discord-opt">
|
||
<div><strong>Your status says</strong><span>The short line next to your name in member lists, DMs and your friends list, like "Listening to Atmosphere" or "Listening to Rihanna". Your profile card always shows the song, artist, cover and progress.</span></div>
|
||
<div class="seg" data-seg="discordStatus"><button type="button" data-value="app">Atmosphere</button><button type="button" data-value="artist">Artist</button><button type="button" data-value="song">Song</button></div>
|
||
</div>
|
||
<label class="setting discord-opt"><div><strong>Show cover art</strong><span>Your status shows the song's cover, with the Atmosphere logo as a small badge. Discord can only show pictures from the web, so Atmosphere finds the cover on Deezer or Apple Music (only the artist, title and album are sent). If none is found, or this is off, the Atmosphere logo is shown instead.</span></div><input type="checkbox" class="switch" data-key="discordCover" /></label>
|
||
<label class="setting discord-opt"><div><strong>Keep showing while paused</strong><span>Off: your status clears when you pause and comes back when you press play.</span></div><input type="checkbox" class="switch" data-key="discordPaused" /></label>
|
||
<details class="setting advanced discord-opt">
|
||
<summary><strong>Your own Discord app</strong><span>Shows your app's name and art instead, like "Listening to My Music". Leave the ID blank to use Atmosphere's.</span></summary>
|
||
<div class="adv-fields">
|
||
<ol class="discord-steps">
|
||
<li>Create an application in the <button class="link" id="discordPortal" type="button">Discord Developer Portal</button>. Its name is what your status shows.</li>
|
||
<li>Save the images. Under <strong>Rich Presence › Art Assets</strong>, add <code>atmosphere.png</code> and <code>paused.png</code> without renaming them, and optionally <code>invite-cover.png</code> as the invite cover image.</li>
|
||
<li>Paste the <strong>Application ID</strong> from <strong>General Information</strong> here.</li>
|
||
</ol>
|
||
<div class="discord-assets"><button class="btn" id="discordAssets" type="button"><span class="label">Save the images…</span><span class="spin" aria-hidden="true"></span></button><span class="muted small">You choose the folder. Includes the logo, the paused badge, an invite cover and these steps.</span></div>
|
||
<label><span>Application ID</span><input class="text" id="discordClientId" placeholder="Atmosphere's own" inputmode="numeric" spellcheck="false" autocomplete="off" /></label>
|
||
</div>
|
||
</details>
|
||
</div>
|
||
</section>
|
||
<section class="set-panel" id="setp-connections" data-panel="connections" aria-labelledby="setTitle" hidden>
|
||
<span class="set-anchor" id="set-api"></span>
|
||
<p class="set-note">Let other apps on this computer, like stream overlays, status tools or your own scripts, see what's playing and control Atmosphere. It stays off unless you turn it on.</p>
|
||
<div class="group">
|
||
<label class="setting"><div><strong>Let other apps connect</strong><span class="api-status" id="apiStatus" role="status">Off</span></div><input type="checkbox" class="switch" data-key="apiEnabled" id="apiEnabledToggle" /></label>
|
||
<div class="setting">
|
||
<div><strong>Access token</strong><span id="apiTokenNote">Apps send this token with every request. It's shown once; Atmosphere keeps only a fingerprint.</span>
|
||
<div class="api-token" id="apiTokenBox" hidden><code id="apiTokenValue"></code><button class="btn small" id="apiTokenCopy" type="button">Copy</button><p class="muted small">Copy it now. It won't be shown again.</p></div>
|
||
</div>
|
||
<button class="btn" id="apiTokenBtn" type="button">Create token</button>
|
||
</div>
|
||
<label class="setting api-scope"><div><strong>See what's playing and browse the library</strong><span>Song details, artwork, playlists and live updates.</span></div><input type="checkbox" class="switch" data-key="apiRead" /></label>
|
||
<label class="setting api-scope"><div><strong>Control playback and the queue</strong><span>Play, pause, skip, seek, volume and queueing songs.</span></div><input type="checkbox" class="switch" data-key="apiControl" /></label>
|
||
<label class="setting api-scope"><div><strong>Send links to Get</strong><span>Opens the link in Atmosphere. Nothing is saved until you review and confirm it.</span></div><input type="checkbox" class="switch" data-key="apiLinks" /></label>
|
||
<div class="setting api-scope"><div><strong>Port</strong><span>Only reachable from this computer. <button class="link" id="apiDocs" type="button">How apps connect</button></span></div><input class="text short" id="apiPort" inputmode="numeric" spellcheck="false" aria-label="API port" /></div>
|
||
</div>
|
||
</section>
|
||
<section class="set-panel" id="setp-storage" data-panel="storage" aria-labelledby="setTitle" hidden>
|
||
<span class="set-anchor" id="set-storage"></span>
|
||
<p class="set-note">Temporary files are removed automatically on every launch and exit. Here's everything else Atmosphere keeps.</p>
|
||
<div class="group" id="storageList"></div>
|
||
<div class="group">
|
||
<div class="setting"><div><strong>Back up your data</strong><span>Settings, stats and play counts, liked songs, artist photos and download history in one .zip. Your music isn't included and is never touched.</span></div><button class="btn" id="backupBtn" type="button"><span class="label">Back up</span><span class="spin" aria-hidden="true"></span></button></div>
|
||
<div class="setting"><div><strong>Restore from a backup</strong><span>Replaces your current settings and stats with the backup's, then restarts Atmosphere.</span></div><button class="btn" id="restoreBtn" type="button">Restore</button></div>
|
||
</div>
|
||
</section>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="toasts" id="toasts" aria-live="polite"></div>
|
||
|
||
<script src="icons.js"></script>
|
||
<script src="app.js"></script>
|
||
<script src="player.js"></script>
|
||
<script src="library.js"></script>
|
||
<script src="nowplaying.js"></script>
|
||
<script src="lyrics.js"></script>
|
||
<script src="stats.js"></script>
|
||
<script src="miniplayer.js"></script>
|
||
<script src="connect.js"></script>
|
||
<script src="updates.js"></script>
|
||
<script src="search.js"></script>
|
||
<script src="tools.js"></script>
|
||
<script src="discord.js"></script>
|
||
</body>
|
||
</html>
|