add flac format for audio

pull/449/head
PikuZheng 2024-06-07 10:35:04 +08:00
parent c6c02af4ff
commit 69c2f310c2
3 changed files with 9 additions and 2 deletions

View File

@ -1,6 +1,6 @@
import copy
AUDIO_FORMATS = ("m4a", "mp3", "opus", "wav")
AUDIO_FORMATS = ("m4a", "mp3", "opus", "wav", "flac")
def get_format(format: str, quality: str) -> str:

View File

@ -113,7 +113,7 @@ export class AppComponent implements AfterViewInit {
}
isAudioType() {
return this.quality == 'audio' || this.format == 'mp3' || this.format == 'm4a' || this.format == 'opus' || this.format == 'wav';
return this.quality == 'audio' || this.format == 'mp3' || this.format == 'm4a' || this.format == 'opus' || this.format == 'wav' || this.format == 'flac';
}
getMatchingCustomDir() : Observable<string[]> {

View File

@ -66,6 +66,13 @@ export const Formats: Format[] = [
{ id: 'best', text: 'Best' },
],
},
{
id: 'flac',
text: 'FLAC',
qualities: [
{ id: 'best', text: 'Best' },
],
},
{
id: 'thumbnail',
text: 'Thumbnail',