Merge branch 'develop' of https://github.com/johzzy/you-get into johzzy-develop

This commit is contained in:
Mort Yao 2024-03-03 16:32:10 +01:00
commit ad5fdbdf34
No known key found for this signature in database
GPG Key ID: 07DA00CB78203251

View File

@ -40,7 +40,7 @@ def twitter_download(url, output_dir='.', merge=True, info_only=False, **kwargs)
page_title = "{} [{}]".format(screen_name, item_id)
# FIXME: this API won't work for protected or nsfw contents
api_url = 'https://cdn.syndication.twimg.com/tweet-result?id=%s' % item_id
api_url = 'https://cdn.syndication.twimg.com/tweet-result?id=%s&token=!' % item_id
content = get_content(api_url)
info = json.loads(content)