Fix mopidy youtube search by accepting the cookies
This commit is contained in:
parent
093d8aa023
commit
641b6c99d8
|
@ -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
|
||||
];
|
||||
|
|
Loading…
Reference in New Issue