diff -r 000000000000 -r f7351f2fd6d8 gmyth-stream/server/0.2/gms.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gmyth-stream/server/0.2/gms.py Thu Apr 19 18:13:51 2007 +0100 @@ -0,0 +1,20 @@ +#!/usr/bin/env python + +import sys +import os +import logging as log +from lib.server import serve_forever, load_plugins_transcoders + +log_level = log.INFO +for p in sys.argv[1:]: + if p == "-v" or p == "--verbose": + log_level -= 10 + +log.basicConfig(level=log_level, + format=("### %(asctime)s %(name)-18s %(levelname)-8s " + "\t%(message)s"), + datefmt="%Y-%m-%d %H:%M:%S") + +pd = os.path.join("plugins", "transcoders") +load_plugins_transcoders(pd) +serve_forever()