From 0b5f8fe2506b85e784050cc70a43edb990b81716 Mon Sep 17 00:00:00 2001 From: Jeff R Date: Tue, 20 Oct 2020 12:11:07 -0400 Subject: [PATCH] Update Tdarr_Plugin_A47j_FFMPEG_NVENC_HEVC_Video_Only.js Bugfix - plugin would fail if file.ffProbeData.tags was undefined. --- Community/Tdarr_Plugin_A47j_FFMPEG_NVENC_HEVC_Video_Only.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Community/Tdarr_Plugin_A47j_FFMPEG_NVENC_HEVC_Video_Only.js b/Community/Tdarr_Plugin_A47j_FFMPEG_NVENC_HEVC_Video_Only.js index 17ea181..bedbab0 100644 --- a/Community/Tdarr_Plugin_A47j_FFMPEG_NVENC_HEVC_Video_Only.js +++ b/Community/Tdarr_Plugin_A47j_FFMPEG_NVENC_HEVC_Video_Only.js @@ -175,7 +175,7 @@ function plugin(file,librarySettings,inputs,otherArguments) { // -------------------------------- METADATA UPDATES -------------------------------- // If there is no _STATISTICS_WRITING_DATE_UTC-eng field, then we need to run mkvpropedit and // rerun mediainfo to load the stats. - if (file.ffProbeData.streams[0].tags["_STATISTICS_WRITING_DATE_UTC-eng"] === undefined ) { + if (file.ffProbeData.streams[0].tags === undefined || file.ffProbeData.streams[0].tags["_STATISTICS_WRITING_DATE_UTC-eng"] === undefined ) { response.infoLog += "☑Track statistics are missing.\n"; updateTrackStats(file); getMediaInfo(file);