mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	Add:Support for .awb AMR-WB audio file #1565
This commit is contained in:
		
							parent
							
								
									11ccbf1913
								
							
						
					
					
						commit
						146093d81e
					
				| @ -1,6 +1,6 @@ | |||||||
| const SupportedFileTypes = { | const SupportedFileTypes = { | ||||||
|   image: ['png', 'jpg', 'jpeg', 'webp'], |   image: ['png', 'jpg', 'jpeg', 'webp'], | ||||||
|   audio: ['m4b', 'mp3', 'm4a', 'flac', 'opus', 'ogg', 'oga', 'mp4', 'aac', 'wma', 'aiff', 'wav', 'webm', 'webma', 'mka'], |   audio: ['m4b', 'mp3', 'm4a', 'flac', 'opus', 'ogg', 'oga', 'mp4', 'aac', 'wma', 'aiff', 'wav', 'webm', 'webma', 'mka', 'awb'], | ||||||
|   ebook: ['epub', 'pdf', 'mobi', 'azw3', 'cbr', 'cbz'], |   ebook: ['epub', 'pdf', 'mobi', 'azw3', 'cbr', 'cbz'], | ||||||
|   info: ['nfo'], |   info: ['nfo'], | ||||||
|   text: ['txt'], |   text: ['txt'], | ||||||
|  | |||||||
| @ -82,7 +82,8 @@ class Stream extends EventEmitter { | |||||||
|       AudioMimeType.WMA, |       AudioMimeType.WMA, | ||||||
|       AudioMimeType.AIFF, |       AudioMimeType.AIFF, | ||||||
|       AudioMimeType.WEBM, |       AudioMimeType.WEBM, | ||||||
|       AudioMimeType.WEBMA |       AudioMimeType.WEBMA, | ||||||
|  |       AudioMimeType.AWB | ||||||
|     ] |     ] | ||||||
|   } |   } | ||||||
|   get codecsToForceAAC() { |   get codecsToForceAAC() { | ||||||
|  | |||||||
| @ -47,7 +47,8 @@ module.exports.AudioMimeType = { | |||||||
|   AIFF: 'audio/x-aiff', |   AIFF: 'audio/x-aiff', | ||||||
|   WEBM: 'audio/webm', |   WEBM: 'audio/webm', | ||||||
|   WEBMA: 'audio/webm', |   WEBMA: 'audio/webm', | ||||||
|   MKA: 'audio/x-matroska' |   MKA: 'audio/x-matroska', | ||||||
|  |   AWB: 'audio/amr-wb' | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| module.exports.VideoMimeType = { | module.exports.VideoMimeType = { | ||||||
|  | |||||||
| @ -1,6 +1,6 @@ | |||||||
| const globals = { | const globals = { | ||||||
|   SupportedImageTypes: ['png', 'jpg', 'jpeg', 'webp'], |   SupportedImageTypes: ['png', 'jpg', 'jpeg', 'webp'], | ||||||
|   SupportedAudioTypes: ['m4b', 'mp3', 'm4a', 'flac', 'opus', 'ogg', 'oga', 'mp4', 'aac', 'wma', 'aiff', 'wav', 'webm', 'webma', 'mka'], |   SupportedAudioTypes: ['m4b', 'mp3', 'm4a', 'flac', 'opus', 'ogg', 'oga', 'mp4', 'aac', 'wma', 'aiff', 'wav', 'webm', 'webma', 'mka', 'awb'], | ||||||
|   SupportedEbookTypes: ['epub', 'pdf', 'mobi', 'azw3', 'cbr', 'cbz'], |   SupportedEbookTypes: ['epub', 'pdf', 'mobi', 'azw3', 'cbr', 'cbz'], | ||||||
|   SupportedVideoTypes: ['mp4'], |   SupportedVideoTypes: ['mp4'], | ||||||
|   TextFileTypes: ['txt', 'nfo'], |   TextFileTypes: ['txt', 'nfo'], | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user