home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
IMDb+
Foreign titles and IP-related IMDB differences, possible solution!
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="ripk" data-source="post: 1050501" data-attributes="member: 90629"><p>Hi RoChess,</p><p></p><p>There might be a way to force IMDB to reply in a consistent, language nonspecific way, by using the Accept-Language in the HTTP header of the request to the IMDB.</p><p></p><p>You can easily test it when using IE, just go to the Settings -> Internet Options -> General tab -> Languages and set the language preferences to receive pages in a specific language if they exist on the server. If set to English-US, it actually forces the IE to use the specific Accept-Language field in the header, which forces the IMDB to reply with English titles instead of trying to guess the location of the user by IP address and translate them to a local language.</p><p></p><p>I tried it with</p><p></p><p><a href="http://akas.imdb.com/find?s=tt&q=Scent%20of%20a%20Woman" target="_blank">http://akas.imdb.com/find?s=tt&q=Scent of a Woman</a> and</p><p><a href="http://akas.imdb.com/title/tt0105323/releaseinfo#akas" target="_blank">http://akas.imdb.com/title/tt0105323/releaseinfo#akas</a></p><p></p><p>and it works like a charm! I'm located in Croatia and when I remove all language preferences, I get Croatian tranlations for movies from IMDB. But, with English language requested, the magic happens <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>If there is a way for you to change headers in your HTTP requests to aka.imdb.com from within the scraper, you can then force the retrieval of the page in English language, which greatly reduces the guesswork on your side and eliminates the need for a lot of parsing and magic - at least everyone around the globe will receive same exact response as you do in the US. Unfortunately, it does not work the other way - if I set the Accept-Language to, say, de, I still get the page with Croatian titles (and not German, even though the server says Content-Language: de in response to my request).</p><p></p><p>Hope this helps a bit - as of recently I keep getting messed-up (translated) titles no matter what setting I use <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" /></p></blockquote><p></p>
[QUOTE="ripk, post: 1050501, member: 90629"] Hi RoChess, There might be a way to force IMDB to reply in a consistent, language nonspecific way, by using the Accept-Language in the HTTP header of the request to the IMDB. You can easily test it when using IE, just go to the Settings -> Internet Options -> General tab -> Languages and set the language preferences to receive pages in a specific language if they exist on the server. If set to English-US, it actually forces the IE to use the specific Accept-Language field in the header, which forces the IMDB to reply with English titles instead of trying to guess the location of the user by IP address and translate them to a local language. I tried it with [url]http://akas.imdb.com/find?s=tt&q=Scent%20of%20a%20Woman[/url] and [url]http://akas.imdb.com/title/tt0105323/releaseinfo#akas[/url] and it works like a charm! I'm located in Croatia and when I remove all language preferences, I get Croatian tranlations for movies from IMDB. But, with English language requested, the magic happens :) If there is a way for you to change headers in your HTTP requests to aka.imdb.com from within the scraper, you can then force the retrieval of the page in English language, which greatly reduces the guesswork on your side and eliminates the need for a lot of parsing and magic - at least everyone around the globe will receive same exact response as you do in the US. Unfortunately, it does not work the other way - if I set the Accept-Language to, say, de, I still get the page with Croatian titles (and not German, even though the server says Content-Language: de in response to my request). Hope this helps a bit - as of recently I keep getting messed-up (translated) titles no matter what setting I use :( [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
IMDb+
Foreign titles and IP-related IMDB differences, possible solution!
Contact us
RSS
Top
Bottom