Example #1
0
                                if not a:
                                    a = Crew(name=actor, job='a')
                                    a.save()
                                    saved = True
                                else:
                                    crc = CrewCredit(movie=m, crew=a)
                                    crc.save()
                                    saved = True
                                    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'])