Fix mopidy youtube search by accepting the cookies

This commit is contained in:
coolneng 2021-05-15 15:34:08 +02:00
parent 093d8aa023
commit 641b6c99d8
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 8 additions and 1 deletions

View File

@ -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
];