mirror of
https://github.com/rembo10/headphones.git
synced 2026-04-05 04:29:25 +01:00
Cleaned up some config stuff, changed version back to master, added try/except clause to github check
This commit is contained in:
@@ -260,7 +260,7 @@
|
||||
<td>
|
||||
<h2>Re-Encoding Options:</h2>
|
||||
<br>
|
||||
<h3><input type="checkbox" name="encode" value="1" ${config['encode']}/>Re-encode Postprocessed Albuns</h3>
|
||||
<h3><input type="checkbox" name="encode" value="1" ${config['encode']}/> Re-encode downloads during postprocessing</h3>
|
||||
<i class="smalltext">Note: this option requires the lame or ffmpeg encoder</i>
|
||||
<br><br>
|
||||
<%
|
||||
@@ -275,66 +275,30 @@
|
||||
<option value="lame" ${lameselect}>lame</option>
|
||||
<option value="ffmpeg" ${ffmpegselect}>ffmpeg</option>
|
||||
</select>
|
||||
|
||||
<%
|
||||
if config['encoderoutputformat'] == 'ogg':
|
||||
oggselect = 'selected="selected"'
|
||||
mp3select = ''
|
||||
m4aselect = ''
|
||||
elif config['encoderoutputformat'] == 'm4a':
|
||||
oggselect = ''
|
||||
m4aselect = 'selected="selected"'
|
||||
mp3select = ''
|
||||
else:
|
||||
oggselect = ''
|
||||
m4aselect = ''
|
||||
mp3select = 'selected="selected"'
|
||||
%>
|
||||
|
||||
Format: <select name="encoderoutputformat">
|
||||
<option value="mp3" ${mp3select}>mp3</option>
|
||||
<option value="ogg" ${oggselect}>ogg</option>
|
||||
<option value="m4a" ${m4aselect}>m4a</option>
|
||||
%for x in ['mp3', 'ogg', 'm4a']:
|
||||
<%
|
||||
if config['encoderoutputformat'] == x:
|
||||
outputselect = 'selected'
|
||||
else:
|
||||
outputselect = ''
|
||||
%>
|
||||
<option value=${x} ${outputselect}>${x}</option>
|
||||
%endfor
|
||||
</select></h4>
|
||||
|
||||
<br>
|
||||
<%
|
||||
if config["bitrate"] == 64:
|
||||
bitrate64select = 'selected="selected"'
|
||||
bitrate128select = ''
|
||||
bitrate192select = ''
|
||||
bitrate256select = ''
|
||||
bitrate320select = ''
|
||||
elif config["bitrate"] == 128:
|
||||
bitrate64select = ''
|
||||
bitrate128select = 'selected="selected"'
|
||||
bitrate192select = ''
|
||||
bitrate256select = ''
|
||||
bitrate320select = ''
|
||||
elif config["bitrate"] == 192:
|
||||
bitrate64select = ''
|
||||
bitrate128select = ''
|
||||
bitrate192select = 'selected="selected"'
|
||||
bitrate256select = ''
|
||||
bitrate320select = ''
|
||||
elif config["bitrate"] == 256:
|
||||
bitrate64select = ''
|
||||
bitrate128select = ''
|
||||
bitrate192select = ''
|
||||
bitrate256select = 'selected="selected"'
|
||||
bitrate320select = ''
|
||||
else:
|
||||
bitrate64select = ''
|
||||
bitrate128select = ''
|
||||
bitrate192select = ''
|
||||
bitrate256select = ''
|
||||
bitrate320select = 'selected="selected"'
|
||||
%>
|
||||
<h4>Bitrate: <select name="bitrate">
|
||||
<option value=64 ${bitrate64select}> 64 kbps</option>
|
||||
<option value=128 ${bitrate128select}>128 kbps</option>
|
||||
<option value=192 ${bitrate192select}>192 kbps</option>
|
||||
<option value=256 ${bitrate256select}>256 kbps</option>
|
||||
<option value=320 ${bitrate320select}>320 kbps</option>
|
||||
%for x in [64, 128, 192, 256, 320]:
|
||||
<%
|
||||
if config["bitrate"] == x:
|
||||
bitrateselected = "selected"
|
||||
else:
|
||||
bitrateselected = ''
|
||||
%>
|
||||
<option value=${x} ${bitrateselected}> ${x} kbps</option>
|
||||
%endfor
|
||||
</select>
|
||||
|
||||
<%
|
||||
|
||||
@@ -308,7 +308,10 @@ def initialize():
|
||||
CURRENT_VERSION = versioncheck.getVersion()
|
||||
|
||||
# Check for new versions
|
||||
LATEST_VERSION = versioncheck.checkGithub()
|
||||
try:
|
||||
LATEST_VERSION = versioncheck.checkGithub()
|
||||
except:
|
||||
LATEST_VERSION = CURRENT_VERSION
|
||||
|
||||
__INITIALIZED__ = True
|
||||
return True
|
||||
|
||||
@@ -1 +1 @@
|
||||
HEADPHONES_VERSION = "develop"
|
||||
HEADPHONES_VERSION = "master"
|
||||
Reference in New Issue
Block a user