Skip to content

Commit

Permalink
Merge pull request #8 from ctpk/master
Browse files Browse the repository at this point in the history
Apply .aac extension so playback works in downstream Anki clients
  • Loading branch information
djahandarie authored Mar 23, 2023
2 parents 227879a + 6c59edd commit e358d21
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ext/js/media/media-util.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ class MediaUtil {
*/
static getFileExtensionFromAudioMediaType(mediaType) {
switch (mediaType) {
case 'audio/aac':
return '.aac';
case 'audio/mpeg':
case 'audio/mp3':
return '.mp3';
Expand Down

0 comments on commit e358d21

Please sign in to comment.