add cache_imdb_ids
This commit is contained in:
parent
e3079b573a
commit
f7855147ce
1 changed files with 17 additions and 0 deletions
17
oxdata/movie/management/commands/cache_imdb_ids.py
Normal file
17
oxdata/movie/management/commands/cache_imdb_ids.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# vi:si:et:sw=4:sts=4:ts=4
|
||||
|
||||
from django.core.management.base import BaseCommand
|
||||
|
||||
import movie.models
|
||||
|
||||
class Command(BaseCommand):
|
||||
"""
|
||||
load new ids into cache
|
||||
"""
|
||||
help = 'load ids from sites that dont support search.'
|
||||
args = ''
|
||||
|
||||
def handle(self, **options):
|
||||
timeout = 30*24*60*60
|
||||
movie.models.get_new_ids(timeout)
|
Loading…
Reference in a new issue