Skip to content

Commit

Permalink
feat: pass unnamed options after all other ones
Browse files Browse the repository at this point in the history
  • Loading branch information
pzhlkj6612 authored Jun 18, 2024
1 parent da1b661 commit f66e5f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ services:
- STREAMLINK_RETRY_TOTAL_SECONDS= # 42 seconds between attempts, 0 second (no retry) by default.
- STREAMLINK_RINGBUFFER_SIZE= # "--ringbuffer-size", 200M by default.
- STREAMLINK_HLS_START_OFFSET= # "--hls-start-offset", 00:00:00 by default.
- STREAMLINK_OPTIONS= # options passed into streamlink before all others.
- STREAMLINK_OPTIONS= # options passed into streamlink after all others.

# yt-dlp
- YTDLP_STREAM_URL= # enable yt-dlp.
Expand All @@ -169,7 +169,7 @@ services:
- YTDLP_BUFFER_SIZE= # "--buffer-size", 200M by default.
- YTDLP_USERNAME= # "--username", empty by default.
- YTDLP_PASSWORD= # "--password", empty by default.
- YTDLP_OPTIONS= # options passed into yt-dlp before all others.
- YTDLP_OPTIONS= # options passed into yt-dlp after all others.

# direct download
- VIDEO_FILE_URL= # download a video file.
Expand Down
4 changes: 2 additions & 2 deletions script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ fi

streamlink_record_stdout_no_url_no_default_stream_partial_command=(
'streamlink'
${STREAMLINK_OPTIONS}
'--plugin-dirs=''/SL-plugins'
'--stdout'
'--loglevel=trace'
Expand All @@ -49,6 +48,7 @@ streamlink_record_stdout_no_url_no_default_stream_partial_command=(
'--ringbuffer-size' "${STREAMLINK_RINGBUFFER_SIZE:-200M}"
'--hls-start-offset' "${STREAMLINK_HLS_START_OFFSET:-00:00:00}"
'--stream-segment-threads' "${DOWNLOAD_THREAD_NUM:-1}"
${STREAMLINK_OPTIONS}
# '--url'
# '--default-stream'
)
Expand All @@ -61,14 +61,14 @@ fi

ytdlp_record_stdout_no_url_no_format_partial_command=(
'yt-dlp'
${YTDLP_OPTIONS}
'--output' '-'
'--verbose'
'--wait-for-video' "${YTDLP_WAIT_FOR_VIDEO:-19-26}"
'--buffer-size' "${YTDLP_BUFFER_SIZE:-200M}"
'--username' "${YTDLP_USERNAME:-}"
'--password' "${YTDLP_PASSWORD:-}"
'--concurrent-fragments' "${DOWNLOAD_THREAD_NUM:-1}"
${YTDLP_OPTIONS}
# '--format'
# 'URL'
)
Expand Down

0 comments on commit f66e5f4

Please sign in to comment.