Skip to content

Commit b71c0d8

Browse files
committed
v0.5.18
2 parents 0a805a0 + 0ecfe49 commit b71c0d8

File tree

6 files changed

+205
-29
lines changed

6 files changed

+205
-29
lines changed

CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog
22

3+
## v0.5.18
4+
Released 01 December 2016
5+
6+
Highlights:
7+
* Added: PassTheHeadphones support
8+
* Fixed: Special characters in password fields breaking on config page
9+
* Improved: Updated t411 url
10+
11+
The full list of commits can be found [here](https://github.com/rembo10/headphones/compare/v0.5.17...v0.5.18).
12+
13+
314
## v0.5.17
415
Released 10 November 2016
516

data/interfaces/default/config.html

+46-17
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ <h1 class="clearfix"><i class="fa fa-gear"></i> Settings</h1>
5656
<label title="Password for web server authentication. Leave empty to disable.">
5757
HTTP Password
5858
</label>
59-
<input type="password" name="http_password" value="${config['http_password']}" size="30">
59+
<input type="password" name="http_password" value="${config['http_password'] | h}" size="30">
6060
</div>
6161
<div class="row checkbox">
6262
<input type="checkbox" name="launch_browser" value="1" ${config['launch_browser']} />
@@ -173,7 +173,7 @@ <h1 class="clearfix"><i class="fa fa-gear"></i> Settings</h1>
173173
<label title="SABnzbd password. Leave empty if not applicable.">
174174
SABnzbd Password
175175
</label>
176-
<input type="password" name="sab_password" value="${config['sab_password']}" size="20">
176+
<input type="password" name="sab_password" value="${config['sab_password'] | h}" size="20">
177177
</div>
178178
<div class="row">
179179
<label title="SABnzbd API key. Can be found in SABnzbd settings.">
@@ -207,7 +207,7 @@ <h1 class="clearfix"><i class="fa fa-gear"></i> Settings</h1>
207207
<label title="NZBGet password. Leave empty if not applicable">
208208
NZBget Password
209209
</label>
210-
<input type="password" name="nzbget_password" value="${config['nzbget_password']}" size="20">
210+
<input type="password" name="nzbget_password" value="${config['nzbget_password'] | h}" size="20">
211211
</div>
212212
<div class="row">
213213
<label title="Name of NZBget category to add downloads to.">
@@ -359,7 +359,7 @@ <h1 class="clearfix"><i class="fa fa-gear"></i> Settings</h1>
359359
</div>
360360
<div class="row">
361361
<label>Transmission Password</label>
362-
<input type="password" name="transmission_password" value="${config['transmission_password']}" size="30">
362+
<input type="password" name="transmission_password" value="${config['transmission_password'] | h}" size="30">
363363
</div>
364364
<div class="row">
365365
<small>Note: With Transmission, you can specify a different download directory for downloads sent from Headphones.
@@ -379,7 +379,7 @@ <h1 class="clearfix"><i class="fa fa-gear"></i> Settings</h1>
379379
</div>
380380
<div class="row">
381381
<label>uTorrent Password</label>
382-
<input type="password" name="utorrent_password" value="${config['utorrent_password']}" size="30">
382+
<input type="password" name="utorrent_password" value="${config['utorrent_password'] | h}" size="30">
383383
</div>
384384
<div class="row">
385385
<label>uTorrent Label</label>
@@ -400,7 +400,7 @@ <h1 class="clearfix"><i class="fa fa-gear"></i> Settings</h1>
400400
</div>
401401
<div class="row">
402402
<label>Deluge Password</label>
403-
<input type="password" name="deluge_password" value="${config['deluge_password']}" size="30">
403+
<input type="password" name="deluge_password" value="${config['deluge_password'] | h}" size="30">
404404
</div>
405405
<div class="row">
406406
<small>Note: With Deluge, you can specify a different download directory for downloads sent from Headphones.
@@ -466,7 +466,7 @@ <h1 class="clearfix"><i class="fa fa-gear"></i> Settings</h1>
466466
</div>
467467
<div class="row">
468468
<label>Password</label>
469-
<input class="hppass" type="password" value="${config['hppass']}" size="20">
469+
<input class="hppass" type="password" value="${config['hppass'] | h}" size="20">
470470
</div>
471471
<div class="row">
472472
<a href="https://headphones.codeshy.com/vip" id="vipserver" target="_blank">Don't have an account? Sign up!</a>
@@ -622,7 +622,7 @@ <h1 class="clearfix"><i class="fa fa-gear"></i> Settings</h1>
622622
</div>
623623
<div class="row">
624624
<label>Password</label>
625-
<input type="password" name="rutracker_password" value="${config['rutracker_password']}" size="36">
625+
<input type="password" name="rutracker_password" value="${config['rutracker_password'] | h}" size="36">
626626
</div>
627627
<div class="row">
628628
<label>Seed Ratio</label>
@@ -642,7 +642,11 @@ <h1 class="clearfix"><i class="fa fa-gear"></i> Settings</h1>
642642
</div>
643643
<div class="row">
644644
<label>Password</label>
645-
<input type="password" name="whatcd_password" value="${config['whatcd_password']}" size="36">
645+
<input type="password" name="whatcd_password" value="${config['whatcd_password'] | h}" size="36">
646+
</div>
647+
<div class="row">
648+
<label>URL</label>
649+
<input type="text" name="whatcd_url" value="${config['whatcd_url']}" size="36">
646650
</div>
647651
<div class="row">
648652
<label>Seed Ratio</label>
@@ -651,6 +655,30 @@ <h1 class="clearfix"><i class="fa fa-gear"></i> Settings</h1>
651655
</div>
652656
</fieldset>
653657

658+
<fieldset>
659+
<div class="row checkbox left">
660+
<input id="use_pth" type="checkbox" class="bigcheck" name="use_pth" value="1" ${config['use_pth']} /><label for="use_pth"><span class="option">PassTheHeadphones.me</span></label>
661+
</div>
662+
<div class="config">
663+
<div class="row">
664+
<label>Username</label>
665+
<input type="text" name="pth_username" value="${config['pth_username']}" size="36">
666+
</div>
667+
<div class="row">
668+
<label>Password</label>
669+
<input type="password" name="pth_password" value="${config['pth_password']}" size="36">
670+
</div>
671+
<div class="row">
672+
<label>URL</label>
673+
<input type="text" name="pth_url" value="${config['pth_url']}" size="36">
674+
</div>
675+
<div class="row">
676+
<label>Seed Ratio</label>
677+
<input type="text" class="override-float" name="pth_ratio" value="${config['pth_ratio']}" size="10" title="Stop seeding when ratio met, 0 = unlimited. Scheduled job will remove torrent when post processed and finished seeding">
678+
</div>
679+
</div>
680+
</fieldset>
681+
654682
<fieldset>
655683
<div class="row checkbox left">
656684
<input id="use_strike" type="checkbox" class="bigcheck" name="use_strike" value="1" ${config['use_strike']} /><label for="use_strike"><span class="option">Strike Search</span></label>
@@ -755,7 +783,7 @@ <h1 class="clearfix"><i class="fa fa-gear"></i> Settings</h1>
755783
</div>
756784
<div class="row">
757785
<label>Password</label>
758-
<input type="password" name="tquattrecentonze_password" value="${config['tquattrecentonze_password']}" size="36">
786+
<input type="password" name="tquattrecentonze_password" value="${config['tquattrecentonze_password'] | h}" size="36">
759787
</div>
760788
</div>
761789
</fieldset>
@@ -980,7 +1008,7 @@ <h1 class="clearfix"><i class="fa fa-gear"></i> Settings</h1>
9801008
<label>SMTP User</label><input type="text" name="email_smtp_user" value="${config['email_smtp_user']}" size="254">
9811009
</div>
9821010
<div class="row">
983-
<label>SMTP Password</label><input type="password" name="email_smtp_password" value="${config['email_smtp_password']}" size="50">
1011+
<label>SMTP Password</label><input type="password" name="email_smtp_password" value="${config['email_smtp_password'] | h}" size="50">
9841012
</div>
9851013
<div class="row checkbox">
9861014
<input type="text" class="override-float" name="email_smtp_port" value="${config['email_smtp_port']}" size="4"><label>SMTP Port</label>
@@ -1006,7 +1034,7 @@ <h1 class="clearfix"><i class="fa fa-gear"></i> Settings</h1>
10061034
<label>Growl Host:Port</label><input type="text" name="growl_host" value="${config['growl_host']}" size="30">
10071035
</div>
10081036
<div class="row">
1009-
<label>Growl Password</label><input type="password" name="growl_password" value="${config['growl_password']}" size="30">
1037+
<label>Growl Password</label><input type="password" name="growl_password" value="${config['growl_password'] | h}" size="30">
10101038
</div>
10111039
<div class="row checkbox">
10121040
<input type="checkbox" name="growl_onsnatch" value="1" ${config['growl_onsnatch']} /><label>Notify on snatch?</label>
@@ -1028,7 +1056,7 @@ <h1 class="clearfix"><i class="fa fa-gear"></i> Settings</h1>
10281056
<label>Username</label><input type="text" name="xbmc_username" value="${config['xbmc_username']}" size="30">
10291057
</div>
10301058
<div class="row">
1031-
<label>Password</label><input type="password" name="xbmc_password" value="${config['xbmc_password']}" size="30">
1059+
<label>Password</label><input type="password" name="xbmc_password" value="${config['xbmc_password'] | h}" size="30">
10321060
</div>
10331061
<div class="checkbox row">
10341062
<input type="checkbox" name="xbmc_update" value="1" ${config['xbmc_update']} /><label>Update Library</label>
@@ -1142,7 +1170,7 @@ <h1 class="clearfix"><i class="fa fa-gear"></i> Settings</h1>
11421170
<small>Username of your Plex client API (blank for none)</small>
11431171
</div>
11441172
<div class="row">
1145-
<label>Plex Password</label><input type="password" name="plex_password" value="${config['plex_password']}" size="30">
1173+
<label>Plex Password</label><input type="password" name="plex_password" value="${config['plex_password'] | h}" size="30">
11461174
<small>Password of your Plex client API (blank for none)</small>
11471175
</div>
11481176
<div class="row">
@@ -1242,7 +1270,7 @@ <h1 class="clearfix"><i class="fa fa-gear"></i> Settings</h1>
12421270
<label>Subsonic Username</label><input type="text" name="subsonic_username" value="${config['subsonic_username']}" size="30">
12431271
</div>
12441272
<div class="row">
1245-
<label>Subsonic Password</label><input type="password" name="subsonic_password" value="${config['subsonic_password']}" size="30">
1273+
<label>Subsonic Password</label><input type="password" name="subsonic_password" value="${config['subsonic_password'] | h}" size="30">
12461274
</div>
12471275
</div>
12481276
</fieldset>
@@ -1642,7 +1670,7 @@ <h1 class="clearfix"><i class="fa fa-gear"></i> Settings</h1>
16421670
<label>Username</label><input type="text" class="customuser" name="customuser" value="${config['customuser']}" size="20">
16431671
</div>
16441672
<div class="row">
1645-
<label>Password</label><input type="password" class="custompass" name="custompass" value="${config['custompass']}" size="15"><br>
1673+
<label>Password</label><input type="password" class="custompass" name="custompass" value="${config['custompass'] | h}" size="15"><br>
16461674
</div>
16471675
</div>
16481676
<div class="row">
@@ -1655,7 +1683,7 @@ <h1 class="clearfix"><i class="fa fa-gear"></i> Settings</h1>
16551683
<label>Username</label><input type="text" class="hpuser" name="hpuser" value="${config['hpuser']}" size="20">
16561684
</div>
16571685
<div class="row">
1658-
<label>Password</label><input type="password" class="hppass" name="hppass" value="${config['hppass']}" size="20"><br>
1686+
<label>Password</label><input type="password" class="hppass" name="hppass" value="${config['hppass'] | h}" size="20"><br>
16591687
<a href="https://headphones.codeshy.com/vip" id="vipserver" target="_blank">Get an Account!</a>
16601688
</div>
16611689
</div>
@@ -2412,6 +2440,7 @@ <h1 class="clearfix"><i class="fa fa-gear"></i> Settings</h1>
24122440
initConfigCheckbox("#use_waffles");
24132441
initConfigCheckbox("#use_rutracker");
24142442
initConfigCheckbox("#use_whatcd");
2443+
initConfigCheckbox("#use_pth");
24152444
initConfigCheckbox("#use_strike");
24162445
initConfigCheckbox("#api_enabled");
24172446
initConfigCheckbox("#enable_https");

headphones/config.py

+6
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,12 @@ def __repr__(self):
293293
'WHATCD_PASSWORD': (str, 'What.cd', ''),
294294
'WHATCD_RATIO': (str, 'What.cd', ''),
295295
'WHATCD_USERNAME': (str, 'What.cd', ''),
296+
'WHATCD_URL': (str, 'What.cd', 'https://what.cd'),
297+
'PTH': (int, 'PassTheHeadphones.me', 0),
298+
'PTH_PASSWORD': (str, 'PassTheHeadphones.me', ''),
299+
'PTH_RATIO': (str, 'PassTheHeadphones.me', ''),
300+
'PTH_USERNAME': (str, 'PassTheHeadphones.me', ''),
301+
'PTH_URL': (str, 'PassTheHeadphones.me', 'https://passtheheadphones.me'),
296302
'XBMC_ENABLED': (int, 'XBMC', 0),
297303
'XBMC_HOST': (str, 'XBMC', ''),
298304
'XBMC_NOTIFY': (int, 'XBMC', 0),

0 commit comments

Comments
 (0)