From 158f638fb9559116dfdbdad27cb6f33bfc5a3042 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sat, 4 Oct 2014 14:07:38 +0200 Subject: [PATCH 1/3] No need for double replace --- couchpotato/core/plugins/renamer.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/couchpotato/core/plugins/renamer.py b/couchpotato/core/plugins/renamer.py index f6e4248f..cd6255ce 100755 --- a/couchpotato/core/plugins/renamer.py +++ b/couchpotato/core/plugins/renamer.py @@ -373,10 +373,6 @@ class Renamer(Plugin): elif file_type is 'nfo': final_file_name = self.doReplace(nfo_name, replacements, remove_multiple = True) - # Seperator replace - if separator: - final_file_name = final_file_name.replace(' ', separator) - # Move DVD files (no structure renaming) if group['is_dvd'] and file_type is 'movie': found = False From 78ba855c68995b0992a1742dc3a12a8c52bd5689 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sat, 4 Oct 2014 14:33:51 +0200 Subject: [PATCH 2/3] Add CP tag only when renamer or unique tag is enabled. --- couchpotato/core/plugins/base.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/couchpotato/core/plugins/base.py b/couchpotato/core/plugins/base.py index 2e993715..704aa62c 100644 --- a/couchpotato/core/plugins/base.py +++ b/couchpotato/core/plugins/base.py @@ -370,14 +370,16 @@ class Plugin(object): def cpTag(self, media, unique_tag = False): - identifier = getIdentifier(media) or '' - unique_tag = ', ' + randomString() if unique_tag else '' + tag = '' + if Env.setting('enabled', 'renamer') or unique_tag: + identifier = getIdentifier(media) or '' + unique_tag = ', ' + randomString() if unique_tag else '' - tag = '.cp(' - tag += identifier - tag += ', ' if unique_tag and identifier else '' - tag += randomString() if unique_tag else '' - tag += ')' + tag = '.cp(' + tag += identifier + tag += ', ' if unique_tag and identifier else '' + tag += randomString() if unique_tag else '' + tag += ')' return tag if len(tag) > 7 else '' From e595722139fc71f94fecef07eacc986094e83f0b Mon Sep 17 00:00:00 2001 From: Ruud Date: Sat, 4 Oct 2014 15:37:18 +0200 Subject: [PATCH 3/3] Safari hanging on password input creation Fix #3997 --- couchpotato/static/scripts/page/settings.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/couchpotato/static/scripts/page/settings.js b/couchpotato/static/scripts/page/settings.js index c8e0a5e4..b5aae3d1 100644 --- a/couchpotato/static/scripts/page/settings.js +++ b/couchpotato/static/scripts/page/settings.js @@ -560,11 +560,19 @@ Option.Password = new Class({ create: function(){ var self = this; - self.parent(); - self.input.set('type', 'password'); + self.el.adopt( + self.createLabel(), + self.input = new Element('input.inlay', { + 'type': 'text', + 'name': self.postName(), + 'value': self.getSettingValue() ? '********' : '', + 'placeholder': self.getPlaceholder() + }) + ); self.input.addEvent('focus', function(){ - self.input.set('value', '') + self.input.set('value', ''); + self.input.set('type', 'password'); }) }