fn extract_songs(
    playlist_item_list_response: &google_youtube3::api::PlaylistItemListResponse,
    song_names: &mut Vec<Option<String>>,
) {
    // Clone playlist_item_list_response
    let playlist_item_list_response = playlist_item_list_response.clone();
    let items = playlist_item_list_response.items.unwrap();

    for playlist_item in items {
        let snippet = playlist_item.snippet.unwrap();
        let title = snippet.title;
        song_names.push(title);
    }
}
// Get the list of songs from a youtube playlist url
Get the list of songs from a youtube playlist url
Get the list of songs from a youtube playlist url
fn extract_songs(
    playlist_item_list_response: &google_youtube3::api::PlaylistItemListResponse,
    song_names: &mut Vec<Option<String>>,
) {
    // Clone playlist_item_list_response
    let playlist_item_list_response = playlist_item_list_response.clone();
    let items = playlist_item_list_response.items.unwrap();
    for playlist_item in items {
        let snippet = playlist_item.snippet.unwrap();
        let title = snippet.title;
        song_names.push(title);
    }
}
fn extract_songs ( playlist_item_list_response : & google_youtube3 :: api :: PlaylistItemListResponse , song_names : & mut Vec < Option < String > > , ) { // Clone playlist_item_list_response let playlist_item_list_response = playlist_item_list_response . clone ( ) ; let items = playlist_item_list_response . items . unwrap ( ) ; for playlist_item in items { let snippet = playlist_item . snippet . unwrap ( ) ; let title = snippet . title ; song_names . push ( title ) ; } }
Get the list of songs from a youtube playlist url
Get the list of songs from a youtube playlist url
playlist_item_list_response
&google_youtube3::api::PlaylistItemListResponse
song_names
&mut Vec<Option<String>>
playlist_item_list_response
&google_youtube3::api::PlaylistItemListResponse
song_names
&mut Vec<Option<String>>