add flac format for audio
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import copy
|
import copy
|
||||||
|
|
||||||
AUDIO_FORMATS = ("m4a", "mp3", "opus", "wav")
|
AUDIO_FORMATS = ("m4a", "mp3", "opus", "wav", "flac")
|
||||||
|
|
||||||
|
|
||||||
def get_format(format: str, quality: str) -> str:
|
def get_format(format: str, quality: str) -> str:
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ export class AppComponent implements AfterViewInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
isAudioType() {
|
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[]> {
|
getMatchingCustomDir() : Observable<string[]> {
|
||||||
|
|||||||
@@ -66,6 +66,13 @@ export const Formats: Format[] = [
|
|||||||
{ id: 'best', text: 'Best' },
|
{ id: 'best', text: 'Best' },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: 'flac',
|
||||||
|
text: 'FLAC',
|
||||||
|
qualities: [
|
||||||
|
{ id: 'best', text: 'Best' },
|
||||||
|
],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: 'thumbnail',
|
id: 'thumbnail',
|
||||||
text: 'Thumbnail',
|
text: 'Thumbnail',
|
||||||
|
|||||||
Reference in New Issue
Block a user