<?xml version="1.0" ?>
<?xml-stylesheet type='text/xsl' href='interface.xsl'?>
<interface uri="http://gfxmonk.net/dist/0install/irank.xml" xmlns="http://zero-install.sourceforge.net/2004/injector/interface">
	<name>irank</name>
	<summary>music rating tools</summary>
	<publish mode="featured" xmlns="http://gfxmonk.net/dist/0install"/>
	<homepage>http://github.com/gfxmonk/python-irank</homepage>
	<description><![CDATA[
A collection of tools for managing music ratings.

Here's a brief description of the most common commands:
(assuming you have run `0alias irank http://gfxmonk.net/dist/0install/irank.xml`)
-----
irank edit <filename>:   Edit the ratings assigned to a file.

irank rhythmbox:         Monitor rhytmbox for changes, and allow editing of
                         the current track.

irank playlists:         Generate playlist folders in the configured "irank" directory,
                         where each playlist is a folder of that name containing symlinks
                         to the real location of all matched tracks (these are all the
                         files within the configured "music" directory).

irank rating-sync:       Used with the android app, to apply modified ratings
                         to the original files.



Various configuration files are used to tell irank what
music to index and where to put its results, here's an
example of mine:


~/.config/irank/paths: (where to find things, in yaml key/value format)
-----
music: ~/Music/Library
irank: ~/Music/irank
android: /media/DESIRE/MP3


~/.config/irank/ratings: (a list of the crieria you want to use to rate songs)
-----
rating
Mood
Pop
Softness
Hardcore
Nostalgia


~/.config/irank/playlists (yaml file, where the values are in the form of sqlite conditions)
-----
angry: rating>2 and Mood<3 and Hardcore>0 and Pop<3
car: rating>2 and Pop>2 and Hardcore<2 and Mood>3
fun: rating>2 and Mood>3 and Hardcore<3 and Softness<4
soft: rating>1 and Softness>2 and Mood>2 and Pop<5
new: datetime(updated_at, 'unixepoch') > datetime('NOW', 'localtime', '-4 months') and rating > 0
new_good: datetime(updated_at, 'unixepoch') > datetime('NOW', 'localtime', '-4 months') and rating > 3



Metadata is stored inside the comment field of the file, in the form "[key=value]". I
have changed operating systems and music players a handful of times since origininally
writing irank, and this is the best way to keep them portable that I know of.
]]></description>
	<group main="_irank">
		<environment insert="" mode="prepend" name="PYTHONPATH"/>
		<environment insert="" mode="prepend" name="PATH"/>
		<requires interface="http://gfxmonk.net/dist/0install/tagpy.xml"/>
		<requires interface="http://gfxmonk.net/dist/0install/pyyaml-python2.xml"/>
		<requires interface="http://sweets.sugarlabs.org/base/dbus-python"/>
		<command name="test">
			<runner interface="http://gfxmonk.net/dist/0install/nosetests-plugin-resolver.xml"/>
			<requires interface="http://gfxmonk.net/dist/0install/mocktest.xml"/>
		</command>
		<!-- -->
		<implementation id="sha1new=f55a320eba10594dce9f509abbd01faa80324be8" released="2010-10-16" version="0.1.2">
			<manifest-digest sha256="79528b57a07257ca837a82ef4bfdb9e93bae34accec6f24b190eec5f71f6aa13"/>
			<archive href="http://gfxmonk.net/dist/0install/irank/irank-0.1.2.tgz" size="27100"/>
		</implementation>
		<implementation id="sha1new=fe684bd724702fed8ab9e2e7edf7aa0bf47bc50e" released="2010-10-16" version="0.1.3">
			<manifest-digest sha256="2da4a73b6fdfeccb1323a85211d5108c2fc754e7841d8fe67664fb26d12b07cb"/>
			<archive href="http://gfxmonk.net/dist/0install/irank/irank-0.1.3.tgz" size="27101"/>
		</implementation>
		<implementation id="sha1new=b1917e69225b76ce6046508e08423c3ec0d57679" released="2010-11-07" version="0.1.4">
			<manifest-digest sha256="29d0b86eb2c33867b43e76314a6a333a2ef0830e350eb71b51307b55ee9e78a1"/>
			<archive href="http://gfxmonk.net/dist/0install/irank/irank-0.1.4.tgz" size="31099"/>
		</implementation>
		<implementation id="sha1new=a639c8680922c4c0c1db87cd2a7053b42e69dd96" released="2010-12-07" version="0.1.5">
			<manifest-digest sha256="bf505a81d46599e63a8a109b8d66bdc027b2be975546467b8a93dfa59cd21317"/>
			<archive href="http://gfxmonk.net/dist/0install/irank/irank-0.1.5.tgz" size="31108"/>
		</implementation>
		<implementation id="sha1new=b976961e192967334e332a2f9a4e1a6e6f9bfea9" released="2010-12-23" version="0.1.6">
			<manifest-digest sha256="e7b25079c536ca5da2228937bc3cc485697e27bf8d6873ad6654591e483596b4"/>
			<archive href="http://gfxmonk.net/dist/0install/irank/irank-0.1.6.tgz" size="31126"/>
		</implementation>
		<implementation id="sha1new=e0a08361947c1e6dc0568f2931a4525226f966a5" released="2011-05-22" version="0.1.7">
			<manifest-digest sha256="f57ea8baa2ca78ebc702dfca512e6d8704b43abc126409c4d7ec90180e7dcd32"/>
			<archive href="http://gfxmonk.net/dist/0install/irank/irank-0.1.7.tgz" size="18576"/>
		</implementation>
	</group>
	<group main="irank_bin">
		<environment insert="" mode="prepend" name="PYTHONPATH"/>
		<environment insert="" mode="prepend" name="PATH"/>
		<requires interface="http://gfxmonk.net/dist/0install/mutagen.xml"/>
		<requires interface="http://gfxmonk.net/dist/0install/pyyaml-python2.xml"/>
		<requires interface="http://sweets.sugarlabs.org/base/dbus-python"/>
		<command name="test">
			<runner interface="http://gfxmonk.net/dist/0install/nosetests-plugin-resolver.xml"/>
			<requires interface="http://gfxmonk.net/dist/0install/mocktest.xml"/>
		</command>
		<!-- -->
		<implementation id="sha1new=722b8d15f8064e46ba4d5d4e8962c1c0db854964" released="2011-05-29" version="0.2">
			<manifest-digest sha256="2bf814dbd5284951c03eda3ea70ab76874c520ae9569c4ad67ade41cd7921ace"/>
			<archive href="http://gfxmonk.net/dist/0install/irank/irank-0.2.tgz" size="20563"/>
		</implementation>
		<implementation id="sha1new=905b3e72b0d01a5e7904a9f764d1d0fd100aa8f1" released="2011-08-04" version="0.3.1">
			<manifest-digest sha256="91dc7ddb14b726486b69f589e28c85431410c0352a05a65dc7e8d05bf81a52d0"/>
			<archive href="http://gfxmonk.net/dist/0install/irank/irank-0.3.1.tgz" size="23191"/>
		</implementation>
		<implementation id="sha1new=95c15cc8bb73db314ae9172a48ae86c121fead61" released="2012-04-28" version="0.3.2">
    <manifest-digest sha256="21d5d4c17083ad52161def68ef8344b2a9ecdb9536e7e8789ba6abb721383f3c"/>
    <archive href="http://gfxmonk.net/dist/0install/irank/irank-0.3.2.tgz" size="24345"/>
  </implementation>
	</group>
</interface>
<!-- Base64 Signature
iEYEABECAAYFAk+bwREACgkQ/lhgK1iJTtItfgCfcDJAGOgRU5wfbwgaTdIJVTDgrlMAn06S/rU+
apfUy7UlxCBu4mcmJgI4

-->

