diff options
-rw-r--r-- | yt/src/subscribe/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yt/src/subscribe/mod.rs b/yt/src/subscribe/mod.rs index e6a5f51..7ac0be4 100644 --- a/yt/src/subscribe/mod.rs +++ b/yt/src/subscribe/mod.rs @@ -141,9 +141,9 @@ pub async fn subscribe(app: &App, name: Option<String>, url: Url) -> Result<()> } async fn actual_subscribe(app: &App, name: Option<String>, url: Url) -> Result<()> { - if !check_url(&url).await? { + if !check_url(url.clone()).await? { bail!("The url ('{}') does not represent a playlist!", &url) - }; + } let name = if let Some(name) = name { name |