This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

tools.mpv: use yt-dlp master to fix YouTube 403 errors

Adds yt-dlp-master package built from git master which includes PR #15726
that removes the problematic android_sdkless player client.

Also changes ytdl-format from best to bestvideo+bestaudio to get separate
video/audio streams for quality menu support.

https://github.com/yt-dlp/yt-dlp/issues/15712

+30 -3
+24
5pkgs/yt-dlp-master/package.nix
··· 1 + { 2 + yt-dlp, 3 + fetchFromGitHub, 4 + }: 5 + 6 + yt-dlp.overrideAttrs (_old: { 7 + pname = "yt-dlp-master"; 8 + version = "unstable-2026-01-29"; 9 + 10 + src = fetchFromGitHub { 11 + owner = "yt-dlp"; 12 + repo = "yt-dlp"; 13 + rev = "309b03f2ad09fcfcf4ce81e757f8d3796bb56add"; 14 + hash = "sha256-Lg/b3LWMeKwiU14GiH+oH2H/e9ysUgICOEzGLqyFFMU="; 15 + }; 16 + 17 + # Remove patches that don't apply to master 18 + patches = [ ]; 19 + 20 + # Reset postPatch since nixpkgs patches don't apply 21 + postPatch = '' 22 + sed -i 's/^__version__ = .*/__version__ = "2026.01.29"/' yt_dlp/version.py || true 23 + ''; 24 + })
+6 -3
tools/mpv/flake-module.nix
··· 1 1 { self, ... }: 2 2 { 3 3 perSystem = 4 - { pkgs, ... }: 4 + { pkgs, system, ... }: 5 5 { 6 6 packages.mpv = 7 + let 8 + yt-dlp-master = self.packages.${system}.yt-dlp-master; 9 + in 7 10 let 8 11 # Lazy-loaded autosub script 9 12 autosub = pkgs.writeText "autosub.lua" '' ··· 55 58 visualizer 56 59 ]; 57 60 extraFlags = { 58 - "--ytdl-format" = "best[height<1081]"; 59 - "--script-opts" = "ytdl_hook-ytdl_path=${pkgs.yt-dlp}/bin/yt-dlp"; 61 + "--ytdl-format" = "bestvideo[height<=1080]+bestaudio/best"; 62 + "--script-opts" = "ytdl_hook-ytdl_path=${yt-dlp-master}/bin/yt-dlp"; 60 63 "--script-opts-append" = "sponsorblock-local_database=no"; 61 64 "--audio-channels" = "2"; 62 65 "--script" = autosub;