diff options
author | Jesse Luehrs <doy@tozt.net> | 2012-03-19 01:47:53 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2012-03-19 01:48:58 -0500 |
commit | 68da163417e499a935ca52387662fa88fead9e5e (patch) | |
tree | ce0cfc1d6ed367fe43f9e93f201f9752c81dd65c | |
parent | 2afd1033f5193102a2480f8ec88dcf46ccb795af (diff) | |
download | conf-68da163417e499a935ca52387662fa88fead9e5e.tar.gz conf-68da163417e499a935ca52387662fa88fead9e5e.zip |
function to list artists that i like but haven't listened to recently
uses LastFM::Export
-rw-r--r-- | aliases | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -127,6 +127,10 @@ function svdn { function svst { svstat "$HOME/.services/$1" } +function pick_music { + lastfm_export --user doyster --dsn dbi:SQLite:${HOME}/.tracks.sqlite + sqlite3 ${HOME}/.tracks.sqlite "SELECT artist FROM tracks GROUP BY artist HAVING strftime('%s') - max(timestamp) < 60*60*24*365 ORDER BY count(artist) * (strftime('%s') - max(timestamp)) DESC LIMIT $([ -z "$1" ] && echo 20 || echo $1)" +} # }}} # vim:ft=sh: |