You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: yt_video.rs
    path of file: ./repos/blob-dl/src/assembling/youtube
    
    the code of the file until where you have to start completion: use dialoguer::console::Term;
use dialoguer::{theme::ColorfulTheme, Select};
use which::which;

use crate::assembling::youtube::*;
use crate::error::BlobResult;
use crate::ui_prompts::*;

/// Returns a ConfigYtVideo object with all the necessary data
/// to start downloading a youtube video
///
/// Takes in the command line arguments list
pub(crate
    
pub(crate) fn assemble_data(url: &str, playlist_id: usize) -> BlobResult<config::DownloadConfig> {
    let term = Term::buffered_stderr();

    // Whether the user wants to download video files or audio-only
    let media_selected = get_media_selection(&term)?;

    let chosen_format = format::get_format(&term, url, &media_selected, playlist_id)?;

    let output_path = get_output_path(&term)?;

    Ok(config::DownloadConfig::new_video(
        url,
        chosen_format,
        output_path,
        media_selected,
    ))
}