mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-30 13:20:12 +02:00
[TwitterBridge] URL to js file with apikey changed again (#1764)
This commit is contained in:
@@ -434,6 +434,10 @@ EOD;
|
||||
$jsMainRegex = '/(https:\/\/abs\.twimg\.com\/responsive-web\/client-web\/main\.[^\.]+\.js)/m';
|
||||
preg_match_all($jsMainRegex, $twitterPage, $jsMainMatches, PREG_SET_ORDER, 0);
|
||||
}
|
||||
if (!$jsMainMatches) {
|
||||
$jsMainRegex = '/(https:\/\/abs\.twimg\.com\/responsive-web\/client-web-legacy\/main\.[^\.]+\.js)/m';
|
||||
preg_match_all($jsMainRegex, $twitterPage, $jsMainMatches, PREG_SET_ORDER, 0);
|
||||
}
|
||||
if (!$jsMainMatches) {
|
||||
returnServerError('Could not locate main.js link');
|
||||
}
|
||||
|
Reference in New Issue
Block a user