mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 16:38:50 +00:00
[VkBridge] Correct fallback behavior, when trying to get direct video links (#1670)
This commit is contained in:
parent
f5916a2f74
commit
7709b8d662
@ -423,11 +423,11 @@ class VkBridge extends BridgeAbstract
|
|||||||
'count' => 200
|
'count' => 200
|
||||||
));
|
));
|
||||||
|
|
||||||
if (isset($result['error'])) return;
|
if (!isset($result['error'])) {
|
||||||
|
foreach($result['response']['items'] as $item) {
|
||||||
foreach($result['response']['items'] as $item) {
|
$video_id = strval($item['owner_id']) . '_' . strval($item['id']);
|
||||||
$video_id = strval($item['owner_id']) . '_' . strval($item['id']);
|
$this->videos[$video_id]['url'] = $item['player'];
|
||||||
$this->videos[$video_id]['url'] = $item['player'];
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach($this->items as &$item) {
|
foreach($this->items as &$item) {
|
||||||
|
Loading…
Reference in New Issue
Block a user