Thread: [lastbash-cvs] SF.net SVN: lastbash: [205] lastbash/lastbash
Status: Beta
Brought to you by:
cstroie
From: <cs...@us...> - 2007-03-13 16:44:43
|
Revision: 205 http://lastbash.svn.sourceforge.net/lastbash/?rev=205&view=rev Author: cstroie Date: 2007-03-13 09:44:39 -0700 (Tue, 13 Mar 2007) Log Message: ----------- SVN properties set. Property Changed: ---------------- lastbash/lastbash Property changes on: lastbash/lastbash ___________________________________________________________________ Name: license + This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Name: copyright + (C) 2006 Costin Stroie <cs...@us...> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <cs...@us...> - 2007-03-23 00:40:35
|
Revision: 206 http://lastbash.svn.sourceforge.net/lastbash/?rev=206&view=rev Author: cstroie Date: 2007-03-22 17:40:29 -0700 (Thu, 22 Mar 2007) Log Message: ----------- One fix from theli_ua. Thanks. Modified Paths: -------------- lastbash/lastbash Modified: lastbash/lastbash =================================================================== --- lastbash/lastbash 2007-03-13 16:44:39 UTC (rev 205) +++ lastbash/lastbash 2007-03-23 00:40:29 UTC (rev 206) @@ -528,7 +528,7 @@ done < "${TMP_FILE}" # Check the status - if [[ "${HTTP_HEADERS[0]}" =~ "200" ]] + if [[ -n `expr "${HTTP_HEADERS[0]}" : '.*\(200\)'` ]] then RET="0" else This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <cs...@us...> - 2007-03-26 15:41:03
|
Revision: 228 http://lastbash.svn.sourceforge.net/lastbash/?rev=228&view=rev Author: cstroie Date: 2007-03-26 08:41:01 -0700 (Mon, 26 Mar 2007) Log Message: ----------- Improved the sed stuff regarding html output. Modified Paths: -------------- lastbash/lastbash Modified: lastbash/lastbash =================================================================== --- lastbash/lastbash 2007-03-26 15:40:15 UTC (rev 227) +++ lastbash/lastbash 2007-03-26 15:41:01 UTC (rev 228) @@ -171,6 +171,8 @@ return fi + local RET + # Replace the placeholders in template # Placeholders: # @TITLE@ @COVER_URL@ @ARTIST_URL@ @ARTIST_NAME@ @TRACK_URL@ @LENGTH@ @@ -191,18 +193,21 @@ [ "${META_ALBUM_URL}" ] && ALBUM_URL="${META_ALBUM_URL}" || ARTIST_URL="#" [ "${META_STATION_URL}" ] && STATION_URL="${META_STATION_URL}" || ARTIST_URL="#" - cat "${HTML_TEMPLATE}" | \ - sed -e "/@TITLE@/s#@TITLE@#${ARTIST_NAME} - ${TRACK_NAME}#g" | \ - sed -e "/@COVER_URL@/s#@COVER_URL@#${COVER_URL}#g" | \ - sed -e "/@ARTIST_URL@/s#@ARTIST_URL@#${ARTIST_URL}#g" | \ - sed -e "/@ARTIST_NAME@/s#@ARTIST_NAME@#${ARTIST_NAME}#g" | \ - sed -e "/@TRACK_URL@/s#@TRACK_URL@#${TRACK_URL}#g" | \ - sed -e "/@TRACK_NAME@/s#@TRACK_NAME@#${TRACK_NAME}#g" | \ - sed -e "/@ALBUM_URL@/s#@ALBUM_URL@#${ALBUM_URL}#g" | \ - sed -e "/@ALBUM_NAME@/s#@ALBUM_NAME@#${ALBUM_NAME}#g" | \ - sed -e "/@STATION_URL@/s#@STATION_URL@#${STATION_URL}#g" | \ - sed -e "/@STATION_NAME@/s#@STATION_NAME@#${STATION_NAME}#g" | \ - sed -e "/@LENGTH@/s#@LENGTH@#${META_MIN_SEC}#g" > "${HTML_FILE}" + sed -e "/<?lastbash [^? \t]\+?>/s|<?lastbash TITLE?>|${ARTIST_NAME} - ${TRACK_NAME}|g; + s|<?lastbash COVER_URL?>|${COVER_URL}|g; + s|<?lastbash ARTIST_URL?>|${ARTIST_URL}|g; + s|<?lastbash ARTIST_NAME?>|${ARTIST_NAME}|g; + s|<?lastbash TRACK_URL?>|${TRACK_URL}|g; + s|<?lastbash TRACK_NAME?>|${TRACK_NAME}|g; + s|<?lastbash ALBUM_URL?>|${ALBUM_URL}|g; + s|<?lastbash ALBUM_NAME?>|${ALBUM_NAME}|g; + s|<?lastbash STATION_URL?>|${STATION_URL}|g; + s|<?lastbash STATION_NAME?>|${STATION_NAME}|g; + s|<?lastbash LENGTH?>|${META_MIN_SEC}|g" < "${HTML_TEMPLATE}" > "${HTML_FILE}" &2>/dev/null + + # Get the status code + RET=$? + return "${RET}" } # Function: Save the history in a CSV formatted file {{{1 @@ -1171,7 +1176,7 @@ then set_term_title "${META_ARTIST} - ${META_TRACK}" save_nowplaying "${META_ARTIST} - ${META_TRACK}" - save_html "1" + save_html "1" || tui_sbar "Error while creating the HTML file." else set_term_title "${PROG_TITLE}: Not streaming" save_nowplaying This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <cs...@us...> - 2007-04-24 17:53:59
|
Revision: 231 http://lastbash.svn.sourceforge.net/lastbash/?rev=231&view=rev Author: cstroie Date: 2007-04-24 10:53:56 -0700 (Tue, 24 Apr 2007) Log Message: ----------- New method for string padding, improving the l10n display. Modified Paths: -------------- lastbash/lastbash Modified: lastbash/lastbash =================================================================== --- lastbash/lastbash 2007-04-17 17:17:51 UTC (rev 230) +++ lastbash/lastbash 2007-04-24 17:53:56 UTC (rev 231) @@ -415,6 +415,20 @@ fi fi + # Compute some string sizes and padding + local L LL + LBL_MAXLENGTH=0 + for L in LBL_ARTIST LBL_ALBUM LBL_TRACK LBL_LENGTH LBL_ACTION + do + LL=${!L} + if [ "${#LL}" -gt "${LBL_MAXLENGTH}" ] + then + LBL_MAXLENGTH="${#LL}" + TCURRENT_PADDING="${LL}" + fi + done + TCURRENT_PADDING=${TCURRENT_PADDING//?/ } + # INIT done debug "${FUNCNAME}: Init done" } @@ -985,6 +999,9 @@ T_LASTLINE=$(( T_LINES - 1 )) T_LASTCOLUMN=$(( T_COLUMNS - 1 )) + # One line of T_COLUMNS space characters + printf -v T_EMPTYLINE "%${T_COLUMNS}s" + # Scroll area related settings TSCROLL_FIRST=10 TSCROLL_LAST=$(( T_LASTLINE - 2 )) @@ -1009,6 +1026,11 @@ HISTORY_FIELD_SIZE[1]=$(( ${UNIT} * ${HISTORY_FIELD_UNITS[1]} )) HISTORY_FIELD_SIZE[2]=$(( ${VAR_LINE} - ${HISTORY_FIELD_SIZE[0]} - ${HISTORY_FIELD_SIZE[1]} )) HISTORY_FIELD_SIZE[3]="6" + # Create the padds + HISTORY_FIELD_PADD[0]=${T_EMPTYLINE:0:${HISTORY_FIELD_SIZE[0]}} + HISTORY_FIELD_PADD[1]=${T_EMPTYLINE:0:${HISTORY_FIELD_SIZE[1]}} + HISTORY_FIELD_PADD[2]=${T_EMPTYLINE:0:${HISTORY_FIELD_SIZE[2]}} + HISTORY_FIELD_PADD[3]=${T_EMPTYLINE:0:${HISTORY_FIELD_SIZE[3]}} # Compute the current max line length TCURRENT_MAX=$(( ${T_COLUMNS} - 13 )) @@ -1053,28 +1075,20 @@ # Add the artist, if the field units are not null if [ "${HISTORY_FIELD_UNITS[0]}" != "0" ] then - S="${HISTORY_FIELD_SIZE[0]}" - printf -v FIELD " %-${S}s" "${LBL_ARTIST:0:$S}" - LINE="${LINE}${FIELD}" + LINE="${LINE} ${LBL_ARTIST}${HISTORY_FIELD_PADD[0]:${#LBL_ARTIST}}" fi # Add the album, if the field units are not null if [ "${HISTORY_FIELD_UNITS[1]}" != "0" ] then - S="${HISTORY_FIELD_SIZE[1]}" - printf -v FIELD " %-${S}s" "${LBL_ALBUM:0:$S}" - LINE="${LINE}${FIELD}" + LINE="${LINE} ${LBL_ALBUM}${HISTORY_FIELD_PADD[1]:${#LBL_ALBUM}}" fi # Add the track title - S="${HISTORY_FIELD_SIZE[2]}" - printf -v FIELD " %-${S}s" "${LBL_TRACK:0:$S}" - LINE="${LINE}${FIELD}" + LINE="${LINE} ${LBL_TRACK}${HISTORY_FIELD_PADD[2]:${#LBL_TRACK}}" # Add the track duration - S="${HISTORY_FIELD_SIZE[3]}" - printf -v FIELD " %${S}s " "${LBL_LENGTH:0:$S}" - LINE="${LINE}${FIELD}" + LINE="${LINE} ${HISTORY_FIELD_PADD[3]:${#LBL_LENGTH}}${LBL_LENGTH:0:6} " # Move the cursor and print tput cup 8 0 @@ -1158,36 +1172,29 @@ #----------------------------------------------------------------------------- function tui_current() { - local LINE - - printf -v LINE "${T_ATTR_BOLD}%7s${T_ATTR_NORMAL} : %s" "${LBL_ARTIST}" "${META_ARTIST:0:$TCURRENT_MAX}" tput cup 2 2 - echo -ne "${LINE}${T_EL}" + echo -ne "${T_ATTR_BOLD}${TCURRENT_PADDING:${#LBL_ARTIST}}${LBL_ARTIST}${T_ATTR_NORMAL} : ${META_ARTIST:0:$TCURRENT_MAX}${T_EL}" - printf -v LINE "${T_ATTR_BOLD}%7s${T_ATTR_NORMAL} : %s" "${LBL_TRACK}" "${META_TRACK:0:$TCURRENT_MAX}" tput cup 3 2 - echo -ne "${LINE}${T_EL}" + echo -ne "${T_ATTR_BOLD}${TCURRENT_PADDING:${#LBL_TRACK}}${LBL_TRACK}${T_ATTR_NORMAL} : ${META_TRACK:0:$TCURRENT_MAX}${T_EL}" - printf -v LINE "${T_ATTR_BOLD}%7s${T_ATTR_NORMAL} : %s" "${LBL_ALBUM}" "${META_ALBUM:0:$TCURRENT_MAX}" tput cup 4 2 - echo -ne "${LINE}${T_EL}" + echo -ne "${T_ATTR_BOLD}${TCURRENT_PADDING:${#LBL_ALBUM}}${LBL_ALBUM}${T_ATTR_NORMAL} : ${META_ALBUM:0:$TCURRENT_MAX}${T_EL}" - printf -v LINE "${T_ATTR_BOLD}%7s${T_ATTR_NORMAL} : %s" "${LBL_LENGTH}" "${META_MIN_SEC}" tput cup 5 2 - echo -ne "${LINE}${T_EL}" + echo -ne "${T_ATTR_BOLD}${TCURRENT_PADDING:${#LBL_LENGTH}}${LBL_LENGTH}${T_ATTR_NORMAL} : ${META_MIN_SEC:0:$TCURRENT_MAX}${T_EL}" - printf -v LINE "${T_ATTR_BOLD}%7s${T_ATTR_NORMAL} : %s" "${LBL_ACTION}" "${META_ACTION}" tput cup 6 2 - echo -ne "${LINE}${T_EL}" + echo -ne "${T_ATTR_BOLD}${TCURRENT_PADDING:${#LBL_ACTION}}${LBL_ACTION}${T_ATTR_NORMAL} : ${META_ACTION:0:$TCURRENT_MAX}${T_EL}" # Set the xterm title and save the now_playing file if [ "${META_STREAMING}" == "true" ] then set_term_title "${META_ARTIST} - ${META_TRACK}" save_nowplaying "${META_ARTIST} - ${META_TRACK}" - save_html "1" || tui_sbar "Error while creating the HTML file." + save_html "1" || tui_sbar $"Error while creating the HTML file." else - set_term_title "${PROG_TITLE}: Not streaming" + set_term_title $"Not streaming" save_nowplaying save_html fi @@ -1356,27 +1363,28 @@ # Add the artist, if the field units are not null if [ "${HISTORY_FIELD_UNITS[0]}" != "0" ] then - S="${HISTORY_FIELD_SIZE[0]}" - printf -v FIELD " %-${S}s" "${HISTORY_ARTIST[$1]:0:$S}" - LINE="${LINE}${FIELD}" + L="${HISTORY_FIELD_SIZE[0]}" + S="${HISTORY_ARTIST[$1]:0:$L}" + LINE="${LINE} ${S}${HISTORY_FIELD_PADD[0]:${#S}}" fi # Add the album, if the field units are not null if [ "${HISTORY_FIELD_UNITS[1]}" != "0" ] then - S="${HISTORY_FIELD_SIZE[1]}" - printf -v FIELD " %-${S}s" "${HISTORY_ALBUM[$1]:0:$S}" - LINE="${LINE}${FIELD}" + L="${HISTORY_FIELD_SIZE[1]}" + S="${HISTORY_ALBUM[$1]:0:$L}" + LINE="${LINE} ${S}${HISTORY_FIELD_PADD[1]:${#S}}" fi # Add the track title - S="${HISTORY_FIELD_SIZE[2]}" - printf -v FIELD " %-${S}s" "${HISTORY_TRACK[$1]:0:$S}" - LINE="${LINE}${FIELD}" + L="${HISTORY_FIELD_SIZE[2]}" + S="${HISTORY_TRACK[$1]:0:$L}" + LINE="${LINE} ${S}${HISTORY_FIELD_PADD[2]:${#S}}" # Add the track duration - printf -v FIELD " %6s " "${HISTORY_MIN_SEC[$1]}" - LINE="${LINE}${FIELD}" + L="${HISTORY_FIELD_SIZE[3]}" + S="${HISTORY_MIN_SEC[$1]:0:$L}" + LINE="${LINE} ${HISTORY_FIELD_PADD[3]:${#S}}${S} " # Output the line echo -n "${LINE}" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <cs...@us...> - 2007-05-22 15:40:09
|
Revision: 234 http://lastbash.svn.sourceforge.net/lastbash/?rev=234&view=rev Author: cstroie Date: 2007-05-22 08:38:26 -0700 (Tue, 22 May 2007) Log Message: ----------- Added basic support for popup notifications on track change. Modified Paths: -------------- lastbash/lastbash Modified: lastbash/lastbash =================================================================== --- lastbash/lastbash 2007-04-25 15:36:06 UTC (rev 233) +++ lastbash/lastbash 2007-05-22 15:38:26 UTC (rev 234) @@ -63,7 +63,7 @@ COMMAND_FILE="${HOME_DIR}/command" COMMAND_FILE_LOCK="${HOME_DIR}/command.lock" NOWPLAYING_FILE="${HOME_DIR}/now_playing" -HISTORY_CVS_FILE="${HOME_DIR}/history.csv" +HISTORY_CSV_FILE="${HOME_DIR}/history.csv" # Internal stuff PLAYERS="mplayer" @@ -234,7 +234,7 @@ fi # The first row contains the columns titles - [ -f "${HISTORY_CVS_FILE}" ] || echo "\"${LBL_ARTIST}\",\"${LBL_ALBUM}\",\"${LBL_TRACK}\",\"${LBL_LENGTH}\",\"${LBL_ACTION}\"" > "${HISTORY_CVS_FILE}" + [ -f "${HISTORY_CSV_FILE}" ] || echo "\"${LBL_ARTIST}\",\"${LBL_ALBUM}\",\"${LBL_TRACK}\",\"${LBL_LENGTH}\",\"${LBL_ACTION}\"" > "${HISTORY_CSV_FILE}" local ARTIST ALBUM TRACK DURATION ACTION @@ -246,9 +246,17 @@ ACTION="${HISTORY_ACTION[$1]//\"/\"\"}" # Save the history items - echo "\"${ARTIST}\",\"${ALBUM}\",\"${TRACK}\",\"${DURATION}\",\"${ACTION}\"" >> "${HISTORY_CVS_FILE}" + echo "\"${ARTIST}\",\"${ALBUM}\",\"${TRACK}\",\"${DURATION}\",\"${ACTION}\"" >> "${HISTORY_CSV_FILE}" } +# Function: Run an external command on track change {{{1 +#----------------------------------------------------------------------------- +function run_on_track_change() +{ + # TODO Add generic support for notification + type -t notify-send >/dev/null 2>&1 && notify-send -t 2000 -i gtk-dialog-info "${PROG_TITLE}" "${META_ARTIST} - ${META_TRACK}" 2>/dev/null 1>/dev/null +} + # Function: Print usage summary {{{1 #----------------------------------------------------------------------------- function url_encode() @@ -589,7 +597,7 @@ # Send the request if wget --quiet \ --tries="3" \ - --timeout="5" \ + --timeout="30" \ --save-headers \ --header="Connection: Close" \ --user-agent="${PROG_TITLE}/${PROG_VER}" \ @@ -1200,6 +1208,7 @@ then set_term_title "${META_ARTIST} - ${META_TRACK}" save_nowplaying "${META_ARTIST} - ${META_TRACK}" + run_on_track_change "1" save_html "1" || tui_sbar $"Error while creating the HTML file." else set_term_title $"Not streaming" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <cs...@us...> - 2007-05-22 15:57:54
|
Revision: 235 http://lastbash.svn.sourceforge.net/lastbash/?rev=235&view=rev Author: cstroie Date: 2007-05-22 08:57:53 -0700 (Tue, 22 May 2007) Log Message: ----------- Added support for upstream language. Modified Paths: -------------- lastbash/lastbash Modified: lastbash/lastbash =================================================================== --- lastbash/lastbash 2007-05-22 15:38:26 UTC (rev 234) +++ lastbash/lastbash 2007-05-22 15:57:53 UTC (rev 235) @@ -701,7 +701,7 @@ local N KEY VALUE RET # Do the http get - if http_get "${LASTFM_HOST}" "${LASTFM_PORT}" "/radio/handshake.php?version=${CLIENT_VERSION}&platform=${CLIENT_PLATFORM}&username=$1&passwordmd5=$2" + if http_get "${LASTFM_HOST}" "${LASTFM_PORT}" "/radio/handshake.php?version=${CLIENT_VERSION}&platform=${CLIENT_PLATFORM}&username=$1&passwordmd5=$2&language=en" then # Do this only if ok unset LASTFM_SESSION LASTFM_STREAM LASTFM_BASEURL LASTFM_BASEPATH This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <cs...@us...> - 2007-08-30 10:33:21
|
Revision: 237 http://lastbash.svn.sourceforge.net/lastbash/?rev=237&view=rev Author: cstroie Date: 2007-08-30 03:33:14 -0700 (Thu, 30 Aug 2007) Log Message: ----------- Added the volume up and down commands. Parse the http get status. Modified Paths: -------------- lastbash/lastbash Modified: lastbash/lastbash =================================================================== --- lastbash/lastbash 2007-08-30 09:56:24 UTC (rev 236) +++ lastbash/lastbash 2007-08-30 10:33:14 UTC (rev 237) @@ -533,7 +533,7 @@ # Do the HTTP request if "${HTTP_CLIENT_FUNCTION}" "${TMP_FILE}" "$1" "$2" "${GET_PATH}" then - # Append one (missing) EOL (and make sure the file exits) + # Append one (missing) EOL (and make sure the file exists) echo >> "${TMP_FILE}" # Clear the HTTP_* arrays @@ -563,16 +563,29 @@ (( N++ )) done < "${TMP_FILE}" - # Check the status - if [[ -n `expr "${HTTP_HEADERS[0]}" : '.*\(200\)'` ]] + # Get the protocol, status and error message + local PROTO STATUS MSG + PROTO="${HTTP_HEADERS[0]%% *}" + MSG="${HTTP_HEADERS[0]#* }" + STATUS="${MSG%% *}" + MSG="${MSG#* }" + if [ "${STATUS}" == "200" ] then RET="0" + elif [ "${STATUS}" == "403" ] + then + debug "${FUNCNAME}: HTTP GET status is ${STATUS} ${MSG}" + RET="4" + elif [ "${STATUS}" == "503" ] + then + debug "${FUNCNAME}: HTTP GET status is ${STATUS} ${MSG}" + RET="5" else - debug "${FUNCNAME}: HTTP GET status is not OK" + debug "${FUNCNAME}: HTTP GET status is not OK: ${STATUS} ${MSG}" RET="1" fi else - debug "${FUNCNAME}: HTTP GET error" + debug "${FUNCNAME}: Unidentified HTTP GET error" RET="2" fi @@ -2211,7 +2224,6 @@ return "${RET}" } - # Function: Mute the player {{{1 #----------------------------------------------------------------------------- function player_mute() @@ -2223,7 +2235,7 @@ # Set the status line tui_sbar $"Muting/Unmuting..." - # Stop playing + # Mute if [ "${PLAYER}" == "mplayer" ] then player_command "mute" @@ -2246,6 +2258,74 @@ return "${RET}" } +# Function: Player volume up {{{1 +#----------------------------------------------------------------------------- +function player_volup() +{ + player_running || return + + local RET + + # Set the status line + tui_sbar $"Volume up" + + # Volume up + if [ "${PLAYER}" == "mplayer" ] + then + player_command "volume +10" + RET=$? + elif [ "${PLAYER}" == "mpg123" ] + then + RET="1" + tui_sbar "Command not supported" + else + RET="1" + debug "${FUNCNAME}: No supported player running" + tui_sbar $"No supported player is running" + fi + + # Restore the status bar + sleep 1 + tui_sbar + + # Return the status + return "${RET}" +} + +# Function: Player volume down {{{1 +#----------------------------------------------------------------------------- +function player_voldown() +{ + player_running || return + + local RET + + # Set the status line + tui_sbar $"Volume down" + + # Volume down + if [ "${PLAYER}" == "mplayer" ] + then + player_command "volume -10" + RET=$? + elif [ "${PLAYER}" == "mpg123" ] + then + RET="1" + tui_sbar "Command not supported" + else + RET="1" + debug "${FUNCNAME}: No supported player running" + tui_sbar $"No supported player is running" + fi + + # Restore the status bar + sleep 1 + tui_sbar + + # Return the status + return "${RET}" +} + # Function: Stop playing {{{1 #----------------------------------------------------------------------------- function player_stop() @@ -2511,6 +2591,8 @@ "v") player_stop ;; "${CTRL_V}") player_quit ;; "m") player_mute ;; + "+") player_volup ;; + "-") player_voldown ;; # Quit "q") DONE="y" ;; # Any key or timeout This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <cs...@us...> - 2007-08-30 11:35:53
|
Revision: 238 http://lastbash.svn.sourceforge.net/lastbash/?rev=238&view=rev Author: cstroie Date: 2007-08-30 04:35:49 -0700 (Thu, 30 Aug 2007) Log Message: ----------- Added lang code to station changing request. Modified Paths: -------------- lastbash/lastbash Modified: lastbash/lastbash =================================================================== --- lastbash/lastbash 2007-08-30 10:33:14 UTC (rev 237) +++ lastbash/lastbash 2007-08-30 11:35:49 UTC (rev 238) @@ -867,7 +867,7 @@ local RET # Do the http get - if http_get "${LASTFM_BASEURL}" "${LASTFM_PORT}" "${LASTFM_BASEPATH}/adjust.php?session=$1&url=${URL}" + if http_get "${LASTFM_BASEURL}" "${LASTFM_PORT}" "${LASTFM_BASEPATH}/adjust.php?session=$1&url=${URL}&lang=en" then # Parse the result for ((N=0; N<=${#HTTP_RESPONSE[@]}; N++)) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <cs...@us...> - 2007-11-26 09:15:37
|
Revision: 239 http://lastbash.svn.sourceforge.net/lastbash/?rev=239&view=rev Author: cstroie Date: 2007-11-26 01:15:30 -0800 (Mon, 26 Nov 2007) Log Message: ----------- Do not check the player running if the there is no player. Modified Paths: -------------- lastbash/lastbash Modified: lastbash/lastbash =================================================================== --- lastbash/lastbash 2007-08-30 11:35:49 UTC (rev 238) +++ lastbash/lastbash 2007-11-26 09:15:30 UTC (rev 239) @@ -2085,6 +2085,8 @@ # Return if no player is to be used [ "${USE_PLAYER}" != "y" ] && return + debug "${FUNCNAME}: no supported player found" + if ! type -t mkfifo >/dev/null 2>&1 then tui_sbar $"No way to control the player, mkfifo is absent" "2" @@ -2122,6 +2124,8 @@ else debug "${FUNCNAME}: No supported player found" tui_sbar $"No supported player found" + sleep 1 + return "4" fi # Wait a second This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <cs...@us...> - 2008-02-08 21:38:36
|
Revision: 241 http://lastbash.svn.sourceforge.net/lastbash/?rev=241&view=rev Author: cstroie Date: 2008-02-08 13:38:19 -0800 (Fri, 08 Feb 2008) Log Message: ----------- Extended copyright years from 2006 to 2008. LastBASH starts to getting old... Modified Paths: -------------- lastbash/lastbash Modified: lastbash/lastbash =================================================================== --- lastbash/lastbash 2008-01-14 13:19:23 UTC (rev 240) +++ lastbash/lastbash 2008-02-08 21:38:19 UTC (rev 241) @@ -2,7 +2,7 @@ # ############################################################################ # lastbash - Console player for Last.fm -# Copyright (C) 2006 Costin Stroie <cs...@us...> +# Copyright (C) 2006-2008 Costin Stroie <cs...@us...> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |