zigbert wrote:Michalis
I'm excited to hear from you after played with 0.3.1. Are we on the right track or have you fooled both of us
Sigmund
Thank you and sorry for the delay but I didn't had much time, I had to do that thing called work
Ok I was going to post very few errors in the beginning but I couldn't leave you without some decent work reading and trying to figure out the solution
Anyway I tested it and it's better in cpu usage according to conky:
without progress bar: 16% average (13 to 19%)
with progress bar 43% average (35 to 47%)
It's lower but not optimal yet.
Of course I started it from rxvt in order to see if there are any errors and I noticed few.
Every time I start it, it displays:
Code: Select all
(gtkdialog3:7454): Gtk-WARNING **: Could not find the icon 'gtk-undo'. The 'hicolor' theme was not found either, perhaps you need to install it.
You can get a copy from:
http://icon-theme.freedesktop.org/releases
where is "gtk-undo"?
Ok nothing serious till now, but then when I clicked on a song to play I got this:
Code: Select all
/usr/local/pmusic/func_progressbar: line 37: b/s
Stream
Press
1+1: division by 0 (error token is "Stream
Press
1+1")
It's referring to line 37 of func_progressbar:
Code: Select all
if [ "$NOW_PLAYING" ] && [ "$LENGTH" ] && [ "$[$SEC_PLAYED+1]" ] && [ ! "`echo "$SEC_PLAYED" | grep '10000000000'`" ] && [ ! "`echo "$FFMPEG_OUTPUT" | grep 'invalid'`" ]; then # +1 checks if it's a number
Then when it automatically changed to the next song in the playlist I got this error:
Code: Select all
/usr/local/pmusic/func_progressbar: line 37: 158
video:0kB+1: syntax error in expression (error token is "video:0kB+1")
/usr/local/pmusic/func_progressbar: line 37: 158
video:0kB+1: syntax error in expression (error token is "video:0kB+1")
expr: non-numeric argument
again for line 37 of func_progressbar, wrong time calculation? wrong way to calculate? I don't know.
Another error I got was when pressing the stop button:
Code: Select all
/usr/local/pmusic/func_progressbar: line 43: pmusic_stop-(*60): syntax error: operand expected (error token is "*60)")
referring to line 43:
Code: Select all
TIME_SEC=$[$SEC_PLAYED-($TIME_MIN*60)]
Last error was when exited using "file" "quit":
Code: Select all
/usr/local/pmusic/pmusic: line 618: kill: (22010) - No such process
Ok now live errors, I'm playing another song and I get this error:
Code: Select all
/usr/local/pmusic/func_progressbar: line 27: (01*60)+08: value too great for base (error token is "08")
It's being printed every second or 2.
Changing to the next song got me this error:
Code: Select all
/usr/local/pmusic/func_progressbar: line 37: 106
video:0kB+1: syntax error in expression (error token is "video:0kB+1")
expr: syntax error
/usr/local/pmusic/func_progressbar: line 43: -(*60): syntax error: operand expected (error token is "*60)")
Another error:
Code: Select all
/usr/local/pmusic/func_progressbar: line 37: 125
video:0kB+1: syntax error in expression (error token is "video:0kB+1")
/usr/local/pmusic/func_progressbar: line 37: 125
video:0kB+1: syntax error in expression (error token is "video:0kB+1")
/usr/local/pmusic/func_progressbar: line 37: am
Stream
when using the fast forward I got this error:
Code: Select all
/usr/local/pmusic/func_progressbar: line 37: tream
Press
mdb:164,
mdb:164,+1: syntax error in expression (error token is "Press
mdb:164,
mdb:164,+1")
Something else I'm facing is that when using fast forward (30 secs next) it takes much time around 2-3 secs usually but even 8 secs the first time using it after pmusic lanch. After ff the time counter in progress bar always starts from 1 sec and counting althougth the song is playing for 1 or 2 minutes.
Another error I got now by pressing fast forward near the end of the song and so it had changed song is:
Code: Select all
/usr/local/pmusic/func_progressbar: line 37: 145
video:0kB+1: syntax error in expression (error token is "video:0kB+1")
/usr/local/pmusic/func_progressbar: line 37: skiping
1+1: syntax error in expression (error token is "1+1")
/usr/local/pmusic/func_progressbar: line 37: 10000000000
video:0kB+1: syntax error in expression (error token is "video:0kB+1")
/usr/local/pmusic/func_progressbar: line 37: #0
Press
mdb:100,
1+1: syntax error: operand expected (error token is "#0
Press
mdb:100,
1+1")
Pause also seems not to work:
Code: Select all
/usr/local/pmusic/func: line 888: kill: (14332) - No such process
/usr/local/pmusic/func: line 888: kill: (14492) - No such process
/usr/local/pmusic/func: line 888: kill: (14784) - No such process
Anyway it seems that many errors have to do with line 37 of func_progressbar, so that must be the starting point, correct? Don't seem to be any important errors, rather than just code cleaning and debugging.
I'm also attaching all rxvt's output in order you want it.
Generally feeling: I'm satisfied using pmusic but needs some work in order to become perfect.