From 19a5167c45075042668b97f2598b94071a88c708 Mon Sep 17 00:00:00 2001 From: Koala Ng Date: Mon, 2 Jun 2025 01:19:58 +0800 Subject: [PATCH] Update TechnicalInformation.php 1. Added "Title" info into audio and subtitles items of mediainfo extra 2. Corrected the incorrect spelling of variables in getSubtitles function --- nexus/Torrent/TechnicalInformation.php | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/nexus/Torrent/TechnicalInformation.php b/nexus/Torrent/TechnicalInformation.php index a3eb6251..d2d3102e 100644 --- a/nexus/Torrent/TechnicalInformation.php +++ b/nexus/Torrent/TechnicalInformation.php @@ -98,6 +98,9 @@ class TechnicalInformation if (!empty($values['Language'])) { $audioInfoArr[] = $values['Language']; } + if (!empty($values['Title'])) { + $audioInfoArr[] = $values['Title']; + } if (!empty($values['Format'])) { $audioInfoArr[] = $values['Format']; } @@ -121,15 +124,18 @@ class TechnicalInformation if (strpos($parentKey, 'Text') === false) { continue; } - $audioInfoArr = []; + $subtitlesInfoArr = []; if (!empty($values['Language'])) { - $audioInfoArr[] = $values['Language']; + $subtitlesInfoArr[] = $values['Language']; + } + if (!empty($values['Title'])) { + $subtitlesInfoArr[] = $values['Title']; } if (!empty($values['Format'])) { - $audioInfoArr[] = $values['Format']; + $subtitlesInfoArr[] = $values['Format']; } - if (!empty($audioInfoArr)) { - $result[$parentKey] = implode(" ", $audioInfoArr); + if (!empty($subtitlesInfoArr)) { + $result[$parentKey] = implode(" ", $subtitlesInfoArr); } } return $result;