From fee24d4f0a3ddcf877facfa9b22d470bee37ee79 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Wed, 29 Aug 2018 00:33:28 -0700 Subject: Ability to post comments (not reply yet) --- youtube/common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'youtube/common.py') diff --git a/youtube/common.py b/youtube/common.py index 384d560..f867ea9 100644 --- a/youtube/common.py +++ b/youtube/common.py @@ -169,7 +169,8 @@ def fetch_url(url, headers=(), timeout=15, report_text=None): content = gzip.decompress(content) return content -mobile_ua = (('User-Agent', 'Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_1 like Mac OS X) AppleWebKit/603.1.30 (KHTML, like Gecko) Version/10.0 Mobile/14E304 Safari/602.1'),) +mobile_user_agent = 'Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_1 like Mac OS X) AppleWebKit/603.1.30 (KHTML, like Gecko) Version/10.0 Mobile/14E304 Safari/602.1' +mobile_ua = (('User-Agent', mobile_user_agent),) def dict_add(*dicts): for dictionary in dicts[1:]: -- cgit v1.2.3