mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-10 00:48:48 +00:00
parent
73289324bd
commit
17a3b4c9d8
@ -95,10 +95,14 @@ EOD;
|
|||||||
if ($data->user === null) {
|
if ($data->user === null) {
|
||||||
throw new \Exception(sprintf('Unable to find channel `%s`', $channel));
|
throw new \Exception(sprintf('Unable to find channel `%s`', $channel));
|
||||||
}
|
}
|
||||||
|
|
||||||
$user = $data->user;
|
$user = $data->user;
|
||||||
if ($user->videos === null) {
|
if ($user->videos === null) {
|
||||||
throw new HttpException('Service Unavailable', 503);
|
// twitch regularly does this for unknown reasons
|
||||||
|
$this->logger->info('Twitch returned empty set of videos', ['data' => $data]);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($user->videos->edges as $edge) {
|
foreach ($user->videos->edges as $edge) {
|
||||||
$video = $edge->node;
|
$video = $edge->node;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user