[GH-ISSUE #1339] Bug: yt-dlp --trim-filenames requires an integer argument #3837

Closed
opened 2026-03-15 00:38:41 +03:00 by kerem · 1 comment
Owner

Originally created by @kureta on GitHub (Jan 31, 2024).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1339

Describe the bug

yt-dlp gives this error:

yt-dlp: error: option --trim-filenames: invalid integer value: '--write-description'

Apparently --trim-filenames option requires an integer parameter. I ran the command modified as --trim-filenames 120 and it worked without any problems.

Steps to reproduce

  1. Ran ArchiveBox with docker compose
  2. Enabled saving media with SAVE_MEDIA=True environment variable.
  3. All media downloads failed
  4. Worked as expected when I specified 120 as filename length limit

Screenshots or log output

yt-dlp: error: option --trim-filenames: invalid integer value: '--write-description'

ArchiveBox version

0.7.3
ArchiveBox v0.7.3+editable COMMIT_HASH=2b6bd42 BUILD_TIME=2024-01-30 11:47:22 1706615242
IN_DOCKER=True IN_QEMU=False ARCH=aarch64 OS=Linux PLATFORM=Linux-6.2.10-1-aarch64-ARCH-aarch64-with-glibc2.36 PYTHON=Cpython
FS_ATOMIC=True FS_REMOTE=True FS_USER=1000:1000 FS_PERMS=644
DEBUG=False IS_TTY=True TZ=UTC SEARCH_BACKEND=sonic LDAP=False

[i] Dependency versions:
 √  PYTHON_BINARY         v3.11.7         valid     /usr/local/bin/python3.11
 √  SQLITE_BINARY         v2.6.0          valid     /usr/local/lib/python3.11/sqlite3/dbapi2.py
 √  DJANGO_BINARY         v3.1.14         valid     /usr/local/lib/python3.11/site-packages/django/__init__.py
 √  ARCHIVEBOX_BINARY     v0.7.3          valid     /usr/local/bin/archivebox

 √  CURL_BINARY           v8.5.0          valid     /usr/bin/curl
 √  WGET_BINARY           v1.21.3         valid     /usr/bin/wget
 √  NODE_BINARY           v20.11.0        valid     /usr/bin/node
 √  SINGLEFILE_BINARY     v1.1.46         valid     /app/node_modules/single-file-cli/single-file
 √  READABILITY_BINARY    v0.0.11         valid     /app/node_modules/readability-extractor/readability-extractor
 √  MERCURY_BINARY        v1.0.0          valid     /app/node_modules/@postlight/parser/cli.js
 √  GIT_BINARY            v2.39.2         valid     /usr/bin/git
 √  YOUTUBEDL_BINARY      v2023.12.30     valid     /usr/local/bin/yt-dlp
 √  CHROME_BINARY         v121.0.6167.57  valid     /usr/bin/chromium-browser
 √  RIPGREP_BINARY        v13.0.0         valid     /usr/bin/rg

[i] Source-code locations:
 √  PACKAGE_DIR           23 files        valid     /app/archivebox
 √  TEMPLATES_DIR         3 files         valid     /app/archivebox/templates
 -  CUSTOM_TEMPLATES_DIR  -               disabled  None

[i] Secrets locations:
 -  CHROME_USER_DATA_DIR  -               disabled  None
 -  COOKIES_FILE          -               disabled  None

[i] Data locations:
 √  OUTPUT_DIR            7 files @       valid     /data
 √  SOURCES_DIR           3 files         valid     ./sources
 √  LOGS_DIR              1 files         valid     ./logs
 √  ARCHIVE_DIR           180 files       valid     ./archive
 √  CONFIG_FILE           81.0 Bytes      valid     ./ArchiveBox.conf
 √  SQL_INDEX             2.5 MB          valid     ./index.sqlite3
Originally created by @kureta on GitHub (Jan 31, 2024). Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1339 <!-- Please fill out the following information, feel free to delete sections if they're not applicable or if long issue templates annoy you. (the only required section is the version information) --> #### Describe the bug `yt-dlp` gives this error: `yt-dlp: error: option --trim-filenames: invalid integer value: '--write-description'` Apparently `--trim-filenames` option requires an integer parameter. I ran the command modified as `--trim-filenames 120` and it worked without any problems. #### Steps to reproduce 1. Ran ArchiveBox with `docker compose` 2. Enabled saving media with `SAVE_MEDIA=True` environment variable. 3. All media downloads failed 4. Worked as expected when I specified 120 as filename length limit #### Screenshots or log output `yt-dlp: error: option --trim-filenames: invalid integer value: '--write-description'` #### ArchiveBox version <!-- Run the `archivebox version` command locally then copy paste the result here: --> ```logs 0.7.3 ArchiveBox v0.7.3+editable COMMIT_HASH=2b6bd42 BUILD_TIME=2024-01-30 11:47:22 1706615242 IN_DOCKER=True IN_QEMU=False ARCH=aarch64 OS=Linux PLATFORM=Linux-6.2.10-1-aarch64-ARCH-aarch64-with-glibc2.36 PYTHON=Cpython FS_ATOMIC=True FS_REMOTE=True FS_USER=1000:1000 FS_PERMS=644 DEBUG=False IS_TTY=True TZ=UTC SEARCH_BACKEND=sonic LDAP=False [i] Dependency versions: √ PYTHON_BINARY v3.11.7 valid /usr/local/bin/python3.11 √ SQLITE_BINARY v2.6.0 valid /usr/local/lib/python3.11/sqlite3/dbapi2.py √ DJANGO_BINARY v3.1.14 valid /usr/local/lib/python3.11/site-packages/django/__init__.py √ ARCHIVEBOX_BINARY v0.7.3 valid /usr/local/bin/archivebox √ CURL_BINARY v8.5.0 valid /usr/bin/curl √ WGET_BINARY v1.21.3 valid /usr/bin/wget √ NODE_BINARY v20.11.0 valid /usr/bin/node √ SINGLEFILE_BINARY v1.1.46 valid /app/node_modules/single-file-cli/single-file √ READABILITY_BINARY v0.0.11 valid /app/node_modules/readability-extractor/readability-extractor √ MERCURY_BINARY v1.0.0 valid /app/node_modules/@postlight/parser/cli.js √ GIT_BINARY v2.39.2 valid /usr/bin/git √ YOUTUBEDL_BINARY v2023.12.30 valid /usr/local/bin/yt-dlp √ CHROME_BINARY v121.0.6167.57 valid /usr/bin/chromium-browser √ RIPGREP_BINARY v13.0.0 valid /usr/bin/rg [i] Source-code locations: √ PACKAGE_DIR 23 files valid /app/archivebox √ TEMPLATES_DIR 3 files valid /app/archivebox/templates - CUSTOM_TEMPLATES_DIR - disabled None [i] Secrets locations: - CHROME_USER_DATA_DIR - disabled None - COOKIES_FILE - disabled None [i] Data locations: √ OUTPUT_DIR 7 files @ valid /data √ SOURCES_DIR 3 files valid ./sources √ LOGS_DIR 1 files valid ./logs √ ARCHIVE_DIR 180 files valid ./archive √ CONFIG_FILE 81.0 Bytes valid ./ArchiveBox.conf √ SQL_INDEX 2.5 MB valid ./index.sqlite3 ``` <!-- Tickets without full version info will closed until it is provided, we need the full output here to help you solve your issue -->
kerem closed this issue 2026-03-15 00:38:47 +03:00
Author
Owner

@pirate commented on GitHub (Jan 31, 2024):

Whoops thanks for reporting! Fixed: github.com/ArchiveBox/ArchiveBox@a4bd441077

Wait ~15min for the builds to finish and then pull and try again.

<!-- gh-comment-id:1918767630 --> @pirate commented on GitHub (Jan 31, 2024): Whoops thanks for reporting! Fixed: https://github.com/ArchiveBox/ArchiveBox/commit/a4bd4410775d46863a4c1a16e48e5acf5722e8a5 Wait ~15min for the builds to finish and then pull and try again.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ArchiveBox#3837
No description provided.