mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-26 19:36:52 +03:00
parent
be089702f0
commit
268ddf1382
1 changed files with 4 additions and 0 deletions
|
@ -383,6 +383,10 @@ EOD;
|
|||
$jsMainRegex = '/(https:\/\/abs\.twimg\.com\/responsive-web\/web_legacy\/main\.[^\.]+\.js)/m';
|
||||
preg_match_all($jsMainRegex, $twitterPage, $jsMainMatches, PREG_SET_ORDER, 0);
|
||||
}
|
||||
if (!$jsMainMatches) {
|
||||
$jsMainRegex = '/(https:\/\/abs\.twimg\.com\/responsive-web\/client-web\/main\.[^\.]+\.js)/m';
|
||||
preg_match_all($jsMainRegex, $twitterPage, $jsMainMatches, PREG_SET_ORDER, 0);
|
||||
}
|
||||
if (!$jsMainMatches) {
|
||||
returnServerError('Could not locate main.js link');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue