chore(instagram): change function name

This commit is contained in:
Kristofers Solo 2025-10-27 10:53:14 +02:00
parent 8e339e53c7
commit 881d730483
Signed by: kristoferssolo
GPG Key ID: 74FF8144483D82C8
2 changed files with 4 additions and 4 deletions

View File

@ -110,7 +110,7 @@ async fn run_command_in_tempdir(cmd: &str, args: &[&str]) -> Result<DownloadResu
///
/// - Propagates `run_command_in_tempdir` errors.
#[cfg(feature = "instagram")]
pub async fn download_instaloader(url: &str) -> Result<DownloadResult> {
pub async fn download_instagram(url: &str) -> Result<DownloadResult> {
let base_args = ["--extractor-args", "instagram:"];
let mut args = base_args
.iter()

View File

@ -1,4 +1,4 @@
use crate::download::{download_instaloader, process_download_result};
use crate::download::{download_instagram, process_download_result};
use crate::error::Result;
use crate::handlers::SocialHandler;
use regex::Regex;
@ -42,8 +42,8 @@ impl SocialHandler for InstagramHandler {
}
async fn handle(&self, bot: &Bot, chat_id: ChatId, url: String) -> Result<()> {
info!(handler = %self.name(), url = %url, "handling instagram code");
let dr = download_instaloader(&url).await?;
info!(handler = %self.name(), url = %url, "handling instagram url");
let dr = download_instagram(&url).await?;
process_download_result(bot, chat_id, dr).await
}