Skip to content

yt-dlp has new requirements for YouTube downloads #268

Open

Description

@benoit74

Activity

  1. added this to the 5.3.0 milestone on Nov 3, 2025
  2. added
    bug
    on Nov 3, 2025
  3. kelson42 commented on Nov 4, 2025

    @kelson42
    Contributor

    Nice.... :(

  4. rgaudin commented on Nov 4, 2025

    @rgaudin
    Member

    Ah it's the same one @Popolechien mentioned 6w ago ; I was afraid there was yet again new reqs.

  5. benoit74 commented on Nov 4, 2025

    @benoit74
    CollaboratorAuthor

    There are new reqs, but "luckily" they are well packaged and supposed to be very small, so we should have nothing to do besides installing proper extra.

  6. chapmanjacobd commented on Nov 4, 2025

    @chapmanjacobd

    so we should have nothing to do besides installing proper extra

    This link is a bit more clear/up-to-date: https://github.com/yt-dlp/yt-dlp/wiki/EJS

    That is, besides yt-dlp[default] (which pulls in yt-dlp-ejs), you might also need to install a javascript runtime if you don't have one already. Deno works out of the box but the others require passing specific configuration to enable

  7. benoit74 commented on Nov 5, 2025

    @benoit74
    CollaboratorAuthor

    Thank you @chapmanjacobd , looks like we indeed miss the javascript runtime in linked PR.

    Do you know where one can find documentation about how to test if yt-dlp has all required stuff to use the new challenge solver? Is there a reliable way to check this?

  8. chapmanjacobd commented on Nov 5, 2025

    @chapmanjacobd

    If you run something like this yt-dlp -vvF https://m.youtube.com/watch?v=uFI5WpK2sgg

    you should see these lines:

    ...
    [debug] yt-dlp version nightly@2025.11.03.233024 from yt-dlp/yt-dlp-nightly-builds [ffb7b7f44] (pip)
    ...
    [debug] Optional libraries: ..., yt_dlp_ejs-0.3.0
    ...
    [debug] JS runtimes: deno-2.5.6
    ...
    [debug] [youtube] [jsc] JS Challenge Providers: bun (unavailable), deno, node (unavailable), quickjs (unavailable)
    ...
    [youtube] [jsc:deno] Solving JS challenges using deno
    [debug] [youtube] [jsc:deno] Using challenge solver lib script v0.3.0 (source: python package, variant: minified)
    [debug] [youtube] [jsc:deno] Using challenge solver core script v0.3.0 (source: python package, variant: minified)
    [debug] [youtube] [jsc:deno] Running deno: deno run --ext=js --no-code-cache --no-prompt --no-remote --no-lock --node-modules-dir=none --no-config --no-npm --cached-only -
    ...
    

    deno just needs to be in the PATH somewhere, similar to the ffmpeg dependency

  9. benoit74 commented on Nov 14, 2025

    @benoit74
    CollaboratorAuthor

    I've tested and I can confirm that installation both yt-dlp[default] and deno>=2.0,<3.0 allows to download youtube videos correctly again, except that deno python dependency is not recommend + does not chmod +x deno dependency...

    I now consider we should not make this move to add these in python-scraperlib, at least not for now.

    deno is a 108M dependency as of 2.5.6. And default extra of yt-dlp probably adds some size as well.

    This is just too much size for most scrapers which don't care about yt-dlp, and not about youtube. And since there is no need to add any code in the scraperlib, there is not much incentive to do so.

    I recommend we wait for #244 to do that in a better way. Until then, scrapers interested by youtube downloads (only youtube, ted and openedx - sic - scrapers) should install yt-dlp[default] and deno>=2.0,<3.0 on their own. I would just add a warning in the scraperlib README for now.

    @rgaudin WDYT?

  10. rgaudin commented on Nov 14, 2025

    @rgaudin
    Member

    OK, maybe a runtime warning when using video module?

  11. benoit74 commented on Nov 14, 2025

    @benoit74
    CollaboratorAuthor

    youtube-dlp already issues a warning when it downloads from youtube but misses the Javascript runtime ... this is far superior (because way more precise) than anything we could do in the scraperlib.

    See https://farm.openzim.org/pipeline/08152988-b346-4219-8c04-8c44a6fb8574/debug logs ... which are quite explicit about the fact that we need to release youtube scraper again 🤣

  12. modified the milestones: 5.3.0, 6.0.0 on Nov 14, 2025
  13. rgaudin commented on Nov 14, 2025

    @rgaudin
    Member

    Perfect

  14. removed
    bug
    on Oct 1, 2026
  15. added theissue type on Oct 1, 2026
  16. pawank925 commented on Nov 12, 2026

    @pawank925
    Contributor

    @benoit74 assign please

  17. benoit74 commented on Nov 12, 2026

    @benoit74
    CollaboratorAuthor

    @pawank925 how do you intend to fix that? I'm really not sure about what is the plan

  18. pawank925 commented on Nov 13, 2026

    @pawank925
    Contributor

    @benoit74 Docs-only, in line with what you concluded in November: no new dependency in scraperlib and no runtime warning of our own, yt-dlp's is more precise than anything we could write.

    What I'd fix is that the README warning only says "install them on your own" without saying what "them" is, so a scraper maintainer cannot act on it. Concretely:

    • name the two things to install: yt-dlp[default], which is what brings yt-dlp-ejs (0.8.0 currently), and a JS runtime on the PATH. deno works out of the box, node/bun/quickjs need yt-dlp options.
    • warn against the deno python package, the one you already found unfitting and missing the chmod, so that nobody thinks pip solves this.
    • give the way to check it is all set: yt-dlp -vvF <youtube-url> must print a [debug] JS runtimes: deno-... line and [youtube] [jsc:deno] Solving JS challenges using deno.
    • list deno in the Dependencies section next to FFmpeg, and in the OS blocks below it: brew install deno on macOS, apk add deno on Alpine, and the official installer on Debian/Ubuntu which package it nowhere. People look there for system packages and not at a warning at the top of the README, so the warning alone is not enough.

    No code change, hence no tests. The issue should stay open until #244 gives us a proper way to ship these as an extra; the PR only closes the documentation gap in the meantime.

  19. benoit74 commented on Nov 13, 2026

    @benoit74
    CollaboratorAuthor

    Perfect, docs indeed needs to be fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions