Commit Graph

31 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
654cd9c418 pause_after.py undefined do_pause error 2010-11-14 19:32:05 -05:00
Bryan Schumaker
edd5d2b39b Pause after in local variable
The pause after current track plugin should store its variables in
something local to the plugin and not in the libsaria.vars map.
2010-11-14 17:24:54 -05:00
Bryan Schumaker
6124296f70 libsaria sources change
Change files to reflect the rename of libsaria.collection to
libsaria.sources
2010-11-14 13:50:35 -05:00
Bryan Schumaker
ee8106e373 Bind remote server by ip address
This should worke better than binding by hostname or 'localhost'
2010-11-13 22:12:37 -05:00
Bryan Schumaker
d6d1c5f56c Make remote visible to outside world
I have to use socket.gethostname() to make the remote server available
to the outside world.
2010-11-13 21:57:20 -05:00
Bryan Schumaker
77e9cf13ee Added remote plugin
This plugin will allow me to control Ocarina using an app on another
computer.
2010-11-13 21:40:55 -05:00
Bryan Schumaker
dcdbab8e55 Began working on a web remote plugin
This plugin will eventually allow me to control ocarina through a web
interface.  So far, it can serve up web pages located in
current_working_directory/HTML.
2010-11-13 21:39:27 -05:00
Bryan Schumaker
c5dccdfcdf Use get_attrs
This changes various parts of ocarina / libsaria to use get_attrs()
instead of get_attr().
2010-11-08 22:18:12 -05:00
Bryan Schumaker
a9b5324889 Rename libsaria.music
I decided that libsaria.music should be known as libsaria.audio.  It
makes more sense to me.
2010-11-08 20:58:33 -05:00
Bryan Schumaker
58ad3c7a9d Library class -> library module
I think that the library will be cleaner if I turn it into a module
instead of keeping it a class.
2010-11-05 21:52:10 -04:00
Bryan Schumaker
f1292471f0 fix check_version() in some plugins
The conditions for returning True and returning False were off
2010-11-05 19:18:21 -04:00
Bryan Schumaker
08ce4b6af4 Plugins bump version
Plugins should now allow Ocarina 4.2
2010-11-05 19:14:43 -04:00
Bryan Schumaker
bf014d92c6 pause_after.py use common menu
The plugin for pausing playback after the current song should use the
new common menu, instead of individual menus.
2010-11-05 19:07:24 -04:00
Bryan Schumaker
f93b8178d5 Plugins check_version()
Plugins need a check_version() to return True if we are using a
compatible version and False if we aren't.
2010-11-05 08:14:31 -04:00
Bryan Schumaker
aa098080ff wm_tweaks icon changing
Grab the gdk lock before changing the icon.  For some reason changing
the title already gets the lock, but changing the icon doesn't.
2010-11-03 22:30:40 -04:00
Bryan Schumaker
101e833690 wm_tweaks.py set title less often
Only set the title once when a song is loaded, using a default argument
if no title is provided.
2010-11-02 17:03:57 -04:00
Bryan Schumaker
81277d83b8 PLUGIN: Pause after current song
This plugin will wait for the NEXT event, and then check if playback
should be paused.
2010-10-30 13:53:18 -04:00
Bryan Schumaker
b2c5ad96cb PLUGIN: wm_tweaks.py
This plugin will change the window title and icon whenever a song
changes.
2010-10-30 13:42:45 -04:00
Bryan Schumaker
d56f3b2d0a Multiple changes
- Remove google from the web radio plugin
- Change ocarina.py to use python2
- Seek in song using slider
2010-10-18 21:04:39 -04:00
Bryan Schumaker
1139ba09c3 Declassify Tabs()
We only have one instance of the main tabs, so there is no reason for it
to be a class.  I have changed this into a set of functions that do
everything the old class did.
2010-08-22 09:07:09 -04:00
Bryan Schumaker
3a764343d0 Generic TabPage for the main tabs
The main tabs now have a generic TabPage class that contains the content
added to the tab.  This TabPage will control visibility of the content
and make it easier to find a page with specific content (no looping
through gtk boxes!)
2010-08-20 22:00:15 -04:00
Bryan Schumaker
15cc5d22f0 Backend and frontend changes
Libsaria events now support starting specific callback functions in a
background thread.  This replaces starting a specific event in the
background.

I have a library tab that is added to the main window through use of the
ocarina.add_tab function.

I have new tests for walking the tree and running multiple threads with
locks.
2010-08-19 23:02:30 -04:00
Bryan Schumaker
66a8c5169e Web Radio Plugin
The web radio plugin can load pandora and grooveshark.  This happens
when a web radio tab is selected.  After the web document is loaded,
playing music will be paused.
2010-08-15 13:39:31 -04:00
Bryan Schumaker
853dde3ea7 Plugins Install
I can now install plugins through drag and drop / universal open.  For
now, installing plugins involves copying the file to ~/.saria/plugins/.
2010-08-15 01:05:37 -04:00