Skip to content

Commit

Permalink
Bug fix for previous AirPlay change
Browse files Browse the repository at this point in the history
  • Loading branch information
postlund committed Nov 7, 2019
1 parent 9328788 commit ca75b88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyatv/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,10 +397,10 @@ def _isint(value):

async def _handle_commands(args, loop):
config = AppleTV(args.address, args.name)
if args.dmap_credentials:
if args.dmap_credentials or args.protocol == const.PROTOCOL_DMAP:
config.add_service(DmapService(
args.id, args.dmap_credentials, port=args.port))
if args.mrp_credentials:
if args.mrp_credentials or args.protocol == const.PROTOCOL_MRP:
config.add_service(MrpService(
args.id, args.port, credentials=args.mrp_credentials))
if args.airplay_credentials:
Expand Down

0 comments on commit ca75b88

Please sign in to comment.