#PMM does not find any movie based on IMDb Charts

1 messages · Page 1 of 1 (latest)

white ledgeBOT
#

Welcome!

Someone from <@&938443185347244033> will assist when they're available.

Including the meta.log from the beginning is a huge help, type !logs for more information.

#

You can press the "Close Post" button above or type !close at any time to close this post.

opal coral
#

that should be all that's required.

You probably want to delete that config as it has all your tokens in it.

#

ORIGINAL:
Installed PMM from scratch today. I have (for testing purposes) just a small library of 4K Movies. I just left the "imdb" default in the config.yml file.

When I run the script, no movies are found for Popular, IMDB Top 250 or Lowest Rated. I am certain that I have movies that are in the Top 250 in my library. Is there any particular configuration that is needed in Plex for this to work?

I have attached both the meta.log and the config.yml

#

@minor needle

#

The meta.log contains a redacted copy of the config.

minor needle
opal coral
#

Perhaps try a run with --trace I can't see any obvious problems there.

minor needle
#

Will do and provide a new log

knotty saddleBOT
#

"provide log" command detected, if you need more information on how to provide log files, type !logs

minor needle
#

Is PMM looking for the movies based on name or on IMDb ID?

opal coral
#

It used the TMDB id as the interchange ID.

minor needle
#

Do I need any particular configuration in Plex in order for this to work? For example, I have "The Dark Knight" in my library, and it seems to have the correct id, but PMM does not find it

opal coral
#

Shouldn't. Are you using some oddball agent in Plex?

minor needle
#

Plex Movies

#

Not the Legacy one

opal coral
#

Then not that

#

Looks like this might be new breakage.

#

Same thing's happening here.

#

and I'm on nightly, not latest.

#

Probably something changed on the IMDB side, since this code hasn't changed on the PMM side for some time.

minor needle
#

That makes sense. Please let me know if there is anything you need me to do and/or test to help resolve the issue. Thanks

opal coral
#
| Processing IMDb Chart: Top 250 Movies                                                              |
| https://www.imdb.com:443 "GET /chart/top HTTP/1.1" 403 None                                        |

That would do it.

Nothing to do but wait for IMDB to get their ducks in a row.

minor needle
#

If I understand correctly, even though you can access the top 250 via a browser, you cannot via API?

opal coral
#

Well, though, that works in a browser. I wonder if they changed something...

#

curl -fLv https://www.imdb.com/chart/top gets a 403...

#

For that matter so does curl -fLv https://www.imdb.com/ Doesn't really feel intentional

minor needle
#

without the -flv the command works

opal coral
#

not here

minor needle
#

That's strange. From the terminal in Windows 11 the command works

chilly fox
#

idk if it matters but

curl -sI https://www.imdb.com -o/dev/null -w '%{http_version}\n'
2
#

its serving http2

#

not 1.1

opal coral
#

if I add a user agent all is well

curl -A "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" https://www.imdb.com/chart/top
#

apparently any user agent:

curl -A "ozzy-tony-geezer-bill" https://www.imdb.com/chart/top
minor needle
#

So this is something that would need to change in the PMM code?

chilly fox
#

they probably added this to deter scraping

minor needle
#

OK, thanks

#

Does that mean that I would have to wait until the next release?

fiery dawn
#

Likely or maybe IMDb will fall back to when things worked…but no real clue at this point

opal coral
#

well, until the next nightly anyway, or patch your local files.

minor needle
#

If you can provide me with a patch I am happy to apply it, I really want to use PMM against my complete library (9k movies), and having IMDb Top 250 and othe charts is important to me. Thanks

opal coral
#

You could try creating or finding mdblist or trakt equivalents.

minor needle
#

Yes, thanks! I will look into those

opal coral
#

I'm heading to bowling, but here's something totally untested:

at about line 220 of modules/imdb.py:

this:

        return self.config.get_html(f"https://www.imdb.com/{url}").xpath("//div[@class='wlb_ribbon']/@data-tconst")

to

        some_headers = {
            'User-Agent': 'something-not-nothing',
        }
        return self.config.get_html(f"https://www.imdb.com/{url}", headers=some_headers).xpath("//div[@class='wlb_ribbon']/@data-tconst")
minor needle
#

Thanks, I will try this also

minor needle
#

@opal coral , sorry for the daly, I was not able to test more yesterday. I have just tested and that patch did not make a difference

opal coral
#

Well, I did come up with it in a couple minutes.

minor needle
#

In the meantime, I found a IMDb Top 250 based on mdblist, and I am proceeding with my configuration