/* http://zenipex.com/progs/ * Version: 1.0.00 * * pspm3ugen == PSP .m3u Generator (for Linux) * by Mitchell Keith Bloch * bazald@zenipex.com * * The .m3u files generated by this program are * identical to those generated by WMP10 down to * the last bit. Enjoy. * * Cartman License: * "Whatevah! Whatevah! You do what you want!" */ #include #include using namespace std; int main(int argc, char *argv[]) { if(argc < 2) { cout << "Usage: pspm3ugen *.mp3 > Playlist.m3u\n"; return 1; } string fn; int l; cout << "#EXTM3U\r\n"; for(int i = 1; i < argc; ++i) { fn = argv[i]; l = fn.rfind('/'); fn = fn.substr(l+1, fn.length()-l-1); cout << "#EXTINF:0," << fn << "\r\n" << fn << "\r\n\r\n"; } return 0; }