# HG changeset patch # User Jeff Hammel # Date 1396112928 25200 # Node ID 4d9df2370659637c16eefd006363a55bbabb5bad # Parent cd73d951ae5bbedd9aaa70b370e8068fb282ceb7 STUB: python/dlna.py diff -r cd73d951ae5b -r 4d9df2370659 python/dlna.py --- a/python/dlna.py Fri Mar 28 23:23:34 2014 -0700 +++ b/python/dlna.py Sat Mar 29 10:08:48 2014 -0700 @@ -25,6 +25,8 @@ help='db directory') parser.add_argument('-p', '--port', dest='port', default=8200, type=int, help="port") + parser.add_argument('-v', '--videos', dest='videos', nargs='+', + help="videos") parser.add_argument('audio', nargs='+') options = parser.parse_args(args) @@ -35,6 +37,8 @@ ('enable_tivo', 'yes')] lines.extend([('media_dir', 'A,{}'.format(os.path.abspath(d))) for d in options.audio]) + lines.extend([('media_dir', 'V,{}'.format(os.path.abspath(d))) + for d in options.audio]) config = '\n'.join(['{}={}'.format(*line) for line in lines]) print (config)