mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 10:19:24 +02:00
This commit is contained in:
parent
f57484953e
commit
a3301cb29f
1 changed files with 3 additions and 0 deletions
|
@ -159,6 +159,9 @@ class API extends PluginAbstract {
|
||||||
}
|
}
|
||||||
$SubtitleSwitcher = YouPHPTubePlugin::loadPluginIfEnabled("SubtitleSwitcher");
|
$SubtitleSwitcher = YouPHPTubePlugin::loadPluginIfEnabled("SubtitleSwitcher");
|
||||||
foreach ($rows as $key=>$value) {
|
foreach ($rows as $key=>$value) {
|
||||||
|
if(empty($value['filename'])){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
$rows[$key]['images'] = Video::getImageFromFilename($value['filename']);
|
$rows[$key]['images'] = Video::getImageFromFilename($value['filename']);
|
||||||
$rows[$key]['videos'] = Video::getVideosPaths($value['filename'], true);
|
$rows[$key]['videos'] = Video::getVideosPaths($value['filename'], true);
|
||||||
if ($SubtitleSwitcher) {
|
if ($SubtitleSwitcher) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue