allow help call w/o stations.yml
This commit is contained in:
parent
e53c8ea9c9
commit
891384350c
1 changed files with 1 additions and 1 deletions
2
ycast.py
2
ycast.py
|
@ -85,11 +85,11 @@ class YCastServer(BaseHTTPRequestHandler):
|
|||
return item
|
||||
|
||||
|
||||
get_stations()
|
||||
parser = argparse.ArgumentParser(description='vTuner API emulation')
|
||||
parser.add_argument('-l', action='store', dest='address', help='Listen address', default='0.0.0.0')
|
||||
parser.add_argument('-p', action='store', dest='port', type=int, help='Listen port', default=80)
|
||||
arguments = parser.parse_args()
|
||||
get_stations()
|
||||
try:
|
||||
server = HTTPServer((arguments.address, arguments.port), YCastServer)
|
||||
except PermissionError:
|
||||
|
|
Loading…
Add table
Reference in a new issue