Temporarily force FLAC files to go through ffmpeg

Something is wrong with the structure of the downloaded files and taglib is NOT happy with them
This commit is contained in:
Daniel 2026-03-09 15:56:42 +00:00 committed by GitHub
parent 42101353ab
commit 37f70f5390
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -1400,7 +1400,7 @@ export class LosslessAPI {
try {
switch (losslessContainerSettings.getContainer()) {
case 'flac':
if ((await getExtensionFromBlob(blob)) != 'flac') {
if ((await getExtensionFromBlob(blob)) != 'flac' || true) {
blob = await ffmpeg(
blob,
{ args: ['-vn', '-map_metadata', '-1', '-map', '0:a', '-c:a', 'flac'] },

View file

@ -380,7 +380,7 @@ async function downloadTrackBlob(track, quality, api, lyricsManager = null, sign
try {
switch (losslessContainerSettings.getContainer()) {
case 'flac':
if ((await getExtensionFromBlob(blob)) != 'flac') {
if ((await getExtensionFromBlob(blob)) != 'flac' || true) {
blob = await ffmpeg(
blob,
{ args: ['-vn', '-map_metadata', '-1', '-map', '0:a', '-c:a', 'flac'] },