Another difference I noticed.

I'm not too worried about the different set of results being returned,
I understand that IMDB's web servers and imdbpy will have different
implementations for fuzzy matching.

No, what I'm confused by is how ['kind'] changes after the update().

#!/usr/bin/python

import imdb

i1 = imdb.IMDb('http')
i2 = imdb.IMDb('sql', 'sqlite:/share/media/imdb/sql.db')

title = 'Bury My Heart at Wounded Knee'
year = '2007'

s1 = i1.search_movie(title)
s2 = i2.search_movie(title)

for m in s1:
  if m['year'] == int(year) or m['year'] == year:
    print 's1:', m['title'], m['kind']
    i1.update(m)
    print 's1:', m['title'], m['kind']

for m in s2:
  if m['year'] == int(year):
    print 's2:', m['title'], m['kind']
    i2.update(m)
    print 's2:', m['title'], m['kind']



s1: Bury My Heart at Wounded Knee tv movie
s1: Bury My Heart at Wounded Knee movie
s2: Bury My Heart at Wounded Knee tv movie
s2: Bury My Heart at Wounded Knee tv movie
s2: Bernard Thomas, les secrets de la gloire movie
s2: Bernard Thomas, les secrets de la gloire movie
s2: Bernard Manning from Beyond the Grave tv movie
s2: Bernard Manning from Beyond the Grave tv movie


Is it intentional that, for http, kind would change from tv movie to movie?

mrc

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Imdbpy-help mailing list
Imdbpy-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-help

Reply via email to