siteid can be longer

This commit is contained in:
j 2012-08-14 11:00:43 +00:00
parent 40f7002b2a
commit f6cb05b5fb
3 changed files with 3 additions and 2 deletions

View file

@ -180,7 +180,7 @@ class MovieId(models.Model):
if self.archiveorg_id:
json['archive.org'] = {
'id': self.archiveorg_id,
'url': ox.web.archive.getUrl(self.archive_id)
'url': ox.web.archive.getUrl(self.archiveorg_id)
}
if self.episode > -1:

View file

@ -113,6 +113,7 @@ def get_new_ids(timeout=-1):
added = 0
for i in frozenset(ids) - known_ids:
m= Imdb(imdb=i)
print i
m.update()
added += 1
if added:

View file

@ -61,7 +61,7 @@ class PosterCache(models.Model):
movie_id = models.ForeignKey(MovieId, related_name='postercache')
url = models.CharField(max_length=1024)
site = models.CharField(max_length=255)
site_id = models.CharField(max_length=42)
site_id = models.CharField(max_length=1024)
image = models.ImageField(max_length=255, upload_to=lambda i, f: poster_path(i.url.encode('utf-8'), f))
status = models.CharField(max_length=1024, default='200')
failed = models.BooleanField(default=False)