diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-02-22 11:31:35 +0100 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-02-22 11:31:35 +0100 |
commit | e07db3a810c2e0f43b20d73ea4258f3ea8f240d4 (patch) | |
tree | c49a7bf8e6094c3988cb4b26632fa33a030de783 | |
parent | refactor(yt/description): Move to the `comments` subdirectory (diff) | |
download | yt-e07db3a810c2e0f43b20d73ea4258f3ea8f240d4.zip |
fix(yt/main): Actually remove the `yt check output-info-json`
-rw-r--r-- | yt/src/main.rs | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/yt/src/main.rs b/yt/src/main.rs index 6106117..9fee4cc 100644 --- a/yt/src/main.rs +++ b/yt/src/main.rs @@ -12,7 +12,7 @@ // to print it anyways. #![allow(clippy::missing_errors_doc)] -use std::{collections::HashMap, fs, sync::Arc}; +use std::{fs, sync::Arc}; use anyhow::{Context, Result, bail}; use app::App; @@ -29,7 +29,6 @@ use tokio::{ io::{BufReader, stdin}, task::JoinHandle, }; -use url::Url; use yt_dlp::wrapper::info_json::InfoJson; use crate::{cli::Command, storage::subscriptions}; @@ -224,15 +223,6 @@ async fn main() -> Result<()> { .context("Failed to deserialize value")?, ); } - CheckCommand::UpdateInfoJson { path } => { - let string = fs::read_to_string(&path) - .with_context(|| format!("Failed to read '{}' to string!", path.display()))?; - - drop( - serde_json::from_str::<HashMap<Url, InfoJson>>(&string) - .context("Failed to deserialize value")?, - ); - } }, Command::Comments {} => { comments::comments(&app).await?; |