mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-03-14 20:21:14 +03:00
fix(gatesnotes): the unfucked their json (#3849)
This commit is contained in:
parent
3944ae68cb
commit
0c6ffbf5a4
1 changed files with 5 additions and 3 deletions
|
@ -23,12 +23,14 @@ class GatesNotesBridge extends BridgeAbstract
|
|||
$cleanedContent = str_replace([
|
||||
'<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">',
|
||||
'</string>',
|
||||
'\r\n',
|
||||
], '', $rawContent);
|
||||
$cleanedContent = str_replace('\"', '"', $cleanedContent);
|
||||
$cleanedContent = trim($cleanedContent, '"');
|
||||
// $cleanedContent = str_replace('\"', '"', $cleanedContent);
|
||||
// $cleanedContent = trim($cleanedContent, '"');
|
||||
|
||||
$json = Json::decode($cleanedContent, false);
|
||||
if (is_string($json)) {
|
||||
throw new \Exception('wtf? ' . $json);
|
||||
}
|
||||
|
||||
foreach ($json as $article) {
|
||||
$item = [];
|
||||
|
|
Loading…
Add table
Reference in a new issue