Skip to content

Commit

Permalink
Merge pull request gabrielmagno#12 from kernel1983/master
Browse files Browse the repository at this point in the history
add param to set the server ip
  • Loading branch information
gabrielmagno authored Aug 21, 2021
2 parents 9a29823 + 9feadb8 commit 4319f0f
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 4319f0f

Please sign in to comment.