feat: enhance chat downloading with stream monitoring and improved file paths
This commit is contained in:
parent
22a1f5b600
commit
b47641feaa
3 changed files with 87 additions and 30 deletions
|
|
@ -505,6 +505,16 @@ class ContentDownloader:
|
|||
if not self.download_live_chat:
|
||||
print(f'{Fore.YELLOW}⚠ downloadLiveCHAT is disabled in config{Style.RESET_ALL}')
|
||||
return False
|
||||
|
||||
# If a stream monitor was provided, check that the user is currently live
|
||||
if stream_monitor is not None:
|
||||
try:
|
||||
if not stream_monitor.is_user_live():
|
||||
print(f'{Fore.YELLOW}⚠ Stream is not live; skipping chat download{Style.RESET_ALL}')
|
||||
return False
|
||||
except Exception as e:
|
||||
# If we couldn't determine live status, continue and let chat_downloader handle it
|
||||
print(f'{Fore.YELLOW}⚠ Could not determine live status: {e} - proceeding with chat download{Style.RESET_ALL}')
|
||||
|
||||
print(f'\n{Fore.CYAN}Starting live chat download (chat_downloader)...{Style.RESET_ALL}')
|
||||
print(f'{Fore.MAGENTA}[VERBOSE] chat_downloader library version: {ChatDownloader.__module__}{Style.RESET_ALL}')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue