whatsonair.py 359 Bytes
Newer Older
1 2
from django.core.management.base import BaseCommand, CommandError

3
from ...utils import whatsonair
4 5 6 7


class Command(BaseCommand):
    def handle(self, *args, **options):
8 9 10
        onair = whatsonair()
        print 'found episode:', onair.get('episode')
        print 'found emission:', onair.get('emission')
11
        print 'found nonstop:', onair.get('nonstop')