add transmission interface
This commit is contained in:
parent
d2aae7d958
commit
0510588b28
11 changed files with 130 additions and 1 deletions
22
pandora/torrent/management/commands/seeding.py
Normal file
22
pandora/torrent/management/commands/seeding.py
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# vi:si:et:sw=4:sts=4:ts=4
|
||||
|
||||
import os
|
||||
from os.path import join, dirname, basename, splitext, exists
|
||||
|
||||
from django.core.management.base import BaseCommand, CommandError
|
||||
from django.conf import settings
|
||||
|
||||
from ... import daemon
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
"""
|
||||
listen to rabbitmq and execute encoding tasks.
|
||||
"""
|
||||
help = 'listen to rabbitmq and execute encoding tasks.'
|
||||
args = ''
|
||||
|
||||
def handle(self, **options):
|
||||
transmission.startDaemon()
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue