def _get_audio_info(media_data):
    """Parses audio URL, audio download URL, audio duration
    If the audio does not allow download, we save the 'streaming'
    URL as the `audio_url`
    :return: Tuple with main audio file information:
    - audio_url
    - download_url
    - duration (in milliseconds)
    """
    audio_url = media_data.get("audio")
    download_url = None
    if media_data.get("audiodownload_allowed") and media_data.get("audiodownload"):
        audio_url = media_data.get("audiodownload")
        download_url = media_data.get("audiodownload")
    duration = media_data.get("duration")
    if duration:
        duration = int(duration) * 1000
    return audio_url, duration, download_url