Open jcvignoli opened 1 year ago
The trivia page is already converted to graphQL by imdb so it is a question of time when it completely stops working. i already converted triva to GraphQL so feel free to use it as a PR. but remember that there could be differences between this and my version check #314
Hi,
I get numerous warnings because of Title.php's trivia function.
I guess line 2470 should be
if (isset($block[1]) && preg_match_all('!<div class="sodatext">\s*(.*?)\s*</div>\s*<div!ims', $block[1], $matches)) {
instead ofif (preg_match_all('!<div class="sodatext">\s*(.*?)\s*</div>\s*<div!ims', $block[1], $matches)) {
Thanks!