From 117325d1efaee6acd1327f44e933df9065af1e3b Mon Sep 17 00:00:00 2001 From: eriedaberrie Date: Wed, 6 Nov 2024 00:02:40 -0800 Subject: [PATCH] fix: sync-music: also patch cue files for .wav -> .opus --- flake.lock | 6 +++--- sync-music/actions.lisp | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index 9e2bbde..29b6abc 100644 --- a/flake.lock +++ b/flake.lock @@ -25,11 +25,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1729880355, - "narHash": "sha256-RP+OQ6koQQLX5nw0NmcDrzvGL8HDLnyXt/jHhL1jwjM=", + "lastModified": 1730531603, + "narHash": "sha256-Dqg6si5CqIzm87sp57j5nTaeBbWhHFaVyG7V6L8k3lY=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "18536bf04cd71abd345f9579158841376fdd0c5a", + "rev": "7ffd9ae656aec493492b44d0ddfb28e79a1ea25d", "type": "github" }, "original": { diff --git a/sync-music/actions.lisp b/sync-music/actions.lisp index db1dc36..2adb9c4 100644 --- a/sync-music/actions.lisp +++ b/sync-music/actions.lisp @@ -49,6 +49,7 @@ Pushes status message about this action to QUEUE if given.")) (setf buf (make-array (file-length input) :element-type 'octet)) (read-sequence buf input)) (setf buf (replace-text-buffer buf ".flac" ".opus")) + (setf buf (replace-text-buffer buf ".wav" ".opus")) (with-open-file (output (action-target a) :element-type 'octet