fix: instagram fetch

This commit is contained in:
Kristofers Solo 2025-09-20 00:46:37 +03:00
parent 1c2d5828f9
commit 1cf495078e
Signed by: kristoferssolo
GPG Key ID: 8687F2D3EEE6F0ED
2 changed files with 3 additions and 1 deletions

View File

@ -12,4 +12,4 @@ services:
restart: unless-stopped
volumes:
- ./comments.txt:/app/comments.txt:ro
- /etc/secrets/yt-cookies.txt:/app/yt-cookies.txt:ro
- /etc/secrets/yt-cookies.txt:/app/yt-cookies.txt

View File

@ -49,6 +49,7 @@ async fn run_command_in_tempdir(cmd: &str, args: &[&str]) -> Result<DownloadResu
// collect files produced in tempdir (async)
let mut rd = read_dir(&cwd).await?;
dbg!(&rd);
let mut files = Vec::new();
while let Some(entry) = rd.next_entry().await? {
if entry.file_type().await?.is_file() {
@ -73,6 +74,7 @@ async fn run_command_in_tempdir(cmd: &str, args: &[&str]) -> Result<DownloadResu
/// - Propagates `run_command_in_tempdir` errors.
pub async fn download_instaloader(shortcode: &str) -> Result<DownloadResult> {
let args = [
"--dirname-pattern=.",
"--no-metadata-json",
"--no-compress-json",
"--quiet",