print "Adding %s %s to %s" % (crewtype, w, m.title) else: m = m[0] sv = False if (not m.plot) & (mv['Plot'] != u''): m.plot = mv['Plot'] sv = True print "Adding plot to %s" % (m.title) if (not m.rating) & (mv['Rating'] != u''): m.plot = mv['Rating'] sv = True print "Adding rating to %s" % (m.title) if (not m.metacritic_rating == int(mv['Metacritic'])): m.metacritic_rating = mv['Metacritic'] sv = True print "Adding metacritic to %s" % (m.title != '') if (not m.poster) & (mv['Poster'] != ''): m.poster = mv['Poster'] sv = True print "Adding poster to %s (%s)" % (m.title, mv['Poster']) if m.date.year != int(mv["Released"][0:4]): m.date = date(int(mv["Released"][0:4]), int(mv["Released"][5:7]), int(mv["Released"][8:10])) sv = True print "Adding date to %s" % (m.title) if float(m.imdb_rating) != dec2(mv['imdbRating']): m.imdb_votes = int2(mv['imdbVotes'])