From f5cb1ce782379df72e4820d324e0c7cc53254bb0 Mon Sep 17 00:00:00 2001 From: johnpyp Date: Thu, 21 Dec 2023 20:57:08 -0800 Subject: [PATCH] fix other usage of `tryGrabTags` --- server/utils/prober.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/utils/prober.js b/server/utils/prober.js index eaadd61a4..e59f37d25 100644 --- a/server/utils/prober.js +++ b/server/utils/prober.js @@ -99,6 +99,7 @@ function tryGrabTags(rawTagData, ...tags) { } function parseMediaStreamInfo(stream, all_streams, total_bit_rate) { + const tagData = { ffprobe: stream.tags } var info = { index: stream.index, type: stream.codec_type, @@ -107,8 +108,8 @@ function parseMediaStreamInfo(stream, all_streams, total_bit_rate) { codec_time_base: stream.codec_time_base || null, time_base: stream.time_base || null, bit_rate: tryGrabBitRate(stream, all_streams, total_bit_rate), - language: tryGrabTags(stream, 'language'), - title: tryGrabTags(stream, 'title'), + language: tryGrabTags(tagData, 'language'), + title: tryGrabTags(tagData, 'title'), } if (stream.tags) info.tags = stream.tags