Replace youtube-dl with yt-dlp

This commit is contained in:
coolneng 2022-04-25 04:02:37 +02:00
parent 1f71a68dd0
commit 2965bdb38d
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
2 changed files with 13 additions and 8 deletions

View File

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

View File

@ -78,7 +78,7 @@ in {
mpv
patched-webtorrent-cli
deluge
youtube-dl-light
yt-dlp-light
calibre
beets
# File management