Hello again,
As you might remember, last week I completed Listing hardcoded playlists with hardcoded songs. See the last week's progress here [0].
This week's task was to fetch those lists from the database. For that, I started using Restangular API to sent Rest API Restful Resources easily.
- As the first step, I used sqlite3 to add the manual entries to the database (In community bonding period, I have already added the new table to the database) and fetched them to show the same lists that we had in hardcoded way.
- The second step was to get the song list written in database and display them on the page.
After those steps, I had enough time to implement basic Playlist functionality such as adding, renaming and deleting playlists. I also enabled a simple way to update the songs which you would like to have in the playlist.
Here is the new playlist creation page:
And this is the playlist view that lists the songs and allows to do some basic playlist operations (simply click on a listname to open the view):
To delete a list, simply click on x next to the list name.
If you would like to try it out, you can go here [1] and use the new-playlist branch in the repository. The newly added playlists will have two songs assigned with 1 and 2 which can be edited as I mentioned.
Next week, I will be working on playing the songs one after each other which does not work with the current status.
NB: Maybe you also noticed the new ownCloud App navigation
[0] http://volkangezerr.scienceontheweb.net/icerikgoster.php?tur=ownCloud&id=298&dil=en