From 7f48b021ecf46556c40b2dc53d30e181be62a888 Mon Sep 17 00:00:00 2001 From: Fritsbenik Date: Wed, 4 Jan 2017 19:08:48 +0100 Subject: [PATCH 1/5] update init.freebsd Allow to set variables in /etc/rc.conf --- init-scripts/init.freebsd | 1 + 1 file changed, 1 insertion(+) diff --git a/init-scripts/init.freebsd b/init-scripts/init.freebsd index bd4cca2a..78decdcc 100755 --- a/init-scripts/init.freebsd +++ b/init-scripts/init.freebsd @@ -23,6 +23,7 @@ name="headphones" rcvar=${name}_enable +load_rc_config ${name} : "${headphones_enable:="NO"}" : "${headphones_user:="_sabnzbd"}" From 709073358ba29f56523f2e1eccc509b1721f1eff Mon Sep 17 00:00:00 2001 From: hypsometric Date: Tue, 14 Feb 2017 15:37:59 +0100 Subject: [PATCH 2/5] HTML escape pth_password --- data/interfaces/default/config.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/interfaces/default/config.html b/data/interfaces/default/config.html index 5bc2edea..2b64da4f 100644 --- a/data/interfaces/default/config.html +++ b/data/interfaces/default/config.html @@ -666,7 +666,7 @@
- +
From e7017305d8c871617040e67a904134c2d472fead Mon Sep 17 00:00:00 2001 From: MrClayPole Date: Tue, 21 Feb 2017 08:54:24 +0000 Subject: [PATCH 3/5] Update init.freebsd This path is incorrect for freebsd the path to python bin is /usr/local/bin/python rather than /usr/bin/python --- init-scripts/init.freebsd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init-scripts/init.freebsd b/init-scripts/init.freebsd index 78decdcc..e250a7f1 100755 --- a/init-scripts/init.freebsd +++ b/init-scripts/init.freebsd @@ -31,7 +31,7 @@ load_rc_config ${name} : "${headphones_conf:="/usr/local/headphones/config.ini"}" command="${headphones_dir}/Headphones.py" -command_interpreter="/usr/bin/python" +command_interpreter="/usr/local/bin/python" pidfile="/var/run/headphones/headphones.pid" start_precmd="headphones_start_precmd" headphones_flags="--daemon --nolaunch --pidfile $pidfile --config $headphones_conf $headphones_flags" From 3cfc434e8a589f119ca1827da2797e125bc43104 Mon Sep 17 00:00:00 2001 From: widewing Date: Fri, 24 Feb 2017 16:32:54 +0800 Subject: [PATCH 4/5] change ajax call method to POST --- data/interfaces/default/js/script.js | 1 + 1 file changed, 1 insertion(+) diff --git a/data/interfaces/default/js/script.js b/data/interfaces/default/js/script.js index 25e194a8..3f926f90 100644 --- a/data/interfaces/default/js/script.js +++ b/data/interfaces/default/js/script.js @@ -312,6 +312,7 @@ function doAjaxCall(url,elem,reload,form) { $.ajax({ url: url, data: dataString, + type: 'POST', beforeSend: function(jqXHR, settings) { // Start loader etc. feedback.prepend(loader); From debc65db5de0ba0cea9f67381c7a7732ddc7d70b Mon Sep 17 00:00:00 2001 From: Ade Date: Mon, 13 Mar 2017 11:01:21 +1300 Subject: [PATCH 5/5] Temp processing fixup Fixes --- headphones/postprocessor.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/headphones/postprocessor.py b/headphones/postprocessor.py index 9a7a4e9c..c4ff55ac 100755 --- a/headphones/postprocessor.py +++ b/headphones/postprocessor.py @@ -353,11 +353,11 @@ def doPostProcessing(albumid, albumpath, release, tracks, downloaded_track_list, elif Kind == "cue_split": new_folder = os.path.split(albumpath)[0] - # Need to update the downloaded track list with the new location. - # Could probably just throw in the "headphones-modified" folder, - # but this is good to make sure we're not counting files that may have failed to move + # Need to update the downloaded track list with the new location. + # Could probably just throw in the "headphones-modified" folder, + # but this is good to make sure we're not counting files that may have failed to move + if new_folder: downloaded_track_list = [] - for r, d, f in os.walk(albumpath): for files in f: if any(files.lower().endswith('.' + x.lower()) for x in headphones.MEDIA_FORMATS):