fix: scout json array decoding

This commit is contained in:
Roardom
2024-08-12 07:19:42 +00:00
parent 77fb3267f2
commit cb41027faf
+11 -11
View File
@@ -536,17 +536,17 @@ class Torrent extends Model
'resolution' => json_decode($this->json_resolution ?? 'null'),
'movie' => json_decode($this->json_movie ?? 'null'),
'tv' => json_decode($this->json_tv ?? 'null'),
'playlists' => json_decode($this->json_playlists ?? []),
'freeleech_tokens' => json_decode($this->json_freeleech_tokens ?? []),
'bookmarks' => json_decode($this->json_bookmarks ?? []),
'files' => json_decode($this->json_files ?? []),
'keywords' => json_decode($this->json_keywords ?? []),
'history_seeders' => json_decode($this->json_history_seeders ?? []),
'history_leechers' => json_decode($this->json_history_leechers ?? []),
'history_active' => json_decode($this->json_history_active ?? []),
'history_inactive' => json_decode($this->json_history_inactive ?? []),
'history_complete' => json_decode($this->json_history_complete ?? []),
'history_incomplete' => json_decode($this->json_history_incomplete ?? []),
'playlists' => json_decode($this->json_playlists ?? '[]'),
'freeleech_tokens' => json_decode($this->json_freeleech_tokens ?? '[]'),
'bookmarks' => json_decode($this->json_bookmarks ?? '[]'),
'files' => json_decode($this->json_files ?? '[]'),
'keywords' => json_decode($this->json_keywords ?? '[]'),
'history_seeders' => json_decode($this->json_history_seeders ?? '[]'),
'history_leechers' => json_decode($this->json_history_leechers ?? '[]'),
'history_active' => json_decode($this->json_history_active ?? '[]'),
'history_inactive' => json_decode($this->json_history_inactive ?? '[]'),
'history_complete' => json_decode($this->json_history_complete ?? '[]'),
'history_incomplete' => json_decode($this->json_history_incomplete ?? '[]'),
];
}