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, ... }: { 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 # Configure pipewire as sound server
services.pipewire = { services.pipewire = {
enable = true; enable = true;
@ -32,12 +40,8 @@
# Set up Mopidy # Set up Mopidy
services.mopidy = { services.mopidy = {
enable = true; enable = true;
extensionPackages = with pkgs; [ extensionPackages =
mopidy-mpd [ mopidy-mpd mopidy-youtube-yt_dlp mopidy-somafm mopidy-local ];
mopidy-youtube
mopidy-somafm
mopidy-local
];
configuration = '' configuration = ''
[audio] [audio]
mixer_volume = mixer_volume =
@ -71,6 +75,7 @@
[youtube] [youtube]
allow_cache = true allow_cache = true
search_results = 50 search_results = 50
youtube_dl_package = yt_dlp
[somafm] [somafm]
encoding = aac encoding = aac

View File

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