From cd08b72df712589151565a8c3496337d491aa9d7 Mon Sep 17 00:00:00 2001 From: rembo10 Date: Mon, 8 Jun 2015 21:55:14 -0700 Subject: [PATCH 01/10] Added ability to test pushover --- headphones/webserve.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/headphones/webserve.py b/headphones/webserve.py index 5a41dc3b..bf02df85 100644 --- a/headphones/webserve.py +++ b/headphones/webserve.py @@ -1424,6 +1424,13 @@ class WebInterface(object): logger.warn(msg) return msg + @cherrypy.expose + def testPushover(self): + logger.info(u"Sending Pushover notification") + pushover = notifiers.PUSHOVER() + result = pushover.notify("hooray!", "This is a test") + return result + class Artwork(object): @cherrypy.expose def index(self): From 1204afadbba5a669fd4ca22bd883cf8cb9f54002 Mon Sep 17 00:00:00 2001 From: rembo10 Date: Mon, 8 Jun 2015 21:56:10 -0700 Subject: [PATCH 02/10] Convert preferred bitrate to vbr preset for what.cd searching --- headphones/searcher.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/headphones/searcher.py b/headphones/searcher.py index 1b58151f..a2eca508 100644 --- a/headphones/searcher.py +++ b/headphones/searcher.py @@ -1280,6 +1280,12 @@ def searchTorrent(album, new=False, losslessOnly=False, albumlength=None, choose search_formats = [None] # should return all bitrate = headphones.CONFIG.PREFERRED_BITRATE if bitrate: + if 225 <= int(bitrate) < 256: + bitrate = 'V0' + elif 200 <= int(bitrate) < 225: + bitrate = 'V1' + elif 175 <= int(bitrate) < 200: + bitrate = 'V2' for encoding_string in gazelleencoding.ALL_ENCODINGS: if re.search(bitrate, encoding_string, flags=re.I): bitrate_string = encoding_string From ebd6d3f3f915d598b6c1eba4e94c9c2988e73fe1 Mon Sep 17 00:00:00 2001 From: rembo10 Date: Tue, 9 Jun 2015 00:31:50 -0700 Subject: [PATCH 03/10] Added option to keep folders when force post-processing under Manage. Also, added config option to keep original folder globally --- CHANGELOG.md | 9 +++ data/interfaces/default/config.html | 6 ++ data/interfaces/default/manage.html | 91 ++++++++++++++++++++++------- headphones/config.py | 1 + headphones/postprocessor.py | 30 +++++----- headphones/webserve.py | 7 ++- 6 files changed, 104 insertions(+), 40 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 62bf7df2..a3b702ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## v0.5.7 +Released xx xxx 2015 + +Highlights: +*Improved: Specify whether to delete folders when force post-processing +*Improved: Convert target bitrate to vbr preset for what.cd searching + +The full list of commits can be found [here](https://github.com/rembo10/headphones/compare/v0.5.6...v0.5.7). + ## v0.5.6 Released 08 June 2015 diff --git a/data/interfaces/default/config.html b/data/interfaces/default/config.html index 50dc6ae4..3e1258a2 100644 --- a/data/interfaces/default/config.html +++ b/data/interfaces/default/config.html @@ -753,6 +753,12 @@ +
+ +