Results 1 to 2 of 2
Ok, so lets get down to it. I have this project for school where I have to write a simple script can do the following: Query for Songs Add Entries ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 05-29-2009 #1
- Join Date
- May 2009
Help with a school project, please
Ok, so lets get down to it. I have this project for school where I have to write a simple script can do the following:
Query for Songs
Create a Playlist
I'm having a really tough time and were not getting much help here in class.
This is what I got so far:
#!/bin/sh echo "MP3 Program Menu: =================================== A)Query for Songs B)Add Entries C)Delete Entries D)Display All E)Create a Playlist F)Delete Playlist X)Quit ===================================" echo -e "Enter your selection --> \c"
- 05-29-2009 #2
- Join Date
- Apr 2009
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
You won't get much help for school projects here - in general it is contrary to the terms-of-service for this site. However, I think that some general pointers are not out of order. So, use the file system (user directories and files) for your database. It's simple and can be scripted pretty easily. Ie, check for and create a ~/Music/Playlists directory if necessary, and use that to store playlists, which in turn can be simple text (xml is good) files.
You can also create if necessary the directory ~/Music/Contents directory, and store the raw mp3's there.
Your biggest issue is what information you want in your playlists. Also, you probably want to create an "All Songs" playlist that keeps track of all the songs in ~/Music/Contents.
That's about as much help as I can in good conscience provide you. Good luck.Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!