Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imdb_lookup 403 #3936

Open
epross672 opened this issue Feb 11, 2024 · 0 comments
Open

imdb_lookup 403 #3936

epross672 opened this issue Feb 11, 2024 · 0 comments

Comments

@epross672
Copy link

getting this problem on imdb_lookup

2024-02-11 12:08:41 VERBOSE  imdb_lookup   sort-movies     Searching from imdb `Beastie.Boys.Story.2020.1080p.WEBRip.x264-RARBG`
2024-02-11 12:08:43 VERBOSE  imdb_lookup   sort-movies     Found https://www.imdb.com/title/tt11615290/
2024-02-11 12:08:43 VERBOSE  imdb_lookup   sort-movies     Parsing imdb for `Beastie.Boys.Story.2020.1080p.WEBRip.x264-RARBG`
2024-02-11 12:08:46 VERBOSE  imdb_lookup   sort-movies     Requestexception: 403 client error: forbidden for url: https://www.imdb.com/title/tt11615290/
2024-02-11 12:08:46 VERBOSE  task          sort-movies     REJECTED: `Beastie.Boys.Story.2020.1080p.WEBRip.x264-RARBG` by if plugin because matched requirement: imdb_na

This works:
curl -v 'https://www.imdb.com/title/tt14179942/' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)'

This does not:
curl -v 'https://www.imdb.com/title/tt14179942/'

< x-amz-rid: J6NS6PSFXJ5M4AAQ3QD2
< Strict-Transport-Security: max-age=47474747; includeSubDomains; preload
< Vary: Content-Type,Accept-Encoding,User-Agent
< X-Cache: Error from cloudfront
< Via: 1.1 8ec8e3fd6e66e1e022363066d11c6036.cloudfront.net (CloudFront)
< X-Amz-Cf-Pop: ORD51-C3
< Alt-Svc: h3=":443"; ma=86400
< X-Amz-Cf-Id: aoOHI-O2ijABaI12P2NJmLyvFEfMRiit8NCuGLMvVNqQhAIy1P76RA==
<
<html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
</body>
</html>
* Connection #0 to host www.imdb.com left intact

in flexget/components/imdb/utils.py

I changed:

#requests.headers.update({'User-Agent': 'Python-urllib/2.6'})
requests.headers.update({'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)'})

Yet I still have the same problem.

utils.pyc didn't get updated. SO I temp renamed it and it doesn't get re-created and I get the same error.

Thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant