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
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ./comments.txt:/app/comments.txt:ro
|
- ./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)
|
// collect files produced in tempdir (async)
|
||||||
let mut rd = read_dir(&cwd).await?;
|
let mut rd = read_dir(&cwd).await?;
|
||||||
|
dbg!(&rd);
|
||||||
let mut files = Vec::new();
|
let mut files = Vec::new();
|
||||||
while let Some(entry) = rd.next_entry().await? {
|
while let Some(entry) = rd.next_entry().await? {
|
||||||
if entry.file_type().await?.is_file() {
|
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.
|
/// - Propagates `run_command_in_tempdir` errors.
|
||||||
pub async fn download_instaloader(shortcode: &str) -> Result<DownloadResult> {
|
pub async fn download_instaloader(shortcode: &str) -> Result<DownloadResult> {
|
||||||
let args = [
|
let args = [
|
||||||
|
"--dirname-pattern=.",
|
||||||
"--no-metadata-json",
|
"--no-metadata-json",
|
||||||
"--no-compress-json",
|
"--no-compress-json",
|
||||||
"--quiet",
|
"--quiet",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user