November update #2

Merged
Future merged 34 commits from github/origin into alterware 2025-11-10 07:43:08 +00:00
Showing only changes of commit b34844e259 - Show all commits

View File

@@ -266,19 +266,13 @@ def getTweetData(twitter_url,include_txt="false",include_rtf="false"):
return cachedVNF return cachedVNF
try: try:
rawTweetData = twExtract.extractStatusV2Anon(twitter_url, None) if config['config']['workaroundTokens'] is not None:
workaroundTokens = config['config']['workaroundTokens'].split(",")
else:
workaroundTokens = None
rawTweetData = twExtract.extractStatus(twitter_url,workaroundTokens=workaroundTokens)
except: except:
rawTweetData = None rawTweetData = None
if rawTweetData is None:
try:
if config['config']['workaroundTokens'] is not None:
workaroundTokens = config['config']['workaroundTokens'].split(",")
else:
workaroundTokens = None
rawTweetData = twExtract.extractStatus(twitter_url,workaroundTokens=workaroundTokens)
except:
rawTweetData = None
if rawTweetData == None or 'error' in rawTweetData: if rawTweetData == None or 'error' in rawTweetData:
return None return None