diff options
Diffstat (limited to 'src/bin/zot/main.rs')
-rw-r--r-- | src/bin/zot/main.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/bin/zot/main.rs b/src/bin/zot/main.rs index 209e097..83ae916 100644 --- a/src/bin/zot/main.rs +++ b/src/bin/zot/main.rs @@ -117,7 +117,12 @@ async fn main() -> Result<(), Box<(dyn std::error::Error + 'static)>> { } } ("stream", Some(_)) => { - let s = Stream::from_json(&z.channel_stream().await?)?; + let json = z.channel_stream().await?; + + std::fs::write("channel_stream.json", &json) + .expect("Unable to write channel_stream.json file"); + + let s = Stream::from_json(&json)?; for item in s.items { if item.is_post() { if item.title.len() > 0 { |