mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-13 03:54:04 +02:00
bridges: add context to detectParameters (#3607)
* bridges: add context to detectParameters Some bridges did not return the context parameter but they used it in the parameters * bridges: add context to detectParameters Fix test for InstagramBridge
This commit is contained in:
@@ -64,6 +64,7 @@ class FunkBridge extends BridgeAbstract
|
||||
$regex = '/^https?:\/\/(?:www\.)?funk\.net\/channel\/([^\/]+).*$/';
|
||||
if (preg_match($regex, $url, $urlMatches) > 0) {
|
||||
return [
|
||||
'context' => 'Channel',
|
||||
'channel' => $urlMatches[1]
|
||||
];
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user