From 62706bda374ff785fa45263b778d8c33377df9e8 Mon Sep 17 00:00:00 2001 From: FLIKI Date: Wed, 20 Dec 2023 21:14:57 +0200 Subject: [PATCH] Fixed search (#194) New regex for search. --- imdb.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imdb.class.php b/imdb.class.php index c8d13f4..26c7cca 100644 --- a/imdb.class.php +++ b/imdb.class.php @@ -81,7 +81,7 @@ class IMDB const IMDB_MOVIE_DESC = '~
\s+
\s+(.*)\s*?
\s+
\s+
~Ui'; const IMDB_SERIES_DESC = '~
\s+(?:.*?\s+\s+
\s+
\s+
\s+)(.*)\s+
\s+
\s+
~Ui'; const IMDB_SERIESEP_DESC = '~All Episodes(?:.*?)\s+(?:.*?)?\s+\s+
\s+
\s+
\s+(.*?)\s+
\s+
~'; - const IMDB_NOT_FOUND_ADV = '~No results.~Ui'; + const IMDB_NOT_FOUND_ADV = '~"results-section-empty-results-msg"~Ui'; const IMDB_NOT_FOUND_DES = 'Know what this is about'; const IMDB_NOT_FOUND_ORG = '~

No results found for ~Ui'; const IMDB_PLOT = '~]*>\s*Plot\s*Summary\s*\s*\s*

\s*(.*)\s*

~Ui'; @@ -91,7 +91,7 @@ class IMDB const IMDB_RATING_COUNT = '~class="ipl-rating-star__total-votes">\((.*)\)<~Ui'; const IMDB_RELEASE_DATE = '~href="/title/[t0-9]*/releaseinfo">(.*)<~Ui'; const IMDB_RUNTIME = '~]*>\s*Runtime\s*\s*(.+)~Ui'; - const IMDB_SEARCH_ADV = '~text-primary">1[.]\s*(?:.*?)<\/a>~Ui'; + const IMDB_SEARCH_ADV = '~(?:.*?)alt="(.*?)"(?:.*?)href="\/title\/(tt\d{6,})\/(?:.*?)">(.*?)<\/a>~'; const IMDB_SEASONS = '~episodes\?season=(?:\d+)">(\d+)<~Ui'; const IMDB_SOUND_MIX = '~]*>\s*Sound\s*Mix\s*\s*(.+)~Ui';