transmission: Allow to submit download directory if it is creatable

transmission-deamon creates the directory if it doesn't exist.

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Veiko Aasa 2020-02-25 15:32:42 +02:00 committed by James Valleroy
parent e7afa69155
commit 141ef33f7e
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -15,7 +15,7 @@ class TransmissionForm(DirectorySelectForm):
def __init__(self, *args, **kw):
validator = DirectoryValidator(
username=reserved_usernames[0], check_writable=True)
username=reserved_usernames[0], check_creatable=True)
super(TransmissionForm, self).__init__(
title=_('Download directory'),
default='/var/lib/transmission-daemon/downloads',