From 641b6c99d834bed24d7b1aac62a9801432770c78 Mon Sep 17 00:00:00 2001 From: coolneng Date: Sat, 15 May 2021 15:34:08 +0200 Subject: [PATCH] Fix mopidy youtube search by accepting the cookies --- modules/audio.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/audio.nix b/modules/audio.nix index c039ed2..2b7b1f1 100644 --- a/modules/audio.nix +++ b/modules/audio.nix @@ -4,6 +4,13 @@ let soundcloud_token = builtins.readFile /home/coolneng/.config/mopidy/soundcloud-auth; + fixed-mopidy-youtube = pkgs.mopidy-youtube.overrideAttrs (old: rec { + patchPhase = '' + sed s/bs4/beautifulsoup4/ -i setup.cfg + sed s/"PREF=hl=en;"/"PREF=hl=en; CONSENT=YES+20210329;"/ -i mopidy_youtube/backend.py + ''; + }); + in { # Configure pipewire as sound server services.pipewire = { @@ -38,7 +45,7 @@ in { extensionPackages = with pkgs; [ mopidy-mpd mopidy-soundcloud - mopidy-youtube + fixed-mopidy-youtube mopidy-somafm mopidy-local ];