mirror of
https://gitlab.com/jeancf/twoot.git
synced 2024-11-23 20:11:11 +00:00
Add some log messages
This commit is contained in:
parent
cdbb1bb8f2
commit
29c7457644
2
twoot.py
2
twoot.py
|
@ -201,6 +201,7 @@ Only used by `get_timeline()`.
|
|||
:return: List of tweets from the thread
|
||||
"""
|
||||
def _get_rest_of_thread(session, headers, url):
|
||||
logging.debug("Downloading tweets in thread from separate page")
|
||||
# Download page with thread
|
||||
try:
|
||||
thread_page = session.get(url, headers=headers, timeout=HTTPS_REQ_TIMEOUT)
|
||||
|
@ -678,6 +679,7 @@ def process_attachments(nitter_url, attachments_container, status_id, author_acc
|
|||
vid_class = attachments_container.find('div', class_='video-container')
|
||||
if vid_class is not None:
|
||||
if TOML['options']['upload_videos']:
|
||||
logging.debug("downloading video from twitter")
|
||||
import youtube_dl
|
||||
|
||||
video_path = f"{author_account}/status/{status_id}"
|
||||
|
|
Loading…
Reference in New Issue
Block a user