Earlier quoted context omitted.
It's fine for this project since google is probably not in the business of triggering exploits in yt-dlp users but please do not use deno sandboxing as a your main security measure to execute untrusted code . Runtime-level sandboxing is always very weak. Relying on OS-level sandboxing or VMs (firecracker & co) is the right way for this.
> Runtime-level sandboxing is always very weak. Relying on OS-level sandboxing or VMs (firecracker & co) is the right way for this. ... Isn't the web browser's sandboxing runtime-level?
Yt-dlp: External JavaScript runtime now required for full YouTube support
491–500 of 646 posts
Re: Yt-dlp: External JavaScript runtime now required for full YouTube support
#492Earlier quoted context omitted.
No, it's also iOS that's arbitrarily restricting it. I opened a bare .webm directly in Safari and got nothing on long press and nothing in any of the control widgets to save it.
Long pressing on https://www.learningcontainer.com/wp-content/uploads/2024/07... gets me https://imgur.com/a/bseFwX3 on iOS 18, and https://imgur.com/a/Ksbz3zW on iOS 26 Maybe you're holding it wrong?
Re: Yt-dlp: External JavaScript runtime now required for full YouTube support
#493Earlier quoted context omitted.
The really shitty thing is that vulnerable devices get blacklisted en masse, so all legitimate users get stuck with 480p video content on streaming services. The Nexus 5 got this treatment, as I understand it, because it was too easy to extract the keys.
Not a Netflix user here: Are you saying that paying customers get cut off from higher video quality, that they are possibly paying for, and pressured into buying new devices? That shit should be illegal!
Re: Yt-dlp: External JavaScript runtime now required for full YouTube support
#494Seems its already in Arch's repositories, and seems to work, just add another flag to the invocation: yt-dlp --cookies-from-browser firefox --remote-components ejs:github -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best" 'https://www.youtube.com/watch?v=XXX' It is downloading a solver at runtime, took maybe half a second in total, downloads are starting way faster than before it seems to me. [youtube] [js…
What environment are you using that: - Has access to Youtube - Can run Python code - Can’t run JS code If the concern is security, it sounds like the team went to great lengths to ensure the JS was sandboxed (as long as you’re using Deno). If you’re using some sort of weird OS or architecture that Deno/Node doesn’t support, you might consider QuickJS, which is written in pure C and should work on anything. (Although…
FROM python:3-slim
RUN python3 -m pip --no-cache-dir install 'yt-dlp[default]'
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -q -y ffmpeg curl unzip \
&& curl -fsSL https://deno.land/install.sh -o /tmp/deno.sh \
&& sh /tmp/deno.sh -y \
&& mv /root/.deno/bin/deno /usr/local/bin/ \
&& rm --force --recursive /var/lib/apt/lists/* /tmp/* /var/tmp/*
ENTRYPOINT ["yt-dlp"]Re: Yt-dlp: External JavaScript runtime now required for full YouTube support
#495Earlier quoted context omitted.
> It's fine for this project since google is probably not in the business of triggering exploits in yt-dlp yt-dlp supports a huge list of websites other than youtube
Is there a full list? I struggled to find one
Re: Yt-dlp: External JavaScript runtime now required for full YouTube support
#496Earlier quoted context omitted.
> Runtime-level sandboxing is always very weak. Relying on OS-level sandboxing or VMs (firecracker & co) is the right way for this. ... Isn't the web browser's sandboxing runtime-level?
Yes, and it's only reasonably secure because of years of exploits being found and fixed by some of the best (and very well-funded) software security engineers out there.
Re: Yt-dlp: External JavaScript runtime now required for full YouTube support
#497Earlier quoted context omitted.
It's fine for this project since google is probably not in the business of triggering exploits in yt-dlp users but please do not use deno sandboxing as a your main security measure to execute untrusted code . Runtime-level sandboxing is always very weak. Relying on OS-level sandboxing or VMs (firecracker & co) is the right way for this.
> Runtime-level sandboxing is always very weak. Relying on OS-level sandboxing or VMs (firecracker & co) is the right way for this. ... Isn't the web browser's sandboxing runtime-level?
Re: Yt-dlp: External JavaScript runtime now required for full YouTube support
#498Earlier quoted context omitted.
YT works pretty flawlessly for me with firefox on debian. What's the issue you're seeing?
If you are blocking ads now, the videos will start in a very delayed fashion almost as if the server is waiting the length expected for the ad to take before streaming you any bytes.
Re: Yt-dlp: External JavaScript runtime now required for full YouTube support
#499Earlier quoted context omitted.
> Runtime-level sandboxing is always very weak. Relying on OS-level sandboxing or VMs (firecracker & co) is the right way for this. ... Isn't the web browser's sandboxing runtime-level?
Yes, and it's only reasonably secure because of years of exploits being found and fixed by some of the best (and very well-funded) software security engineers out there.