Re: [Imdbpy-help] Force movie titles to English

2012-12-27 Thread Davide Alberani
On Thu, Dec 27, 2012 at 1:40 PM, Mikael Puhakka  wrote:
>
> After I updated IMDBpy to 5.0-devel to conform the changes in IMDB's end and
> fix the search the movie titles started coming in Finnish, my local
> language. I would greatly prefer having the titles in English. I found the
> promising helper functions `akasLanguages` and `getAKAsInLanguage` in
> `imdb.helpers` but they yield in empty lists.

Hmm.. they are not perfect, and if the info is not there, there's not much
we can do.

> An IMDb instance does produce
> good data:
>
> server.get_movie_akas(mov.getID())

You can also do: server.update(mov)

> I feel there is a little trick somewhere to skip AKA lookup. I do
> know IMDB nowadays force local names to unregistered users; can this be
> overridden with custom HTTP headers?

That's strange, because we already use the akas.imdb.com webserver,
and we are registered users (we send some cookies with each request,
see the README.adult doc).

I'll do some tests in the weekend, thanks for the report!

--
Davide Alberani   [PGP KeyID: 0x465BFD47]
http://www.mimante.net/

--
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812
___
Imdbpy-help mailing list
Imdbpy-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-help


Re: [Imdbpy-help] Force movie titles to English

2012-12-30 Thread Davide Alberani
On Fri, Dec 28, 2012 at 8:44 AM, Davide Alberani
 wrote:
>
> That's strange, because we already use the akas.imdb.com webserver,
> and we are registered users

Ok, this should be fixed in the repository version, now.
I've update the cookies (probably unnecessary) and added an Accept-Language
header set to "en-us,en;q=0.5".


Thanks!

--
Davide Alberani   [PGP KeyID: 0x465BFD47]
http://www.mimante.net/

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_123012
___
Imdbpy-help mailing list
Imdbpy-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-help


Re: [Imdbpy-help] Force movie titles to English

2012-12-31 Thread Mikael Puhakka
On Sun, Dec 30, 2012 at 9:34 PM, Davide Alberani
 wrote:
> On Fri, Dec 28, 2012 at 8:44 AM, Davide Alberani
>  wrote:
>>
>> That's strange, because we already use the akas.imdb.com webserver,
>> and we are registered users
>
> Ok, this should be fixed in the repository version, now.
> I've update the cookies (probably unnecessary) and added an Accept-Language
> header set to "en-us,en;q=0.5".
>
>
> Thanks!


No thank you! ;)
The fix works swell.
Happy new year,

-- Mikael

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
___
Imdbpy-help mailing list
Imdbpy-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-help


Re: [Imdbpy-help] Force movie titles to English

2013-02-04 Thread Matt Keenan

Hi, 

Unfortunately I'm still getting a similar problem, I've downloaded latest 
dev source from bitbucket, and when I perform:

   imdb_access.search_movie("2 Days In Paris")

the first item returned is :
2 Giorni A Parigi (2007)

Which is the movie I want to get, if I perform 
full_movie = imdb_access.get(movie.movieID, info="main") 

Where movie.movieID is taken from the 2 Giorni A Parigi item in the list 
returned from search_movie() I actually get the right data, e.g. 
full_movie.get('title') returns 2 Days In Paris.

Anyone got any idea what's going on here ?

cheers

Matt


On Monday, 31 December 2012 10:58:22 UTC, Mikael Puhakka wrote:
>
> On Sun, Dec 30, 2012 at 9:34 PM, Davide Alberani 
> > wrote: 
> > On Fri, Dec 28, 2012 at 8:44 AM, Davide Alberani 
> > > wrote: 
> >> 
> >> That's strange, because we already use the akas.imdb.com webserver, 
> >> and we are registered users 
> > 
> > Ok, this should be fixed in the repository version, now. 
> > I've update the cookies (probably unnecessary) and added an 
> Accept-Language 
> > header set to "en-us,en;q=0.5". 
> > 
> > 
> > Thanks! 
>
>
> No thank you! ;) 
> The fix works swell. 
> Happy new year, 
>
> -- Mikael 
>
> --
>  
>
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, 
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current 
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft 
> MVPs and experts. SALE $99.99 this month only -- learn more at: 
> http://p.sf.net/sfu/learnmore_122412 
> ___ 
> Imdbpy-help mailing list 
> imdbp...@lists.sourceforge.net  
> https://lists.sourceforge.net/lists/listinfo/imdbpy-help 
>
--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb___
Imdbpy-help mailing list
Imdbpy-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-help


Re: [Imdbpy-help] Force movie titles to English

2013-02-05 Thread Davide Alberani
On Mon, Feb 4, 2013 at 10:25 PM, Matt Keenan  wrote:
>
> Unfortunately I'm still getting a similar problem, I've downloaded latest
> dev source from bitbucket, and when I perform:
>
>imdb_access.search_movie("2 Days In Paris")
>
> the first item returned is :
> 2 Giorni A Parigi (2007)

Hi!
That's really strange.
It seems to be related to the cookies we use.

"Country of Residence" and "Title display country" are set to United States,
while "Title display language" is set to English.
In spite of this, I get Italian titles if I use the cookies from a
machine in UK.

If I remove the cookie (adding cookie_id=None, cookie_uu=None to the
imdb.IMDb() call),
I get English titles.
Removing the cookies and running the code from a machine in Italy, results
in Italian titles, but this makes sense.
The only things that can link that account to Italy is a .it email address and
the fact that I've created it from here.

I think I'll create a new account from a VM on AWS, just to be sure.

Thanks for the report!


--
Davide Alberani   [PGP KeyID: 0x465BFD47]
http://www.mimante.net/

--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
Imdbpy-help mailing list
Imdbpy-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-help


Re: [Imdbpy-help] Force movie titles to English

2013-02-10 Thread Davide Alberani
On Tue, Feb 5, 2013 at 8:43 PM, Davide Alberani
 wrote:
>
> I think I'll create a new account from a VM on AWS, just to be sure.

I've just pushed a new cookie in the repository.
Let me know if it solves the issue.


-- 
Davide Alberani   [PGP KeyID: 0x465BFD47]
http://www.mimante.net/

--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
Imdbpy-help mailing list
Imdbpy-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-help