Add some log messages

This commit is contained in:
jeancf 2023-07-13 13:32:38 +02:00
parent cdbb1bb8f2
commit 29c7457644

View File

@ -201,6 +201,7 @@ Only used by `get_timeline()`.
:return: List of tweets from the thread :return: List of tweets from the thread
""" """
def _get_rest_of_thread(session, headers, url): def _get_rest_of_thread(session, headers, url):
logging.debug("Downloading tweets in thread from separate page")
# Download page with thread # Download page with thread
try: try:
thread_page = session.get(url, headers=headers, timeout=HTTPS_REQ_TIMEOUT) 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') vid_class = attachments_container.find('div', class_='video-container')
if vid_class is not None: if vid_class is not None:
if TOML['options']['upload_videos']: if TOML['options']['upload_videos']:
logging.debug("downloading video from twitter")
import youtube_dl import youtube_dl
video_path = f"{author_account}/status/{status_id}" video_path = f"{author_account}/status/{status_id}"