Ensure consistency between extension-categories, between torrent-player and torrent-poster.

Add additional audio-file-extensions.
This commit is contained in:
Borewit
2018-08-13 21:35:37 +02:00
parent e0de30baff
commit c2a38bd4e0
3 changed files with 13 additions and 32 deletions

View File

@@ -0,0 +1,8 @@
const mediaExtensions = {
audio: ['.aac', '.asf', '.flac', '.m2a', '.m4a', '.m4b', '.mp2', '.mp4', '.mp3', '.oga', '.ogg',
'.opus', '.wma', '.wav', '.wv', '.wvp'],
video: ['.avi', '.mp4', '.m4v', '.webm', '.mov', '.mkv', 'mpg', 'mpeg', '.ogv', '.webm', '.wmv'],
image: ['.gif', '.jpg', '.jpeg', '.png']
}
module.exports = mediaExtensions