Commit Graph

7 Commits

Author SHA1 Message Date
Bryan Schumaker
114ac13c7a libsaria: Added TODO idea to playlist
I want to do type checking after loading objects.  This can be done once
during storage.load_obj, rather than after load_obj
2011-05-28 15:40:19 -04:00
Bryan Schumaker
0f78c7b80c libsaria: Add idea to playlist
I want one file to grab the lock and another with functions to call with
the lock held.
2011-05-14 08:29:55 -04:00
Bryan Schumaker
a3af3d053d libsaria: New sequential next function for playlist
The new function exists in its own file to keep things simpler.  Based
on the current song id, it finds the index in the playlist and returns
the next visible song.
2011-05-14 08:15:05 -04:00
Bryan Schumaker
202e75430e libsaria: Add comment to playlist save()
The lock should be held while saving.  Save should normally be called by
a function that already holds the lock, though.
2011-05-13 08:19:50 -04:00
Bryan Schumaker
132a66271c libsaria: Move playlist load, save, and reset functions
I moved them to playlist.py so they can grab the lock and safely do
stuff.  I save after adding or removing song ids.  I also save after
resetting the playlist.
2011-05-12 22:34:36 -04:00
Bryan Schumaker
2afabfcf21 libsaria: remove ids from playlist (improved!)
I moved this to my new file.  I grab the lock, remove each id, and then
unlock.
2011-05-12 08:11:35 -04:00
Bryan Schumaker
8bd914802e libsaria: Move playlist's list to new file
It will be easier to work with from a new file, especially after I put
in functions for doing basic operations on it.
2011-05-11 23:05:47 -04:00