Skip to content

Commit

Permalink
Hotfix, just use requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Kuttler committed Feb 4, 2017
1 parent 60b532f commit 5f842f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion resources/lib/youtube/client/login_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,9 @@ def generate_user_code(self, client_id=''):
# url
url = 'https://www.youtube.com/o/oauth2/device/code'

result = requests.post(url, data=post_data, headers=headers, verify=False)
# result = requests.post(url, data=post_data, headers=headers, verify=False)
import requests
result = requests.post(url, post_data, headers=headers)
if result.status_code != requests.codes.ok:
raise LoginException('Login Failed')

Expand Down

0 comments on commit 5f842f1

Please sign in to comment.