def create_headers(user_id, token=None):
 headers = {}
 authorization = 'MediaBrowser UserId="{user_id}", Client="other", Device="beets", DeviceId="beets", Version="0.0.0"'.format(user_id=user_id)
 headers['x-emby-authorization'] = authorization
 if token:
  headers['x-mediabrowser-token'] = token
 return headers

def create_headers ( user_id , token = None ) : headers = { } authorization = 'MediaBrowser UserId="{user_id}", Client="other", Device="beets", DeviceId="beets", Version="0.0.0"' . format ( user_id = user_id ) headers [ 'x-emby-authorization' ] = authorization if token : headers [ 'x-mediabrowser-token' ] = token return headers
return header dict that is needed to talk to the emby api .