[VkBridge] Correct fallback behavior, when trying to get direct video links (#1670)
This commit is contained in:
parent
f5916a2f74
commit
7709b8d662
1 changed files with 5 additions and 5 deletions
|
@ -423,12 +423,12 @@ class VkBridge extends BridgeAbstract
|
|||
'count' => 200
|
||||
));
|
||||
|
||||
if (isset($result['error'])) return;
|
||||
|
||||
if (!isset($result['error'])) {
|
||||
foreach($result['response']['items'] as $item) {
|
||||
$video_id = strval($item['owner_id']) . '_' . strval($item['id']);
|
||||
$this->videos[$video_id]['url'] = $item['player'];
|
||||
}
|
||||
}
|
||||
|
||||
foreach($this->items as &$item) {
|
||||
foreach($item['videos'] as $video_id) {
|
||||
|
|
Loading…
Reference in a new issue