Jump to the post that solved this thread.
Solved: 11 Months, 1 Week, 3 Days ago IMDB Movie Tag issues
#3
Solved: 11 Months, 1 Week, 3 Days ago
(2020-11-07, 03:48 PM)effone Wrote: First of all, its not IMDB, its using Open Movie Database (OMDB) API.
Secondly, you guessed right, those are the regular expressions (REGEX) to fetch the data from chunk of text received from the API server using pattern matching and clearly the REGEX codes used in the plugin is not efficient.

You need to hire a dev to inspect the API responses applying use case and modify the REGEX code in the plugin to efficiently fetch the data from response. Unfortunately it involves a bit of exercise and time, not possible to troubleshoot upfront.

Yes, it's using OMDB API. I've only ever simply referenced the literal name of the plugin itself, titled IMDB Movie Tag.

I'm not a coder but have been doing research regarding regex / preg_match and how to use it. The api spits out the title of the movie like this:

"Title":"Name of Movie"

Surely it isn't necessary to "hire a dev" for one single line of code. I'll likely ask for help on reddit or stack overflow or something on how to use preg_match to properly grab the bit where "Name of Movie" is.

Unless I'm missing something, doesn't this just have to be slightly tweaked? - preg_match('/[^\"Title\"\:\"][\w\- .]+/', $data, $title); - Everything else works properly.

Anyway, thanks for the response.
Reply
Jump to the post that solved this thread.


Messages In This Thread
IMDB Movie Tag issues - by tomjay78 - 2020-11-07, 01:00 AM
RE: IMDB Movie Tag issues - by effone - 2020-11-07, 03:48 PM
RE: IMDB Movie Tag issues - by tomjay78 - 2020-11-07, 08:09 PM
RE: IMDB Movie Tag issues - by effone - 2020-11-07, 08:14 PM
RE: IMDB Movie Tag issues - by tomjay78 - 2020-11-07, 08:17 PM
RE: IMDB Movie Tag issues - by Omar G. - 2020-11-07, 10:17 PM
RE: IMDB Movie Tag issues - by tomjay78 - 2020-11-08, 03:01 AM
RE: IMDB Movie Tag issues - by Omar G. - 2020-11-08, 12:21 PM
RE: IMDB Movie Tag issues - by tomjay78 - 2020-11-08, 04:07 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)