fix: sync-music: also patch cue files for .wav -> .opus

This commit is contained in:
eriedaberrie 2024-11-06 00:02:40 -08:00
parent 3adb38248e
commit 117325d1ef
2 changed files with 4 additions and 3 deletions

View file

@ -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": {

View file

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