This commit is contained in:
j 2012-01-13 19:40:40 +05:30
parent 84c053b7db
commit 8e6de2b1b2

View file

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