diff options
Diffstat (limited to 'youtube/youtube.py')
-rw-r--r-- | youtube/youtube.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/youtube/youtube.py b/youtube/youtube.py index 418e707..8260faf 100644 --- a/youtube/youtube.py +++ b/youtube/youtube.py @@ -122,7 +122,12 @@ def youtube(env, start_response): else: save_account = False - if accounts.add_account(fields['username'][0], fields['password'][0], save_account ): + if 'use_tor' in fields and fields['use_tor'][0] == "on": + use_tor = True + else: + use_tor = False + + if accounts.add_account(fields['username'][0], fields['password'][0], save_account, use_tor ): start_response('200 OK', () ) return b'Account successfully added' else: |