Skip to content

Commit

Permalink
[VkBridge] Correct fallback behavior, when trying to get direct video…
Browse files Browse the repository at this point in the history
… links (#1670)
  • Loading branch information
em92 authored Jul 31, 2020
1 parent f5916a2 commit 7709b8d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bridges/VkBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -423,11 +423,11 @@ protected function getCleanVideoLinks() {
'count' => 200
));

if (isset($result['error'])) return;

foreach($result['response']['items'] as $item) {
$video_id = strval($item['owner_id']) . '_' . strval($item['id']);
$this->videos[$video_id]['url'] = $item['player'];
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) {
Expand Down

0 comments on commit 7709b8d

Please sign in to comment.