Set debug=0 on call to download to avoid mail spam

This commit is contained in:
jeancf 2020-03-28 13:55:43 +01:00
parent ae60d2e002
commit df4eaa0dd7

View File

@ -127,7 +127,7 @@ def cleanup_tweet_text(tt_iter, tweet_uri, get_vids):
if 'video' in data_expanded_path:
if get_vids:
# Download video from twitter and store in filesystem
twitter_dl = twitterdl.TwitterDownloader(tweet_uri, target_width=500, debug=1)
twitter_dl = twitterdl.TwitterDownloader(tweet_uri, target_width=500, debug=0)
try:
twitter_dl.download()
except json.JSONDecodeError: