1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
//! Event system for download lifecycle notifications
//!
//! This module provides a comprehensive event system for tracking all aspects
//! of video downloads, from metadata fetching to post-processing completion.
//!
//! # Architecture
//!
//! The event system is built around three main components:
//! - [`EventBus`] - Central event dispatcher using broadcast channels
//! - [`DownloadEvent`] - Enum of all possible events
//! - [`EventFilter`] - Filtering system for selective event handling
//!
//! # Optional Features
//!
//! - `hooks` - Enables Rust callback hooks (in-process event handlers)
//! - `webhooks` - Enables HTTP webhook delivery with retry logic
//!
//! # Examples
//!
//! ## Basic event stream
//!
//! ```ignore
//! use tokio_stream::StreamExt;
//!
//! let downloader = Downloader::builder(libraries, output_dir).build().await?;
//! let mut stream = downloader.event_stream();
//!
//! while let Some(Ok(event)) = stream.next().await {
//! match &*event {
//! DownloadEvent::DownloadCompleted { download_id, output_path, .. } => {
//! println!("Download {} completed: {:?}", download_id, output_path);
//! }
//! _ => {}
//! }
//! }
//! ```
//!
//! ## With filtering
//!
//! ```ignore
//! use yt_dlp::events::EventFilter;
//!
//! let filter = EventFilter::only_terminal().exclude_progress();
//! // Use filter with hooks or custom stream processing
//! ```
pub use EventBus;
pub use ;
pub use EventFilter;
pub use RecordingMethod;
pub use ;
pub use ;
pub use RetryStrategy;