Bryan Schumaker
2e5a62cbb7
Only back up changed files
...
We only need to back up files with a score != 0 and count != 0
2010-12-01 22:06:00 -05:00
Bryan Schumaker
3c920c72be
Library importing
...
I can now import both v1.1 and v1.2 libraries. I split this into
appropriate functions for each version.
2010-12-01 22:02:16 -05:00
Bryan Schumaker
8a0baf6693
Check library sources before adding
...
New sources should:
1) Be a string
2) Not already be a tracked source
2010-12-01 22:00:58 -05:00
Bryan Schumaker
86494f7f7f
Print library scanning errors
...
If there is an error scanning a file, we should print what the error is
to ease debugging.
2010-12-01 21:59:57 -05:00
Bryan Schumaker
b9117993e1
Backup sources and improvements
...
I already have a "dumb import" (retag all files based on the filepath)
so there is no point in storing extra attributes when I am only going to
find them again during importing. Instead, we should only store the
information we need: filepath, score, and playcount.
Additionally, I now store the list of sources in the library backup.
2010-11-30 23:08:30 -05:00
Bryan Schumaker
a99ae4dfb4
xml write node with attributes
...
The xml functions can now create a node with attributes ( <node
attr="something"/> )
2010-11-30 23:07:46 -05:00
Bryan Schumaker
e279dfc170
Library list sources
...
calling library.get_sources() will iterate over the list of sources
contained in the library. This is mostly used for storing in the backup
xml.
2010-11-30 23:06:33 -05:00
Bryan Schumaker
c5a38e0b7f
Clean up web radio
...
I removed most of the comments from the web radio plugin.
2010-11-30 22:33:47 -05:00
Bryan Schumaker
675e4c62e8
Reorder header
...
Elements in the header have been reordered so they make more sense
2010-11-30 22:33:31 -05:00
Bryan Schumaker
6a4b9f3fd9
Web radio improvements
...
The web radio now exists as a single tab. I eventually need some way of
moving to and from radio stations.
2010-11-30 21:23:50 -05:00
Bryan Schumaker
f1f2b49966
Switch pages before removing current page
...
If we are asked to remove the current page, we should first switch to a
different page.
2010-11-30 21:21:54 -05:00
Bryan Schumaker
537e258ffe
Set default page
...
During startup, we should check if the initial page exists. If it
doesn't we will switch to the default page instead.
2010-11-30 21:19:29 -05:00
Bryan Schumaker
06ec285734
Create a set locked function for album art
...
We appear to already be locked when we get to the setter function. I
was getting deadlocked when trying to do anything. To fix this, I
made it so I can set images without needing the lock.
2010-11-30 08:18:35 -05:00
Bryan Schumaker
614e009c4e
Rename screenshots/ to screens/
2010-11-28 14:55:42 -05:00
Bryan Schumaker
11b5b14afe
Added screenshots
...
I added new screenshots showing the current state of Ocarina
2010-11-28 14:51:57 -05:00
Bryan Schumaker
3c9df13b65
Change goto icon
...
I am now using the stock "jump to" icon, rather than "index"
2010-11-28 14:38:59 -05:00
Bryan Schumaker
10097aa408
Changed random icon
...
I found a good 6 sided die at:
http://dylantaylor.files.wordpress.com/2010/11/dice2.png
Now it is easier to tell what the random button does.
2010-11-28 14:38:10 -05:00
Bryan Schumaker
8a4d060b4d
Remove slogan
...
I think it was just getting in the way.
2010-11-28 14:12:29 -05:00
Bryan Schumaker
c0423f46c6
Lock image
...
This was uncommented, and led to problems.
2010-11-28 14:09:14 -05:00
Bryan Schumaker
7ca735996e
Goto current song on load
...
When a song has been loaded, we should scroll to it.
2010-11-28 14:05:45 -05:00
Bryan Schumaker
b4f59b0547
Goto song when filtering
...
When filtering, we should select the currently playing song if it is
visible.
2010-11-28 14:05:12 -05:00
Bryan Schumaker
5e7dc986f9
Goto current song return early
...
We should return early if there is no currently playing song in the
list.
2010-11-28 13:54:14 -05:00
Bryan Schumaker
f8ad68abe5
Goto current song
...
There is no a button to scroll to the currently playing song.
2010-11-28 13:53:38 -05:00
Bryan Schumaker
3ce9240655
AlbumArt widget is now an event box
...
This allows me to catch a button-press-event and show a file chooser to
select an image as the new album art for the currently playing song.
2010-11-28 00:37:45 -05:00
Bryan Schumaker
6e429d1fd2
Fix fsselect
...
Selecting files through fsselect was broken at some point. This commit
fixes it.
2010-11-28 00:37:02 -05:00
Bryan Schumaker
1c58e948b8
Library set_attr art
...
I can use the library's set_attr() function to manually set album art
from a local file.
2010-11-28 00:34:35 -05:00
Bryan Schumaker
3a19f6fb07
Albumart set from local file
...
I can pass the file location to the lastfm module to set the artwork
from a local file rather than from a web location.
2010-11-28 00:31:23 -05:00
Bryan Schumaker
70a2759192
Cache delete items
...
I can now delete things from the cache in addition to adding things.
2010-11-28 00:29:36 -05:00
Bryan Schumaker
fed3c7f356
Import old library
...
I can now import files from an Ocarina 4.1 library exported as xml.
Ocarina 4.2 keeps track of a list of sources, but 4.1 does not. For
importing to work properly, the library needs to be rescanned before
running the import. The import will set the playcount and score
attributes for each file.
2010-11-27 23:11:16 -05:00
Bryan Schumaker
13edf01abe
Library set_attr
...
The library now has a way to set attributes in each track record.
Note: There is currently no way to change artist, album, title or
filepath.
2010-11-27 23:10:27 -05:00
Bryan Schumaker
3831eb6e2a
User can pass files to open
...
If the user passes text as argv to the program, we will call
universal_open with each string in argv.
2010-11-27 22:22:44 -05:00
Bryan Schumaker
dc776ac267
wm_tweaks fixes
...
I need to update wm_tweaks to make use of the new ocarina.window
functions.
2010-11-27 20:07:17 -05:00
Bryan Schumaker
cacf9a4b89
Remove tag labels
...
I was having trouble with the artist / album / title labels, so they
have been removed to give more room for lyrics.
2010-11-27 20:06:48 -05:00
Bryan Schumaker
594f2dd054
URL character escaping
...
Only escape a subset of the characters when placing a url request.
2010-11-27 20:04:57 -05:00
Bryan Schumaker
76b9d428b7
Tooltip correct attributes
...
We should use the correct attributes for setting the list tooltip
2010-11-27 19:45:14 -05:00
Bryan Schumaker
b8c007d2ea
Pause after plugin fixes
...
The pause after current song plugin was using the old pause function,
and not the new one.
2010-11-27 15:56:47 -05:00
Bryan Schumaker
6d314254d8
Lyrics show tags
...
The lyrics page now shows artist / album / title tags and the album art
for the currently playing song
2010-11-27 15:56:08 -05:00
Bryan Schumaker
2728e343d3
Lyrics plugin
...
We can fetch and store lyrics for each song.
2010-11-27 15:39:55 -05:00
Bryan Schumaker
8af11586ac
Footer remove page
...
I added a remove page function to the footer for plugins that make use
of it.
2010-11-27 15:39:33 -05:00
Bryan Schumaker
6a5176d5d7
Initialize controls in two parts
...
This gives us a chance to initialize random early, and then grab the
audio functions later (when they exist)
2010-11-27 15:38:48 -05:00
Bryan Schumaker
d9a6c0987e
Progress bar seek to click
...
When the user clicks on the progess bar, we should seek to the location
of the click.
2010-11-27 12:57:06 -05:00
Bryan Schumaker
1e2d27377f
Progress bar tooltip
...
The tooltip shows the time corresponding to the mouse location on the
widget.
2010-11-27 12:48:09 -05:00
Bryan Schumaker
2685572e52
Unselect rows in list
...
Before exiting from for_each_selected, we should unselect all selected
rows in the list.
2010-11-27 10:55:09 -05:00
Bryan Schumaker
f23fc65cc5
Save recently played songs
...
In addition to the playlist, I am also saving the list of recently
played songs between sessions.
2010-11-27 10:47:31 -05:00
Bryan Schumaker
333cbaeb37
Remove from playlist
...
I can now remove songs from the playlist.
2010-11-27 10:38:42 -05:00
Bryan Schumaker
cd91638f9c
Playlist deduplication
...
We shouldn't add the same song to the playlist twice. The song id set
we are keeping helps with this.
2010-11-27 10:34:08 -05:00
Bryan Schumaker
e21bbdc834
Rename ocarina.collection
...
I have ocarina.collection to ocarina.source to reflect the naming change
in libsaria.
2010-11-26 23:34:58 -05:00
Bryan Schumaker
ba4488202a
Teased apart old ocarina.collection code
...
The new code is easier to read, and much less intimidating. I also
changed the Library() and Playlist() classes into python modules to make
them easier to read.
2010-11-26 23:31:12 -05:00
Bryan Schumaker
5c22f959c3
Delete tabs.py
...
This has been replaced with ocarina.body.
2010-11-26 16:47:00 -05:00
Bryan Schumaker
d690904b3b
Fix playlist saving
...
The playlist was trying to save itself using the old save functions
2010-11-26 16:46:26 -05:00