Merge pull request #449 from PikuZheng/patch-2

add flac format for audio
pull/455/head
Alex 2024-06-07 13:50:44 +03:00 committed by GitHub
commit 6b4db7c757
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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',