Bryan Schumaker
b8e8f7179c
Remove Ocarina 4 files
...
Get them out of the way to begin work on Ocarina 5
2011-08-14 10:46:22 -04:00
Bryan Schumaker
1a45e95f9a
Ocarina 4.9
2011-06-24 23:45:04 -04:00
Bryan Schumaker
4b852eff28
libsaria: Fix dattr access
...
dattrs need a song id to search the dictionary. I was passing the name
of the requested attribute instead. As a result, dattrs were always
returning the default value.
2011-06-24 23:21:44 -04:00
Bryan Schumaker
9be5b10112
libsaria: Clear cur_id when loading file
...
This allows me to return the correct attributes for a random song loaded
by the user.
2011-06-23 10:21:24 -04:00
Bryan Schumaker
d9f89e0ecd
ocarina: Add experimental settings page
...
Right now it just contains a checkbox for running the server. It should
probably contain some kind of warning text, and eventually other
settings.
2011-06-18 14:10:05 -04:00
Bryan Schumaker
f87f5f25cf
libsaria: Run server based on stored stetting
...
I have a toggle_state() function to toggle the server and save the state
for the next session.
2011-06-18 14:09:27 -04:00
Bryan Schumaker
868359a4a4
libsaria: Catch errors when writing cache files
...
The user doesn't want to see these...
2011-06-18 13:27:21 -04:00
Bryan Schumaker
34c7bc374e
ocarina: Refresh library settings list
...
I call the refresh function whenever the library has been updated.
2011-06-18 11:38:39 -04:00
Bryan Schumaker
c31ec80016
ocarina: Function for refreshing library source list
...
The settings page may need to be updated once it has been created. This
patch adds a function for recreating the list of sources.
2011-06-18 11:37:48 -04:00
Bryan Schumaker
989de579e4
ocarina: Hide settings by default
...
They don't need to be seen all the time. Hide them until the user asks
to see the page.
2011-06-18 11:37:05 -04:00
Bryan Schumaker
f2c3e2d901
ocarina: Import settings during startup
...
This gives me a chance to initialize the page and make it available for
callbacks.
2011-06-18 11:36:28 -04:00
Bryan Schumaker
eb7a8e03a4
ocarina: Remove path from the library through settings
...
Click the button and it's gone!
2011-06-18 11:22:57 -04:00
Bryan Schumaker
e6ba5c3139
libsaria: Remove path from library
...
I need to delete it, save the library, and rebulid the tree and index.
2011-06-18 11:22:24 -04:00
Bryan Schumaker
bf9ef7666c
ocarina: Settings close button has no relief
...
I like the look of gtk.RELIEF_NONE
2011-06-18 11:12:07 -04:00
Bryan Schumaker
92fd8e508d
ocarina: Show library information
...
I create a panel for each library path showing the full path and the
number of songs. I also have a dummy button for removing the path from
the library.
2011-06-18 11:10:18 -04:00
Bryan Schumaker
083cbf738c
libsaria: Added function for listing the library
...
This makes it easier for the gui to know what is in the library.
2011-06-18 11:09:44 -04:00
Bryan Schumaker
f09f80cd65
ocarina: Added library category to settings
...
I'll eventually use this for controlling the library. Right now it's
just an empty page.
2011-06-18 10:47:00 -04:00
Bryan Schumaker
381b72aea4
ocarina: Show and hide settings page
...
I don't have any settings here yet, but it's coming. For now, it's
good enough to be able to open and close a tab.
2011-06-18 10:36:19 -04:00
Bryan Schumaker
a8aef66696
ocarina: Add settings button
...
Right now, clicking the button will print out some text. I'll
eventually have it open a new tab for configuring Ocarina.
2011-06-18 10:25:15 -04:00
Bryan Schumaker
e055976e07
libsaria: Start server in a try / except block
...
I can catch the exception and print out a nicer message this way.
2011-06-18 10:24:45 -04:00
Bryan Schumaker
445b3a79bc
ocarina: Don't do gtk locking anymore
...
I added this to help with setting album art in other threads. Now that
I'm forcing this to the main thread, I don't think I need it anymore.
2011-06-18 10:11:02 -04:00
Bryan Schumaker
38f1d6ec8c
ocarina: Only set album art once
...
When we receive a new image, we should check if it is the same as the
current image. If it is, we don't need to change anything!
2011-06-18 10:01:10 -04:00
Bryan Schumaker
72f7ec90eb
libsaria: Remove unused function
...
I don't need the file_empty() function in the cache anymore
2011-06-18 09:44:34 -04:00
Bryan Schumaker
7319767ac3
libsaria: Don't automatically create cache file
...
The cache filler function will pass back a string to be written to this
file. If this string != None, then I create the file and fill it.
2011-06-18 09:39:55 -04:00
Bryan Schumaker
e6849dc5cd
libsaria: Only delete empty cache files
...
For some reason I was trying to delete files that don't even exist in
the cache! This was stupid and caused an error. Now I only delete
empty files
2011-06-18 09:28:53 -04:00
Bryan Schumaker
6773d9837e
ocarina: Set album art in the main thread
...
I use a gobject signal to force setting album art in the main loop.
In theory, this should cut down on the number of crashes I see when
album art is fetched.
2011-06-18 09:23:50 -04:00
Bryan Schumaker
97902d0730
libsaria: Remove print statement
...
I added it for debugging. I don't need it anymore.
2011-06-17 23:53:01 -04:00
Bryan Schumaker
66d4d4979f
ocarina: Set album art from on_load() attrs
...
It's available here, so I might as well. Hopefully this will cut down
on the number of crashes I get, too...
2011-06-17 23:44:28 -04:00
Bryan Schumaker
e8e0c5d743
libsaria: Return album art as part of all_attrs()
...
If the album art exists, I might as well return it so it can be set in
the main gtk thread. If it doesn't exist, I'll trigger a web search for
it.
2011-06-17 23:42:20 -04:00
Bryan Schumaker
851c7251a2
libsaria: Wrong variable initialization
...
Finding attributes for songs not in the library will run if "found"
is initialized to False instead of True...
2011-06-17 23:21:23 -04:00
Bryan Schumaker
12cb9a900a
libsaria: Switch most code to use all_attrs()
...
all_attrs() is my new way of doing things, so it makes sense to use it
now.
2011-06-17 20:23:32 -04:00
Bryan Schumaker
5fcb590f53
ocarina: Pass attributes throughout the gui
...
This avoids repeated calls to the get_attrs() function at every step.
2011-06-17 20:03:13 -04:00
Bryan Schumaker
2c341085b4
libsaria: Add sources.get_cur_id()
...
I think a function for finding the current song id will be useful if I
want to remove the old get_attrs() function...
2011-06-17 20:02:11 -04:00
Bryan Schumaker
645b70b33c
libsaria: Introduce libsaria.sources.all_attrs()
...
This patch introduces a new function "all_attrs()" which will return a
dictionary containing all the attributes for the current song. To help
the gui, I pass this dictionary during an on_load() callback.
2011-06-17 19:47:04 -04:00
Bryan Schumaker
5a735aa625
libsaria: Clear cur_id correctly
...
I do this if the song isn't found in the library, rather than as part of
opening a track from disk.
2011-06-16 18:53:27 -04:00
Bryan Schumaker
8f3c4b7c6f
libsaria: Fix library browser web page
...
It needs to use the new library functions to avoid an error.
2011-06-16 18:19:42 -04:00
Bryan Schumaker
9bc22e0d1d
Begin Ocarina 4.9
2011-06-16 18:19:22 -04:00
Bryan Schumaker
05ae0a2505
Ocarina 4.8
2011-06-16 11:15:45 -04:00
Bryan Schumaker
23781e24a8
libsaria: Sometimes the server doesn't exist
...
I shouldn't try shutting down the web server if it hasn't been imported.
This will only lead to an error...
2011-06-16 11:15:01 -04:00
Bryan Schumaker
0e5bd0d908
libsaria: Fix library updating
...
I need to reindex and rebuild the tree on each update. I also need to
notify the front-end that things have changed.
2011-06-09 09:44:40 -04:00
Bryan Schumaker
e0ad57c541
libsaria: Fix playing songs from outside of library
...
The song was loading, but attributes weren't updating. I also use this
patch to begin playback when a song is loaded (I was tired of manually
pressing play every time)
2011-06-09 08:35:02 -04:00
Bryan Schumaker
63574a17c6
ocarina: Need to import export code
...
Otherwise I can't save playlists, since the functions won't be
available.
2011-05-29 18:23:26 -04:00
Bryan Schumaker
071257d77d
libsaria: Fix saving playlists
...
I was still using old functions, rather than my new ones.
2011-05-29 18:22:29 -04:00
Bryan Schumaker
1f84f2755b
libsaria: Fix playlist num_visible()
...
When the playlist is changed, I need to test song ids against the
visible set to get the correct number
2011-05-29 14:59:29 -04:00
Bryan Schumaker
884c55cdd5
libsaria: Fix queue num_visible()
...
When songs are removed from the queue, they should also be removed from
the visible set, otherwise num_visible() will never change.
2011-05-29 14:59:15 -04:00
Bryan Schumaker
c9dee00727
libsaria: Actually add libsaria.sources.attrs
...
I forgot to add this file a few commits ago... oops...
2011-05-28 16:15:07 -04:00
Bryan Schumaker
0a644752a4
libsaria: Add in play count dattr
...
I want to track how often songs are played. This patch gives me the
ability to do that.
2011-05-28 16:13:02 -04:00
Bryan Schumaker
49f7829706
libsaria: Add dynamic attributes
...
Dynamic attributes are attributes of a track that can change during run
time (like status, playcount, etc). I only initialize these when they
are first set, and I save after each change.
This patch adds in the dattr framework and the "like" dattr.
2011-05-28 16:04:42 -04:00
Bryan Schumaker
466b0a2c5b
ocarina: Better way to scroll to current song
...
I should use get_attrs() and then use the first result in the list,
rather than using the cur_id variable. cur_id is not set in the case of
loading a file.
2011-05-28 15:50:57 -04:00
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