Replace youtube-dl with yt-dlp
This commit is contained in:
parent
1f71a68dd0
commit
2965bdb38d
|
@ -1,6 +1,14 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
with pkgs;
|
||||
|
||||
# HACK Replace youtube-dl with yt-dlp in mopidy-youtube
|
||||
let
|
||||
mopidy-youtube-yt_dlp = mopidy-youtube.overrideAttrs (old: rec {
|
||||
propagatedBuildInputs = old.propagatedBuildInputs
|
||||
++ [ python3.pkgs.yt-dlp ];
|
||||
});
|
||||
in {
|
||||
# Configure pipewire as sound server
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
|
@ -32,12 +40,8 @@
|
|||
# Set up Mopidy
|
||||
services.mopidy = {
|
||||
enable = true;
|
||||
extensionPackages = with pkgs; [
|
||||
mopidy-mpd
|
||||
mopidy-youtube
|
||||
mopidy-somafm
|
||||
mopidy-local
|
||||
];
|
||||
extensionPackages =
|
||||
[ mopidy-mpd mopidy-youtube-yt_dlp mopidy-somafm mopidy-local ];
|
||||
configuration = ''
|
||||
[audio]
|
||||
mixer_volume =
|
||||
|
@ -71,6 +75,7 @@
|
|||
[youtube]
|
||||
allow_cache = true
|
||||
search_results = 50
|
||||
youtube_dl_package = yt_dlp
|
||||
|
||||
[somafm]
|
||||
encoding = aac
|
||||
|
|
|
@ -78,7 +78,7 @@ in {
|
|||
mpv
|
||||
patched-webtorrent-cli
|
||||
deluge
|
||||
youtube-dl-light
|
||||
yt-dlp-light
|
||||
calibre
|
||||
beets
|
||||
# File management
|
||||
|
|
Loading…
Reference in New Issue