mirror of
https://github.com/kristoferssolo/tg-relay-rs.git
synced 2025-12-20 11:04:41 +00:00
fix(yt): cookies
This commit is contained in:
parent
b124a5bdc7
commit
6b7cab4032
@ -44,3 +44,4 @@ RUN uv tool install instaloader \
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=builder-rs /app/target/release/tg-relay-rs /usr/local/bin/tg-relay-rs
|
COPY --from=builder-rs /app/target/release/tg-relay-rs /usr/local/bin/tg-relay-rs
|
||||||
CMD ["/usr/local/bin/tg-relay-rs"]
|
CMD ["/usr/local/bin/tg-relay-rs"]
|
||||||
|
|
||||||
|
|||||||
@ -7,9 +7,9 @@ services:
|
|||||||
BINARY_NAME: tg-relay-rs
|
BINARY_NAME: tg-relay-rs
|
||||||
environment:
|
environment:
|
||||||
TELOXIDE_TOKEN: ${TELOXIDE_TOKEN}
|
TELOXIDE_TOKEN: ${TELOXIDE_TOKEN}
|
||||||
COOKIES_PATH: ${COOKIES_PATH:-/app/yt-cookies.txt}
|
COOKIES_PATH: /app/yt-cookies.txt
|
||||||
RUST_LOG: ${RUST_LOG:-info}
|
RUST_LOG: ${RUST_LOG:-info}
|
||||||
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
|
- /etc/secrets/yt-cookies.txt:/app/yt-cookies.txt:rw
|
||||||
|
|||||||
@ -131,7 +131,7 @@ pub async fn download_ytdlp<P: AsRef<Path>>(
|
|||||||
cookies_path: Option<P>,
|
cookies_path: Option<P>,
|
||||||
) -> Result<DownloadResult> {
|
) -> Result<DownloadResult> {
|
||||||
let format_selector = env::var("YTDLP_FORMAT").unwrap_or_else(|_| "best".into());
|
let format_selector = env::var("YTDLP_FORMAT").unwrap_or_else(|_| "best".into());
|
||||||
info!(format_selector = format_selector, "Video format");
|
info!(format_selector = format_selector, "video format");
|
||||||
|
|
||||||
let base_args = [
|
let base_args = [
|
||||||
"--no-playlist",
|
"--no-playlist",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user