add google link
This commit is contained in:
parent
c8b1b3072d
commit
896a5f3441
2 changed files with 7 additions and 0 deletions
|
|
@ -2,6 +2,7 @@
|
|||
# vi:si:et:sw=4:sts=4:ts=4
|
||||
import os
|
||||
import hashlib
|
||||
from urllib import quote
|
||||
|
||||
from django.db import models
|
||||
from django.db.models import Q, Max
|
||||
|
|
@ -130,6 +131,8 @@ class MovieId(models.Model):
|
|||
if self.criterion_id:
|
||||
links.append({'source': 'Criterion',
|
||||
'url': ox.web.criterion.getUrl(self.criterion_id)})
|
||||
links.append({'source': 'Google',
|
||||
'url': 'http://google.com/search?q=%s' % quote('"%s (%s)"'%(self.title, self.year))})
|
||||
return links
|
||||
|
||||
def json(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue