mirror of
https://github.com/rembo10/headphones.git
synced 2026-03-21 04:09:26 +00:00
92 lines
2.7 KiB
HTML
92 lines
2.7 KiB
HTML
<%inherit file="base.html" />
|
|
<%!
|
|
import headphones
|
|
from headphones.helpers import checked
|
|
%>
|
|
<%def name="headerIncludes()">
|
|
<div id="subhead_container">
|
|
<ul id="subhead_menu">
|
|
<li><a href="manageArtists">Manage Artists</a></li>
|
|
%if not headphones.ADD_ARTISTS:
|
|
<li><a href="manageNew">Manage New Artists</a></li>
|
|
%endif
|
|
</ul>
|
|
</div>
|
|
</%def>
|
|
|
|
<%def name="body()">
|
|
<div class="table_wrapper">
|
|
<h1>Scan Music Library</h1><br />
|
|
<p>
|
|
Where do you keep your music?<br /><br />
|
|
</p>
|
|
<form action="musicScan" method="GET">
|
|
%if headphones.MUSIC_DIR:
|
|
<input type="text" value="${headphones.MUSIC_DIR}" name="path" size="60" />
|
|
<div class="tooltip">
|
|
<span>
|
|
You can put in any directory, and it will scan for audio files in that folder
|
|
(including all subdirectories)<br />
|
|
For example: '/Users/name/Music'
|
|
</span>
|
|
</div>
|
|
%else:
|
|
<input type="text" value="Enter a Music Directory to scan" onfocus="if (this.value==this.defaultValue) this.value='';" name="path" size="60" />
|
|
<div class="tooltip">
|
|
<span>
|
|
You can put in any directory, and it will scan for audio files in that folder
|
|
(including all subdirectories)<br />
|
|
For example: '/Users/name/Music'
|
|
</span>
|
|
</div>
|
|
%endif
|
|
<br />
|
|
<br />
|
|
<input class="styled" type="checkbox" name="autoadd" value="1" ${checked(headphones.ADD_ARTISTS)}> Automatically add new artists
|
|
<br />
|
|
<br />
|
|
<input type="submit" />
|
|
<div class="tooltip">
|
|
<span>
|
|
This process runs in the background.
|
|
</span>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
<div class="table_wrapper_half">
|
|
<h1>Import Last.FM Artists</h1><br />
|
|
Enter the username whose artists you want to import:<br /><br />
|
|
<form action="importLastFM" method="GET" align="left">
|
|
<%
|
|
if headphones.LASTFM_USERNAME:
|
|
lastfmvalue = headphones.LASTFM_USERNAME
|
|
else:
|
|
lastfmvalue = 'Last.fm Username'
|
|
%>
|
|
<input type="text" value="${lastfmvalue}" onfocus="if (this.value==this.defaultValue) this.value='';" name="username" size="18" />
|
|
<br />
|
|
<br />
|
|
<input type="submit" />
|
|
</form><br /><br />
|
|
</div>
|
|
|
|
<div class="table_wrapper_half">
|
|
<h1>Placeholder :-)</h1><br />
|
|
<br /><br />
|
|
<form action="" method="GET" align="left">
|
|
<input type="text" onfocus="if (this.value==this.defaultValue) this.value='';" name="" size="18" />
|
|
<br />
|
|
<br />
|
|
<input type="submit" />
|
|
</form>
|
|
</div>
|
|
|
|
<div class="table_wrapper">
|
|
<h1>Force Search</h1><br />
|
|
<h3><a href="forceSearch">Force Check for Wanted Albums</a></h3>
|
|
<h3><a href="forceUpdate">Force Update Active Artists</a></h3>
|
|
<h3><a href="forcePostProcess">Force Post-Process Albums in Download Folder</a></h3><br /><br />
|
|
<h3><a href="checkGithub">Check for Headphones Updates</a></h3>
|
|
</div>
|
|
</%def> |