termusic 0.7.8

Terminal Music and Podcast Player written in Rust. Can download music from youtube(netease/migu/kugou) and then embed lyrics and album photos into mp3/m4a/flac/wav/ogg vorbis files.
//! Extract urls from M3U playlist files

pub struct PlaylistItem {
    pub url: String,
}

pub fn decode(content: &str) -> Vec<PlaylistItem> {
    let lines = content.lines();
    let mut list = vec![];
    for line in lines {
        if line.starts_with('#') {
            continue;
        }

        list.push(PlaylistItem {
            url: String::from(line),
        });
    }
    list
}