diff options
author | James Taylor <user234683@users.noreply.github.com> | 2018-08-29 00:33:28 -0700 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2018-08-29 00:33:28 -0700 |
commit | fee24d4f0a3ddcf877facfa9b22d470bee37ee79 (patch) | |
tree | 6c2084feca5596ec2bc239bbdca2d35c6066364b /youtube/common.py | |
parent | 6a6433619f82652d7943e29579fe6cf1bbf0cc11 (diff) | |
download | yt-local-fee24d4f0a3ddcf877facfa9b22d470bee37ee79.tar.lz yt-local-fee24d4f0a3ddcf877facfa9b22d470bee37ee79.tar.xz yt-local-fee24d4f0a3ddcf877facfa9b22d470bee37ee79.zip |
Ability to post comments (not reply yet)
Diffstat (limited to 'youtube/common.py')
-rw-r--r-- | youtube/common.py | 3 |
1 files changed, 2 insertions, 1 deletions
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:]: |