mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-15 05:41:34 +00:00
fix other usage of tryGrabTags
This commit is contained in:
parent
600e289643
commit
f5cb1ce782
1 changed files with 3 additions and 2 deletions
|
|
@ -99,6 +99,7 @@ function tryGrabTags(rawTagData, ...tags) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function parseMediaStreamInfo(stream, all_streams, total_bit_rate) {
|
function parseMediaStreamInfo(stream, all_streams, total_bit_rate) {
|
||||||
|
const tagData = { ffprobe: stream.tags }
|
||||||
var info = {
|
var info = {
|
||||||
index: stream.index,
|
index: stream.index,
|
||||||
type: stream.codec_type,
|
type: stream.codec_type,
|
||||||
|
|
@ -107,8 +108,8 @@ function parseMediaStreamInfo(stream, all_streams, total_bit_rate) {
|
||||||
codec_time_base: stream.codec_time_base || null,
|
codec_time_base: stream.codec_time_base || null,
|
||||||
time_base: stream.time_base || null,
|
time_base: stream.time_base || null,
|
||||||
bit_rate: tryGrabBitRate(stream, all_streams, total_bit_rate),
|
bit_rate: tryGrabBitRate(stream, all_streams, total_bit_rate),
|
||||||
language: tryGrabTags(stream, 'language'),
|
language: tryGrabTags(tagData, 'language'),
|
||||||
title: tryGrabTags(stream, 'title'),
|
title: tryGrabTags(tagData, 'title'),
|
||||||
}
|
}
|
||||||
if (stream.tags) info.tags = stream.tags
|
if (stream.tags) info.tags = stream.tags
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue