mirror of
https://github.com/kristoferssolo/tg-relay-rs.git
synced 2025-12-20 11:04:41 +00:00
fix: instagram fetch
This commit is contained in:
parent
1c2d5828f9
commit
1cf495078e
@ -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
|
||||
|
||||
@ -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",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user