Fix duplicate HLS resolution in master playlist

This commit is contained in:
Chocobozzz 2019-11-26 16:36:48 +01:00
parent 52201311e1
commit 49c3bf6fa2
No known key found for this signature in database
GPG key ID: 583A612D890159BE
3 changed files with 4 additions and 6 deletions

View file

@ -70,7 +70,7 @@ async function getAudioStreamCodec (path: string) {
if (!audioStream) return ''
const audioCodec = audioStream.codec_name
if (audioCodec.codec_name === 'aac') return 'mp4a.40.2'
if (audioCodec === 'aac') return 'mp4a.40.2'
logger.warn('Cannot get audio codec of %s.', path, { audioStream })