Commit Graph

3385 Commits

Author SHA1 Message Date
Bryan Schumaker
eec2404b8a Added page footer
This is the second half of my old ocarina.info file.  So far it is just
the toolbar.
2010-11-25 14:18:45 -05:00
Bryan Schumaker
27a964c58a Formatting fixes
I remove the old filter bar from ocarina.info, and fix some spacing
issues in ocarina.header
2010-11-25 13:35:07 -05:00
Bryan Schumaker
5cb70a8b4d Added header
The header is shown at the top of each notebook page.
2010-11-25 13:29:45 -05:00
Bryan Schumaker
dc43c27ead ocarina.body improvements
The current tab is saved between sessions, and the visible / invisible
functions are called for each page.
2010-11-25 11:24:53 -05:00
Bryan Schumaker
ea4b4cad37 Began new tab interface
Right now, I am calling it body.py.  When I am done, I won't have to go
through ocarina/__init__.py to access the tabs.  Instead, I will just
have to import ocarina.body.
2010-11-24 18:35:23 -05:00
Bryan Schumaker
933e961d34 Move set_volume() and toggle_rand() 2010-11-23 21:10:22 -05:00
Bryan Schumaker
604d602448 Move stop features to libsaria.controls.py 2010-11-23 20:50:57 -05:00
Bryan Schumaker
c8c79272b6 Moved play and pause to libsaria/controls.py
They have been moved from libsaria/audio/__init__.py.
2010-11-23 20:44:37 -05:00
Bryan Schumaker
f8e4999ad3 pre-lookup libsaria.event.invite for buttons 2010-11-23 20:40:36 -05:00
Bryan Schumaker
1d609c5606 Add libsaria/controls.py
I will eventually be moving things over to here.  The general rule: if
it has to do with buttons on the gui, then it should probably be
considered a control.
2010-11-23 20:37:24 -05:00
Bryan Schumaker
c97aa9f921 Move more things to components 2010-11-23 20:21:07 -05:00
Bryan Schumaker
f3542717e9 Move entry and pbar to ocarina.components 2010-11-23 20:17:47 -05:00
Bryan Schumaker
44ff0d2fce Move buttons and image
They now live in ocarina.components, since they are used to build higher
level objects
2010-11-23 20:16:03 -05:00
Bryan Schumaker
f4488dc909 Move ocarina.box
This has been moved to ocarina.components.box.  I don't think it has
been used recently, though.  Maybe it is safe to delete.
2010-11-23 20:12:49 -05:00
Bryan Schumaker
231d7f23fc Optimize a little bit 2010-11-23 20:12:33 -05:00
Bryan Schumaker
ea7e869dde Window standalone module
The window is now a standalone module, and no longer accessed through
ocarina.__init__.py
2010-11-23 20:05:37 -05:00
Bryan Schumaker
717c36b78e init_pref returns value
When I initialize a preference, the actual value of the preference
should be returned to the caller.
2010-11-23 19:48:17 -05:00
Bryan Schumaker
844106a306 OpenButton() needed the new location of universal_open() 2010-11-20 10:21:02 -05:00
Bryan Schumaker
a84ddabf31 Move lastfm to path/ 2010-11-20 10:05:12 -05:00
Bryan Schumaker
42948165a3 Move generic saving / loading functions
These belong under path/
2010-11-20 10:01:25 -05:00
Bryan Schumaker
751af55575 Move cache into path/
The cache modifies files, so it can be part of path/
2010-11-20 09:54:14 -05:00
Bryan Schumaker
c6f48165f3 Moved backup.py to path/
This moves the backup functions to a more reasonable place.
2010-11-20 09:51:11 -05:00
Bryan Schumaker
49d7326816 Adjust ocarina bug version 2010-11-19 23:11:24 -05:00
Bryan Schumaker
1703fff378 Modified backup code
The backup code needed to be modified so that it works with Ocarina 4.1.
This involved writing a function to walk library ids, and using the
lib_get_attr function from the collection.
2010-11-19 23:05:57 -05:00
Bryan Schumaker
e0cfc08ba3 Export button
Clicking this button will convert the library from the in-memory Tree
based form to xml.
2010-11-19 22:52:05 -05:00
Bryan Schumaker
65ccdb1780 Library backup
I can now backup the library to an xml file.  This will be useful for
library updates in the future.  The plan is to eventually backport this
feature to Ocarina 4.1 (To make the 4.1 -> 4.2 transition easier)
2010-11-19 22:51:56 -05:00
Bryan Schumaker
8b2a0b9433 Added xml creation functions
These functions are designed to help create an xml document.
2010-11-19 22:51:42 -05:00
Bryan Schumaker
a88f8225a7 Web remote controls
I can play, pause, stop, and advance to the next song through the web
interface.
2010-11-19 22:47:41 -05:00
Bryan Schumaker
acecb18120 Album page improvements
I have improved the album art page.  It shows the songs in a given
album, and clicking the song will cause it to play.
2010-11-17 23:34:18 -05:00
Bryan Schumaker
63ec0030e7 Web server improvements
The web server can now handle album art, ogg and mp3 files, and do it
all from functions within the class instead of external functions.
2010-11-17 23:33:37 -05:00
Bryan Schumaker
9f20a17228 url formatting: don't escape the quote
We don't need to do this.  It causes problems with last.fm
2010-11-17 23:32:23 -05:00
Bryan Schumaker
2ab7ace608 library tag accessor functions
I have created functions to make it easy to get at titles and song ids
from known tags.
2010-11-17 23:31:02 -05:00
Bryan Schumaker
3eff3c6aee lastfm return None on error
lastfm album art fetching should return None if there is a problem
opening the image url.
2010-11-17 23:29:51 -05:00
Bryan Schumaker
41a73bdda0 Web album display beginnings
I have begun working on a way to display information about albums.
2010-11-17 19:21:51 -05:00
Bryan Schumaker
f01fbecee3 Break get request handling into parts
This makes it easier to format the requested path before replying to the
requester.
2010-11-17 19:21:05 -05:00
Bryan Schumaker
ce68907b9a Added slogan
"Your music everywhere" reflects my goal of making my music available to
me everywhere I go.
2010-11-16 23:21:12 -05:00
Bryan Schumaker
64e3534820 Link to the library page. 2010-11-16 23:06:25 -05:00
Bryan Schumaker
f0f6573d09 Library viewer
This gives the web interface a list of artists and albums currently in
the library.
2010-11-16 23:05:10 -05:00
Bryan Schumaker
ac8c4abd9e Web server album art
The web server can now serve up album art from the artwork cache.
2010-11-16 23:04:09 -05:00
Bryan Schumaker
849f071d58 Get artist and album lists from the library
This patch makes it easy to get an artist or album list out of the
library.
2010-11-16 23:03:01 -05:00
Bryan Schumaker
629f940796 Import trees from libsaria.trees 2010-11-16 23:02:35 -05:00
Bryan Schumaker
f8e8837d3c Get artwork by (artist, album)
This makes it easier to find artwork using (artist, album) as a key.
This will probably be the best way to use artwork in the web interface.
2010-11-16 23:01:19 -05:00
Bryan Schumaker
86715614c9 Renamed web_remote.py
web_server is a better name than web_remote, since I will be doing more
than just remote functions.
2010-11-16 21:20:10 -05:00
Bryan Schumaker
25aae84f0b Managed to get index.html working on android 2010-11-16 21:19:47 -05:00
Bryan Schumaker
49b459f4d3 Added test.py
Right now, this file will make a table with all my music.
2010-11-16 21:19:11 -05:00
Bryan Schumaker
f8e32ed9c9 Added favicon to html/ 2010-11-16 21:18:51 -05:00
Bryan Schumaker
d9f9c73903 Added python support to web remote
Now I can write web pages in python!  Whoo!!
2010-11-16 21:16:36 -05:00
Bryan Schumaker
778945fea5 Added basename() to path
This will be useful for finding the file referred to by a path.
2010-11-16 21:14:45 -05:00
Bryan Schumaker
4f1b1d0162 Moved libsaria.path to a package
This is the beginning of moving file related code into a single package
and out of the main libsaria directory.
2010-11-16 08:19:23 -05:00
Bryan Schumaker
f13e10e862 Make sure playlist is initialized properly
This stops an error when ocarina is run with an empty library.  Because
the library is empty, the playlist was never being initialized.
2010-11-15 21:30:58 -05:00