Skip to content

Commit

Permalink
Merge pull request #449 from PikuZheng/patch-2
Browse files Browse the repository at this point in the history
add flac format for audio
  • Loading branch information
alexta69 committed Jun 7, 2024
2 parents c6c02af + 69c2f31 commit 6b4db7c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/dl_formats.py
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion ui/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[]> {
Expand Down
7 changes: 7 additions & 0 deletions ui/src/app/formats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 6b4db7c

Please sign in to comment.