#PMM does not find any movie based on IMDb Charts
1 messages · Page 1 of 1 (latest)
You can press the "Close Post" button above or type !close at any time to close this post.
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.
Thank you for deleting the original message. Is there any additional information that you would need to investigate the issue?
Perhaps try a run with --trace I can't see any obvious problems there.
Will do and provide a new log
"provide log" command detected, if you need more information on how to provide log files, type !logs
It used the TMDB id as the interchange ID.
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
Shouldn't. Are you using some oddball agent in Plex?
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.
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
| 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.
If I understand correctly, even though you can access the top 250 via a browser, you cannot via API?
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
without the -flv the command works
not here
That's strange. From the terminal in Windows 11 the command works
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
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
So this is something that would need to change in the PMM code?
they probably added this to deter scraping
Likely or maybe IMDb will fall back to when things worked…but no real clue at this point
well, until the next nightly anyway, or patch your local files.
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
You could try creating or finding mdblist or trakt equivalents.
Yes, thanks! I will look into those
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")
Thanks, I will try this also
@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
Well, I did come up with it in a couple minutes.
In the meantime, I found a IMDb Top 250 based on mdblist, and I am proceeding with my configuration