mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Update
This commit is contained in:
parent
6efe70ded5
commit
03be29baf5
1 changed files with 6 additions and 3 deletions
|
@ -967,9 +967,12 @@ class API extends PluginAbstract
|
|||
}
|
||||
|
||||
if ($SubtitleSwitcher) {
|
||||
$rows[$key]['subtitles'] = getVTTTracks($value['filename'], true);
|
||||
foreach ($rows[$key]['subtitles'] as $key2 => $value) {
|
||||
$rows[$key]['subtitlesSRT'][] = convertSRTTrack($value);
|
||||
$sub = getVTTTracks($value['filename'], true);
|
||||
if(!empty($sub)){
|
||||
$rows[$key]['subtitles'] = $sub;
|
||||
foreach ($rows[$key]['subtitles'] as $key2 => $value) {
|
||||
$rows[$key]['subtitlesSRT'][] = convertSRTTrack($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
require_once $global['systemRootPath'] . 'objects/comment.php';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue