Flexget / Flexget

The official FlexGet repository

Home Page:http://www.flexget.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

imdb_lookup 403

epross672 opened this issue · comments

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?