mirror of
https://gitlab.com/jeancf/twoot.git
synced 2025-02-27 18:38:42 +00:00
Set debug=0 on call to download to avoid mail spam
This commit is contained in:
parent
ae60d2e002
commit
df4eaa0dd7
2
twoot.py
2
twoot.py
@ -127,7 +127,7 @@ def cleanup_tweet_text(tt_iter, tweet_uri, get_vids):
|
|||||||
if 'video' in data_expanded_path:
|
if 'video' in data_expanded_path:
|
||||||
if get_vids:
|
if get_vids:
|
||||||
# Download video from twitter and store in filesystem
|
# 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:
|
try:
|
||||||
twitter_dl.download()
|
twitter_dl.download()
|
||||||
except json.JSONDecodeError:
|
except json.JSONDecodeError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user