mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-06 00:27:27 +02:00
[VkBridge] Correct fallback behavior, when trying to get direct video links (#1670)
This commit is contained in:
@@ -423,11 +423,11 @@ class VkBridge extends BridgeAbstract
|
||||
'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) {
|
||||
|
Reference in New Issue
Block a user