gmyth-stream/server/0.3/gms.py
author morphbr
Thu May 31 14:31:24 2007 +0100 (2007-05-31)
branchtrunk
changeset 724 64b061775d06
parent 718 3fbcd3d9b2d1
child 800 2b1824e138b1
permissions -rw-r--r--
[svn r730] * GMyth-Streamer
- List status of more than 1 tid
- Stream without transcoding
- List files just under .transcoded and that has a .dat
     1 #!/usr/bin/env python
     2 
     3 __author__ = "Artur Duque de Souza"
     4 __author_email__ = "artur.souza@indt.org.br"
     5 __license__ = "GPL"
     6 __version__ = "0.3"
     7 __thanks__ = "Gustavo Sverzut Barbieri"
     8 
     9 import sys
    10 import os
    11 import logging as log
    12 from lib.server import serve_forever, load_plugins_transcoders
    13 
    14 log_level = log.INFO
    15 for p in sys.argv[1:]:
    16     if p == "-v" or p == "--verbose":
    17         log_level -= 10
    18 
    19 log.basicConfig(level=log_level,
    20                 format=("### %(asctime)s %(name)-18s \t%(levelname)-8s "
    21                         "\t%(message)s"),
    22                 datefmt="%Y-%m-%d %H:%M:%S")
    23 
    24 if not os.path.exists(".transcoded"):
    25     os.mkdir(".transcoded")
    26 
    27 pd = os.path.join("plugins", "transcoders")
    28 load_plugins_transcoders(pd)
    29 serve_forever()