From 49b832e260c3a47e048a0294138f28137c758732 Mon Sep 17 00:00:00 2001 From: bla0r Date: Sun, 10 Aug 2014 16:21:53 +0200 Subject: [PATCH 1/3] Update imdb.class.php regex fix --- imdb.class.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/imdb.class.php b/imdb.class.php index bd39460..e59af44 100644 --- a/imdb.class.php +++ b/imdb.class.php @@ -48,22 +48,22 @@ class IMDB { const IMDB_AKA = '~Also Known As:(.*) (.*)~Ui'; + const IMDB_CAST = '~itemprop="actor"(?:.*)> (.*)~Ui'; const IMDB_FULL_CAST = '~(.*?)~Ui'; const IMDB_CHAR = '~\s+
(.*)
\s+(.*)
~Ui'; + const IMDB_COLOR = '~href="/search/title\?colors=(?:.*)"itemprop=\'url\'>(.*)~Ui'; const IMDB_COMPANY = '~Production Co:(.*)~Ui'; - const IMDB_COMPANY_NAME = '~href="/company/co(\d+)(?:\?.*)" itemprop=\'url\'>(.*)~Ui'; - const IMDB_COUNTRY = '~href="/country/(\w+)\?(?:.*)" itemprop=\'url\'>(.*)~Ui'; + const IMDB_COMPANY_NAME = '~href="/company/co(\d+)(?:\?.*)"itemprop=\'url\'>(.*)~Ui'; + const IMDB_COUNTRY = '~href="/country/(\w+)\?(?:.*)"itemprop=\'url\'>(.*)~Ui'; const IMDB_CREATOR = '~(?:Creator|Creators):(.*)~Ui'; const IMDB_DESCRIPTION = '~

(.*)(?:)~Ui'; const IMDB_DIRECTOR = '~(?:Director|Directors):(.*)~Ui'; const IMDB_GENRE = '~href="/genre/(.*)(?:\?.*)"(?:\s+|)>(.*)~Ui'; const IMDB_ID = '~(tt\d{6,})~'; - const IMDB_LANGUAGES = '~href="/language/(.*)(?:\?.*)" itemprop=\'url\'>(.*)~Ui'; - const IMDB_LOCATION = '~href="/search/title\?locations=(.*)(?:&.*)" itemprop=\'url\'>(.*)~Ui'; + const IMDB_LANGUAGES = '~href="/language/(.*)(?:\?.*)"itemprop=\'url\'>(.*)~Ui'; + const IMDB_LOCATION = '~href="/search/title\?locations=(.*)(?:&.*)"itemprop=\'url\'>(.*)~Ui'; const IMDB_MPAA = '~span itemprop="contentRating"(?:.*)>(.*)(.*)~Ui'; + const IMDB_NAME = '~href="/name/nm(\d+)/(?:.*)"itemprop=\'(?:\w+)\'>(.*)~Ui'; const IMDB_OPENING = '~Opening Weekend:(.*)\(~Ui'; const IMDB_PLOT = '~Storyline\s+

\s+

(.*)(?:|<\/div>)~Ui'; const IMDB_POSTER = '~"src="(.*)"itemprop="image" \/>~Ui'; @@ -76,7 +76,7 @@ class IMDB { const IMDB_SITES = '~Official Sites:(.*)(?:(.*)~Ui'; const IMDB_SOUND_MIX = '~Sound Mix:(.*)

~Ui'; - const IMDB_SOUND_MIX_A = '~href="/search/title\?sound_mixes=(?:.*)" itemprop=\'url\'>(.*)~Ui'; + const IMDB_SOUND_MIX_A = '~href="/search/title\?sound_mixes=(?:.*)"itemprop=\'url\'>(.*)~Ui'; const IMDB_TAGLINE = '~Taglines:(.*)(?:|)~Ui'; const IMDB_TITLE = '~property=\'og:title\' content="(.*) \((?:.*)\)"~Ui'; const IMDB_TITLE_ORIG = '~(.*)\(original title\)<\/i>\s+~Ui'; From ffdab1667f56041d556a88272edd98ecca45ed8c Mon Sep 17 00:00:00 2001 From: bla0r Date: Mon, 11 Aug 2014 07:13:27 +0200 Subject: [PATCH 2/3] Update imdb.class.php fix --- imdb.class.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/imdb.class.php b/imdb.class.php index e59af44..e43adb8 100644 --- a/imdb.class.php +++ b/imdb.class.php @@ -48,22 +48,22 @@ class IMDB { const IMDB_AKA = '~Also Known As:(.*) (.*)~Ui'; + const IMDB_CAST = '~itemprop="actor"(?:.*)> (.*)~Ui'; const IMDB_FULL_CAST = '~(.*?)~Ui'; const IMDB_CHAR = '~\s+
(.*)
\s+(.*)
~Ui'; + const IMDB_COLOR = '~href="/search/title\?colors=(?:.*)"(?:\s*)itemprop=\'url\'>(.*)~Ui'; const IMDB_COMPANY = '~Production Co:(.*)~Ui'; - const IMDB_COMPANY_NAME = '~href="/company/co(\d+)(?:\?.*)"itemprop=\'url\'>(.*)~Ui'; - const IMDB_COUNTRY = '~href="/country/(\w+)\?(?:.*)"itemprop=\'url\'>(.*)~Ui'; + const IMDB_COMPANY_NAME = '~href="/company/co(\d+)(?:\?.*)"(?:\s*)itemprop=\'url\'>(.*)~Ui'; + const IMDB_COUNTRY = '~href="/country/(\w+)\?(?:.*)"(?:\s*)itemprop=\'url\'>(.*)~Ui'; const IMDB_CREATOR = '~(?:Creator|Creators):(.*)~Ui'; const IMDB_DESCRIPTION = '~

(.*)(?:)~Ui'; const IMDB_DIRECTOR = '~(?:Director|Directors):(.*)~Ui'; const IMDB_GENRE = '~href="/genre/(.*)(?:\?.*)"(?:\s+|)>(.*)~Ui'; const IMDB_ID = '~(tt\d{6,})~'; - const IMDB_LANGUAGES = '~href="/language/(.*)(?:\?.*)"itemprop=\'url\'>(.*)~Ui'; + const IMDB_LANGUAGES = '~href="/language/(.*)(?:\?.*)"(?:\s*)itemprop=\'url\'>(.*)~Ui'; const IMDB_LOCATION = '~href="/search/title\?locations=(.*)(?:&.*)"itemprop=\'url\'>(.*)~Ui'; const IMDB_MPAA = '~span itemprop="contentRating"(?:.*)>(.*)(.*)~Ui'; + const IMDB_NAME = '~href="/name/nm(\d+)/(?:.*)"(?:\s*)itemprop=\'(?:\w+)\'>(.*)~Ui'; const IMDB_OPENING = '~Opening Weekend:(.*)\(~Ui'; const IMDB_PLOT = '~Storyline\s+

\s+

(.*)(?:|<\/div>)~Ui'; const IMDB_POSTER = '~"src="(.*)"itemprop="image" \/>~Ui'; From 698d888dbad45f1b88cbcd6ba7220623f7068096 Mon Sep 17 00:00:00 2001 From: bla0r Date: Mon, 11 Aug 2014 07:13:56 +0200 Subject: [PATCH 3/3] Update imdb.class.php --- imdb.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imdb.class.php b/imdb.class.php index e43adb8..781b0f6 100644 --- a/imdb.class.php +++ b/imdb.class.php @@ -76,7 +76,7 @@ class IMDB { const IMDB_SITES = '~Official Sites:(.*)(?:(.*)~Ui'; const IMDB_SOUND_MIX = '~Sound Mix:(.*)

~Ui'; - const IMDB_SOUND_MIX_A = '~href="/search/title\?sound_mixes=(?:.*)"itemprop=\'url\'>(.*)~Ui'; + const IMDB_SOUND_MIX_A = '~href="/search/title\?sound_mixes=(?:.*)"(?:\s*)itemprop=\'url\'>(.*)~Ui'; const IMDB_TAGLINE = '~Taglines:(.*)(?:|)~Ui'; const IMDB_TITLE = '~property=\'og:title\' content="(.*) \((?:.*)\)"~Ui'; const IMDB_TITLE_ORIG = '~(.*)\(original title\)<\/i>\s+~Ui';