mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-03-31 05:43:53 +03:00
parent
1ffb2df46d
commit
2c94791bcd
1 changed files with 4 additions and 1 deletions
|
@ -99,8 +99,11 @@ class YoutubeBridge extends BridgeAbstract
|
||||||
}
|
}
|
||||||
|
|
||||||
$jsonData = $this->getJSONData($html);
|
$jsonData = $this->getJSONData($html);
|
||||||
$jsonData = $jsonData->contents->twoColumnWatchNextResults->results->results->contents;
|
if (! isset($jsonData->contents)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$jsonData = $jsonData->contents->twoColumnWatchNextResults->results->results->contents;
|
||||||
$videoSecondaryInfo = null;
|
$videoSecondaryInfo = null;
|
||||||
foreach ($jsonData as $item) {
|
foreach ($jsonData as $item) {
|
||||||
if (isset($item->videoSecondaryInfoRenderer)) {
|
if (isset($item->videoSecondaryInfoRenderer)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue