Revert changes related to YouTube Data API integration and threading for message sending. Restore chat scraping functionality.

This commit is contained in:
2025-11-03 12:26:42 +01:00
parent 1ef278293c
commit 24455ee327

View File

@@ -151,6 +151,10 @@ def main():
except Exception as e: except Exception as e:
console.print(f"[red]An error occurred: {e}[/red]") console.print(f"[red]An error occurred: {e}[/red]")
finally: finally:
global _stop_input_thread
_stop_input_thread = True # Signal the input thread to stop
# input_thread.join() # Optionally wait for the input thread to finish, but daemon=True makes it optional
log_file.close() log_file.close()
save_log = input(f"\nDo you want to save the chat log to {log_filename}? (y/n): ").lower() save_log = input(f"\nDo you want to save the chat log to {log_filename}? (y/n): ").lower()
if save_log != 'y' and save_log != 'yes': if save_log != 'y' and save_log != 'yes':