fix(tiktok): add tiktok cookie

This commit is contained in:
Kristofers Solo 2025-10-27 11:02:44 +02:00
parent 24bfeb4efc
commit 0b6012e383
Signed by: kristoferssolo
GPG Key ID: 74FF8144483D82C8
2 changed files with 3 additions and 1 deletions

View File

@ -8,8 +8,10 @@ services:
environment:
TELOXIDE_TOKEN: ${TELOXIDE_TOKEN}
IG_SESSION_COOKIE_PATH: /app/www.instagram.com_cookies.txt
TIKTOK_SESSION_COOKIE_PATH: /app/www.tiktok.com_cookies.txt
RUST_LOG: ${RUST_LOG:-info}
restart: unless-stopped
volumes:
- ./comments.txt:/app/comments.txt:ro
- ${IG_SESSION_COOKIE_PATH:-/etc/secrets/www.instagram.com_cookies.txt}:/app/www.instagram.com_cookies.txt:rw
- ${TIKTOK_SESSION_COOKIE_PATH:-/etc/secrets/www.tiktok.com_cookies.txt}:/app/www.tiktok.com_cookies.txt:rw

View File

@ -136,7 +136,7 @@ pub async fn download_tiktok(url: &str) -> Result<DownloadResult> {
.map(ToString::to_string)
.collect::<Vec<_>>();
if let Ok(cookies_path) = env::var("IG_SESSION_COOKIE_PATH") {
if let Ok(cookies_path) = env::var("TIKTOK_SESSION_COOKIE_PATH") {
args.extend(["--cookies".into(), cookies_path]);
}