siteid can be longer
This commit is contained in:
parent
40f7002b2a
commit
f6cb05b5fb
3 changed files with 3 additions and 2 deletions
|
@ -180,7 +180,7 @@ class MovieId(models.Model):
|
||||||
if self.archiveorg_id:
|
if self.archiveorg_id:
|
||||||
json['archive.org'] = {
|
json['archive.org'] = {
|
||||||
'id': self.archiveorg_id,
|
'id': self.archiveorg_id,
|
||||||
'url': ox.web.archive.getUrl(self.archive_id)
|
'url': ox.web.archive.getUrl(self.archiveorg_id)
|
||||||
}
|
}
|
||||||
|
|
||||||
if self.episode > -1:
|
if self.episode > -1:
|
||||||
|
|
|
@ -113,6 +113,7 @@ def get_new_ids(timeout=-1):
|
||||||
added = 0
|
added = 0
|
||||||
for i in frozenset(ids) - known_ids:
|
for i in frozenset(ids) - known_ids:
|
||||||
m= Imdb(imdb=i)
|
m= Imdb(imdb=i)
|
||||||
|
print i
|
||||||
m.update()
|
m.update()
|
||||||
added += 1
|
added += 1
|
||||||
if added:
|
if added:
|
||||||
|
|
|
@ -61,7 +61,7 @@ class PosterCache(models.Model):
|
||||||
movie_id = models.ForeignKey(MovieId, related_name='postercache')
|
movie_id = models.ForeignKey(MovieId, related_name='postercache')
|
||||||
url = models.CharField(max_length=1024)
|
url = models.CharField(max_length=1024)
|
||||||
site = models.CharField(max_length=255)
|
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))
|
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')
|
status = models.CharField(max_length=1024, default='200')
|
||||||
failed = models.BooleanField(default=False)
|
failed = models.BooleanField(default=False)
|
||||||
|
|
Loading…
Reference in a new issue