Skip to content

Commit

Permalink
add param to set the server ip
Browse files Browse the repository at this point in the history
  • Loading branch information
kernel1983 committed Apr 13, 2021
1 parent 9a29823 commit 9feadb8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nanodlna/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ def play(args):
# Configure streaming server

target_ip = device["hostname"]
serve_ip = streaming.get_serve_ip(target_ip)
if args.local_host:
serve_ip = args.local_host
else:
serve_ip = streaming.get_serve_ip(target_ip)
files_urls = streaming.start_server(files, serve_ip)

# Play the video through DLNA protocol
Expand All @@ -85,6 +88,7 @@ def run():

p_play = subparsers.add_parser('play')
p_play.add_argument("-d", "--device", dest="device_url")
p_play.add_argument("-H", "--host", dest="local_host")
p_play.add_argument("-q", "--query-device", dest="device_query")
p_play.add_argument("-s", "--subtitle", dest="file_subtitle")
p_play.add_argument("-n", "--no-subtitle",
Expand Down

0 comments on commit 9feadb8

Please sign in to comment.