Mercurial > hg > config
changeset 656:4d9df2370659
STUB: python/dlna.py
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sat, 29 Mar 2014 10:08:48 -0700 |
parents | cd73d951ae5b |
children | 60952012be78 |
files | python/dlna.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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)