diff --git a/handlers/twitter_handler.py b/handlers/twitter_handler.py index d5aad47..09dd211 100644 --- a/handlers/twitter_handler.py +++ b/handlers/twitter_handler.py @@ -83,10 +83,12 @@ def filesize_limiter(info_dict, *args, **kwargs): url_hash = hash(url) if url_hash in recent_video_cache.keys(): actual_filename = recent_video_cache[url_hash] + print(f"Cache hit: {actual_filename}") else: result = ydl.extract_info(url, download=True) actual_filename = ydl.prepare_filename(f"{result}_{url_hash}") recent_video_cache[url_hash] = actual_filename #move this after exceptions? + print(f"Cache miss filename: {actual_filename}") except FilesizeLimitError as e: print(f"Skipping download: {e}") except Exception as e: