async def print_what_is_playing(loop):
details = conf.AppleTV(ADDRESS, NAME)<EOL>details.add_service(conf.DmapService(HSGID))<EOL>print('<STR_LIT>'.format(details.address))<EOL>atv = pyatv.connect_to_apple_tv(details, loop)<EOL>try:<EOL><INDENT>print((await atv.metadata.playing()))<EOL><DEDENT>finally:<EOL><INDENT>await atv.logout()<EOL><DEDENT>
Connect to device and print what is playing.