forked from 0x2620/pandora
avoid ad
This commit is contained in:
parent
e3f6f05f07
commit
f71334ae25
1 changed files with 5 additions and 0 deletions
|
@ -365,6 +365,11 @@ class Item(models.Model):
|
|||
update_poster = True
|
||||
if not settings.USE_IMDB:
|
||||
self.public_id = ox.toAZ(self.id)
|
||||
# avoid looking like an ad
|
||||
if self.id == ox.fromAZ('AD') - 1:
|
||||
cursor = connection.cursor()
|
||||
sql = "SELECT nextval('%s_id_seq')" % self._meta.db_table
|
||||
cursor.execute(sql)
|
||||
|
||||
# this does not work if another item without imdbid has the same metadata
|
||||
oxdbId = self.oxdb_id()
|
||||
|
|
Loading…
Reference in a new issue