lastbash-cvs Mailing List for Last.fm console player (Page 8)
Status: Beta
Brought to you by:
cstroie
You can subscribe to this list here.
| 2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(27) |
Dec
(77) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2007 |
Jan
(14) |
Feb
(8) |
Mar
(41) |
Apr
(5) |
May
(2) |
Jun
|
Jul
|
Aug
(3) |
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2008 |
Jan
(1) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(2) |
|
From: Costin S. <cs...@us...> - 2006-11-29 12:32:45
|
Update of /cvsroot/lastbash/lastbash In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv3108 Modified Files: lastbash Log Message: Make cursor invisible and back visible. Index: lastbash =================================================================== RCS file: /cvsroot/lastbash/lastbash/lastbash,v retrieving revision 1.53 retrieving revision 1.54 diff -u -d -r1.53 -r1.54 --- lastbash 28 Nov 2006 18:21:58 -0000 1.53 +++ lastbash 29 Nov 2006 12:32:41 -0000 1.54 @@ -405,6 +405,8 @@ set_xterm "Welcome to ${PROG_TITLE}!" # Set the initial terminal size related settings term_resize + # Make cursor invisible + echo -en '\e[?25l' # tput civis } # Function: Exit the terminal {{{1 @@ -417,6 +419,8 @@ echo -ne "\e[0;${T_LINES}r" # Move the cursor on upper-left corner and clear the entire screen echo -ne "\e[H\e[2J" + # Make cursor visible + echo -en '\e[?12;25h' # tput cvvis } # Function: Compute some lengths when the terminal has been resized {{{1 |
|
From: Costin S. <cs...@us...> - 2006-11-28 18:22:04
|
Update of /cvsroot/lastbash/lastbash In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv16600 Modified Files: INSTALL VERSION lastbash Log Message: Version up: 0.2.4 Index: lastbash =================================================================== RCS file: /cvsroot/lastbash/lastbash/lastbash,v retrieving revision 1.52 retrieving revision 1.53 diff -u -d -r1.52 -r1.53 --- lastbash 23 Nov 2006 17:25:56 -0000 1.52 +++ lastbash 28 Nov 2006 18:21:58 -0000 1.53 @@ -35,7 +35,7 @@ PROG_NAME="lastbash" PROG_TITLE="LastBASH" PROG_DESC="Console player for Last.fm" -PROG_VER="0.2.3" +PROG_VER="0.2.4" AUTHOR="Costin Stroie" AUTHOR_EMAIL="cs...@us..." Index: VERSION =================================================================== RCS file: /cvsroot/lastbash/lastbash/VERSION,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- VERSION 22 Nov 2006 16:35:55 -0000 1.5 +++ VERSION 28 Nov 2006 18:21:58 -0000 1.6 @@ -1 +1 @@ -0.2.3 +0.2.4 Index: INSTALL =================================================================== RCS file: /cvsroot/lastbash/lastbash/INSTALL,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- INSTALL 28 Nov 2006 17:29:24 -0000 1.3 +++ INSTALL 28 Nov 2006 18:21:58 -0000 1.4 @@ -8,8 +8,8 @@ First, unpack the archive (replace the version number with the correct one) and enter the directory -$ tar xzf lastbash-0.2.3.tar.gz -$ cd lastbash-0.2.3 +$ tar xzf lastbash-0.2.4.tar.gz +$ cd lastbash-0.2.4 Then run the program (assuming bash is your shell) |
|
From: Costin S. <cs...@us...> - 2006-11-28 17:33:24
|
Update of /cvsroot/lastbash/lastbash In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv29942 Modified Files: TODO Log Message: Some more done. Index: TODO =================================================================== RCS file: /cvsroot/lastbash/lastbash/TODO,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- TODO 22 Nov 2006 12:52:21 -0000 1.8 +++ TODO 28 Nov 2006 17:33:16 -0000 1.9 @@ -2,21 +2,21 @@ # $Id$ TODO -- discovery on/off - save a html file with album cover, links, etc. -- implement the trim() function to trim the too long strings - maybe save a csv history file - maybe mark the loved/banned/skipped tracks - implement the leds - add support for changing stations in interface - add support for lastfm errors -- add support for interface refresh and resize +- improve support for interface refresh (keep history) - add support for color and bw interface - use 'tput' instead of plain ansi escape codes -- when not streaming, clear the current data - more commands per remote call DONE +- when not streaming, clear the current data +- add support for interface refresh and resize +- discovery on/off - add support for changing stations - add support for re-entering the login data - add remote control (check PID and write a command file) |
|
From: Costin S. <cs...@us...> - 2006-11-28 17:31:38
|
Update of /cvsroot/lastbash/lastbash In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv29195 Modified Files: README Log Message: Updated for 0.2.3 release. Index: README =================================================================== RCS file: /cvsroot/lastbash/lastbash/README,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- README 22 Nov 2006 16:09:22 -0000 1.2 +++ README 28 Nov 2006 17:31:35 -0000 1.3 @@ -68,10 +68,12 @@ -A Do not start playing automatically. -command, +-c command + Send the command to the running instance. + + last.fm station - You can specify some command to pass to the running instance or - a new Last.fm station to connect to. + You can specify a new Last.fm station to connect to. Then, the program will try to connect. If it succeeds, it will save @@ -101,7 +103,8 @@ b Ban track r - Refresh track metadata (refresh is automatic, but if you need to, you can use this key to force a refresh) + Refresh track metadata (refresh is automatic, but if you need to, + you can use this key to force a refresh) p Toggle "Record to Profile" (the P led will change status) q |
|
From: Costin S. <cs...@us...> - 2006-11-28 17:29:27
|
Update of /cvsroot/lastbash/lastbash In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv28373 Modified Files: INSTALL Log Message: Updated for 0.2.3 release. Index: INSTALL =================================================================== RCS file: /cvsroot/lastbash/lastbash/INSTALL,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- INSTALL 22 Nov 2006 16:09:22 -0000 1.2 +++ INSTALL 28 Nov 2006 17:29:24 -0000 1.3 @@ -8,8 +8,8 @@ First, unpack the archive (replace the version number with the correct one) and enter the directory -$ tar xzf lastbash-0.2.2.tar.gz -$ cd lastbash-0.2.2 +$ tar xzf lastbash-0.2.3.tar.gz +$ cd lastbash-0.2.3 Then run the program (assuming bash is your shell) |
|
From: Costin S. <cs...@us...> - 2006-11-28 17:28:52
|
Update of /cvsroot/lastbash/lastbash In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv27972 Modified Files: ChangeLog Log Message: Updated the ChangeLog. Index: ChangeLog =================================================================== RCS file: /cvsroot/lastbash/lastbash/ChangeLog,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- ChangeLog 22 Nov 2006 16:08:52 -0000 1.2 +++ ChangeLog 28 Nov 2006 17:28:45 -0000 1.3 @@ -1,4 +1,12 @@ -v0.22 +v0.2.3 +* Display the action (Love, Skip, Ban) in current track area and history. +* Limit the line length in current track area. +* New headers for history. +* Added support for Discovery mode. +* Display the keys when the pressed key is not understood. +* Basic URL encoding. + +v0.2.2 * Search for available players. * Check for missing programs. * Support for remote commands and signalling. |
|
From: Costin S. <cs...@us...> - 2006-11-27 12:50:05
|
Update of /cvsroot/lastbash/lastawk In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv7134 Added Files: lastawk Log Message: Added the awk version of the program. --- NEW FILE: lastawk --- #!/usr/bin/gawk -f BEGIN { # Enable or disable debugging debug = 0 # Server details lastfm["host"] = "ws.audioscrobbler.com" lastfm["port"] = "80" lastfm["version"] = "0.1" lastfm["platform"] = "linux" # The playlist playlist="playlist.m3u" # Login first lastfm_connect("cstroie", "00000000000000000000000000000000") # Parse the command line commandline() } function commandline() { if (ARGV[1] == "connect") { print "Connected to server..." print " session: " lastfm["session"] print " stream : " lastfm["stream_url"] # Create the playlist printf("#EXTM3U\r\n") > playlist printf("#EXTINF:-1,%s\r\n", "Last.fm") > playlist printf("%s\r\n", lastfm["stream_url"]) > playlist close(playlist) } else if (ARGV[1] == "skip") { print "Next track..." lastfm_command("skip") show_metadata() } else if (ARGV[1] == "love") { print "Track love ;) ..." lastfm_command("love") show_metadata() } else if (ARGV[1] == "ban") { print "Track banned, next one please..." lastfm_command("ban") show_metadata() } else if (ARGV[1] == "artist") { if (ARGV[2] != "") { print "Similar artists to " ARGV[2] lastfm_station("lastfm://artist/" ARGV[2] "/similarartists") show_metadata() } else print "Specify the artist too." } else if (ARGV[1] == "tags") { if (ARGV[2] != "") { print "Tune to the next tags: " ARGV[2] lastfm_station("lastfm://globaltags/" ARGV[2]) show_metadata() } else print "Specify the tags too." } else if (ARGV[1] == "help") { print "Use the next commands:" print " connect" print " skip" print " love" print " ban" print " info" print " artist <artist>" print " tags <tags>" } else show_metadata() } function show_metadata() { delete metadata lastfm_metadata(metadata) if (metadata["streaming"] == "true") { print " Artist : " metadata["artist"] print " Title : " metadata["track"] print " Album : " metadata["album"] print " Cover : " metadata["albumcover_medium"] print " Length : " metadata["trackduration"] print " Station: " metadata["station"] } else print "Not streaming." } function lastfm_connect(username, password, url, headers, response) { url = "http://" lastfm["host"] ":" lastfm["port"] \ "/radio/handshake.php" \ "?version=" lastfm["version"] \ "&platform=" lastfm["platform"] \ "&username=" username \ "&passwordmd5=" password http_req(url, headers, response) if (debug) for(i in headers) print "H> " i ": " headers[i] for(i in response) { if (debug) print "R> " i ": " response[i] lastfm[i] = response[i] } } function lastfm_command(cmd, url, headers, response) { # Commands are: skip, love, ban, rtp, nortp url = "http://" lastfm["base_url"] ":" lastfm["port"] \ lastfm["base_path"] \ "/control.php" \ "?session=" lastfm["session"] \ "&command=" cmd http_req(url, headers, response) if (debug) print "R> response: " response["response"] } function lastfm_station(station, url, headers, response) { url = "http://" lastfm["base_url"] ":" lastfm["port"] \ lastfm["base_path"] \ "/adjust.php" \ "?session=" lastfm["session"] \ "&url=" station http_req(url, headers, response) if (debug) print "R> response: " response["response"] } function lastfm_metadata(metadata, url, headers, response) { url = "http://" lastfm["base_url"] ":" lastfm["port"] \ lastfm["base_path"] \ "/np.php" \ "?session=" lastfm["session"] http_req(url, headers, response) for(i in response) { if (debug) print "M> " i ": " response[i] metadata[i] = response[i] } } function http_req(url, headers, response, mch, service, rsp, rsp_mch) { delete headers delete response match(url, /http:\/\/([^:/]+)(:?([^/]+))(.*)/, mch) service = "/inet/tcp/0/" mch[1] "/" mch[3] RS = "\n" print "GET " mch[4] " HTTP/1.0\r\n" \ "Host: " mch[1] "\r\n" \ "\r\n" |& service while (service |& getline rsp) { sub(/\r/, "", rsp) if (rsp == "") break if (match(rsp, /^([^:]+): *(.+)/, rsp_mch)) headers[rsp_mch[1]] = rsp_mch[2] } while (service |& getline rsp) { sub(/\r/, "", rsp) if (rsp == "") break if (match(rsp, /^([^=]+)=(.+)/, rsp_mch)) response[rsp_mch[1]] = rsp_mch[2] } close(service) } # vim: set ft=awk nu nowrap: |