This commit is contained in:
j 2012-01-13 19:40:40 +05:30
parent 84c053b7db
commit 8e6de2b1b2
1 changed files with 2 additions and 1 deletions

View File

@ -11,6 +11,7 @@ from django.contrib.auth.models import User
import ox
from ox.normalize import canonicalName, normalizePath, stripAccents
from ox import stripTags
import ox.web.archive
import ox.web.imdb
import ox.web.wikipedia
@ -133,7 +134,7 @@ class MovieId(models.Model):
links.append({'source': 'Criterion',
'url': ox.web.criterion.getUrl(self.criterion_id)})
if self.archiveorg_id:
links.append({'source': 'Wikipedia',
links.append({'source': 'Internet Archive',
'url': ox.web.archive.getUrl(self.archiveorg_id)})
links.append({'source': 'Google',
'url': 'http://google.com/search?q=%s' % quote('"%s (%s)"'%(self.title, self.year))})