From 334078fc34cda83168a5ea6457b6c91f49873b11 Mon Sep 17 00:00:00 2001 From: Ruud Date: Fri, 21 Mar 2014 18:25:36 +0100 Subject: [PATCH] Allow password tag in returned release dict --- couchpotato/core/plugins/base.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/couchpotato/core/plugins/base.py b/couchpotato/core/plugins/base.py index 1e4bfeba..c5892f51 100644 --- a/couchpotato/core/plugins/base.py +++ b/couchpotato/core/plugins/base.py @@ -326,6 +326,8 @@ class Plugin(object): if name_password: release_name, password = name_password tag += '{{%s}}' % password + elif data.get('password'): + tag += '{{%s}}' % data.get('password') max_length = 127 - len(tag) # Some filesystems don't support 128+ long filenames return '%s%s' % (toSafeString(toUnicode(release_name)[:max_length]), tag)