Page 93 of 117

Posted: Sat 15 Nov 2014, 21:18
by SFR
@Zigbert: you can avoid direct modifications of globicons file by using Rox's SOAP RPC, check this out:

Code: Select all

#!/bin/sh

touch /root/SomeTestFile

rox --RPC << EOF
<?xml version="1.0"?>
<env:Envelope xmlns:env="http://www.w3.org/2001/12/soap-envelope">
 <env:Body xmlns="http://rox.sourceforge.net/SOAP/ROX-Filer">
  <SetIcon>
   <Path>/root/SomeTestFile</Path>
   <Icon>/usr/share/icons/hicolor/scalable/apps/pmusic.svg</Icon>
  </SetIcon>
 </env:Body>
</env:Envelope>
EOF
HTH 8)

Greetings!

Posted: Sat 15 Nov 2014, 22:09
by greengeek
Hi zigbert - what happens if I do not have a pre-existing /root/.config/rox.sourceforge.net/ROX-Filer/globicons file? In that case where does the following code find the rest of the contents for the new globicons file?

Code: Select all

	#give pmusic executable an icon in Rox
	if [ ! "`grep -F 'pmusic.svg' ${HOME}/.config/rox.sourceforge.net/ROX-Filer/globicons`" ]; then
		grep -vF '</special-files>' ${HOME}/.config/rox.sourceforge.net/ROX-Filer/globicons > $WORKDIR/tmp
		cat >> $WORKDIR/tmp << EOF  
  <rule match="/usr/local/pmusic/pmusic">
   <icon>/usr/share/icons/hicolor/scalable/apps/pmusic.svg</icon>
  </rule>
</special-files>
EOF
		mv $WORKDIR/tmp ${HOME}/.config/rox.sourceforge.net/ROX-Filer/globicons
	fi
EDIT : OK, more testing has proven that my problem is caused by the fact that my remastering does not bring across /root/.config/rox.sourceforge.net/ROX-Filer/globicons.
I only bring across /root/Choices/ROX-Filer/globicons, which seems to work fine in terms of setting up my desktop as I want it to be.

Can anyone suggest why the other globicons file is necessary? Are there likely to be other programs other than pmusic that need to access that file too?

Posted: Sun 16 Nov 2014, 14:40
by zigbert
xanad wrote:Ciao zigbert
4.4.3 mo it
Thank you!

Sigmund

Posted: Sun 16 Nov 2014, 14:53
by zigbert
SFR wrote:@Zigbert: you can avoid direct modifications of globicons file by using Rox's SOAP RPC, check this out:

Code: Select all

#!/bin/sh

touch /root/SomeTestFile

rox --RPC << EOF
<?xml version="1.0"?>
<env:Envelope xmlns:env="http://www.w3.org/2001/12/soap-envelope">
 <env:Body xmlns="http://rox.sourceforge.net/SOAP/ROX-Filer">
  <SetIcon>
   <Path>/root/SomeTestFile</Path>
   <Icon>/usr/share/icons/hicolor/scalable/apps/pmusic.svg</Icon>
  </SetIcon>
 </env:Body>
</env:Envelope>
EOF
HTH 8)

Greetings!
Added - thanks a lot :)

Posted: Sun 16 Nov 2014, 14:57
by zigbert
greengeek
SFR's solution is by far the best option. pMusic 4.4.4 will be released in short time

Posted: Tue 18 Nov 2014, 19:49
by zigbert
Version 4.4.4
See main post


Changelog
- Do not update db if nothing changed. (Resourse hunger):
--> detection of albumart-url.
--> building album list.
- Run Smartadd as background process.
- Reduce cpu-load when reading trackinfo for new playing track.
- Avoid grep locked db (flock) if string is written back to db. - Will corrupt db.
- Bugfix: Rox globicons file corrupted by pMusic. (thanks to SFR and greengeek)
- Bugfix: Download album art from albumart.org

Posted: Thu 20 Nov 2014, 05:48
by zigbert
Version 4.4.5
See main post

Changelog
- Snappier play-command
- Bugfix: Trackinfo search grabbed focus of add/play-module.
- Bugfix: info when playing CD-audio.
- Bugfix: Fetch-buttons in id3tagger does not work.

Posted: Thu 20 Nov 2014, 19:05
by greengeek
Hi zigbert- just reporting that pmusic 4.4.5 does not run on my system. At first run I saw the "initialising" splash, but it just hung with the splash on screen.

I then installed version 4.4.3 again and it worked perfectly. Tried 4.4.5 again and this time I did not see the initializing splash (obviously knows first run is not reqd) but the program gui did not open either.

(EDIT - deleted an irrelevant bit of info)

Again - my system is non-standard so others may not experience this...

Posted: Fri 21 Nov 2014, 17:27
by zigbert
greengeek
if 4.4.3 works - 4.4.5 should, so I am interested in getting this solved.

Any terminal output?

Code: Select all

pmusic --debug
Can you use the pmusic backend?

Code: Select all

pmusic -B "/dir/file"
Can you test the gui-code?

Code: Select all

gtkdialog -f /root/.pmusic/tmp/xml_pmusic

Sigmund

Posted: Fri 21 Nov 2014, 17:40
by zigbert
Good News!
ffmpeg is on its way back into Ubuntu and Debian.
pMusic favors ffmpeg over libav.

Posted: Fri 21 Nov 2014, 20:16
by greengeek
zigbert wrote:Any terminal output?

Code: Select all

pmusic --debug
Can you use the pmusic backend?

Code: Select all

pmusic -B "/dir/file"
Can you test the gui-code?

Code: Select all

gtkdialog -f /root/.pmusic/tmp/xml_pmusic
Hi Sigmund,
thank you for the troubleshooting steps. While i was running through those steps I was able to see a little better what was happening:
1) pmusic 445 does work ok on my system, but only if I let it initialise by running it for the first time by starting it from the menu.
2) If I trigger pmusic's firstrun by clicking on an mp3 file that is when it hangs during the initialise phase with the onscreen splash.

so
- the backend works
- the gui works
- the firstrun initialise has some issue on my system - when triggered by clicking an audio file icon.

When the initialise phase was in the hung state I noticed a couple of things showing in pprocess - see pic below.

Also, during the troubleshooting steps you mentioned I did see some error messages but I don't know if they are related to the initialise problem:
(please forgive the length of the post):

Code: Select all

pmusic --debug
cat: /root/.pmusic/tmp/MY_PID: No such file or directory
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]

/usr/local/pmusic/func_player: line 141: /root/.pmusic/tmp/SS: No such file or directory
widget_statusbar_input_by_file(): Couldn't open '/root/.pmusic/tmp/statusbar' for reading.

(gtkdialog:17809): Gtk-CRITICAL **: IA__gtk_tree_view_set_fixed_height_mode: assertion `gtk_tree_view_column_get_sizing (c) == GTK_TREE_VIEW_COLUMN_FIXED' failed

** (gtkdialog:17809): WARNING **: Invalid borders specified for theme pixmap:
        /usr/share/themes/ShallowThought/gtk-2.0/radio5.png,
borders don't fit within the image
# cat: /root/.pmusic/index_mymusic: No such file or directory
Input #0, mp3, from 'http://api.jamendo.com/get2/stream/track/redirect/?streamencoding=mp31&id=859743':

/usr/local/pmusic/func_trackinfo: line 13: /root/.pmusic/tmp/trackinfo_ID3_ARTIST: No such file or directory
/usr/local/pmusic/func_trackinfo: line 14: /root/.pmusic/tmp/trackinfo_ID3_TITLE: No such file or directory
/usr/local/pmusic/func_trackinfo: line 15: /root/.pmusic/tmp/trackinfo_ID3_ALBUM: No such file or directory
/usr/local/pmusic/func_progressbar: line 55: /root/.pmusic/tmp/SS: No such file or directory
(standard_in) 2: syntax error
(standard_in) 2: syntax error
/usr/local/pmusic/func_progressbar: line 60: (*100/352)+1: syntax error: operand expected (error token is "*100/352)+1")
--2014-11-22 06:50:43--  http://api.jamendo.com/get2/name+artist_name+album_name+numalbum+dates+genre+artist_id+album_id+artist_url/track/plain/track_album+album_artist/?id=859743
Resolving api.jamendo.com (api.jamendo.com)... 31.12.66.13
Connecting to api.jamendo.com (api.jamendo.com)|31.12.66.13|:80... connected.
HTTP request sent, awaiting response... /usr/local/pmusic/func_progressbar: line 55: /root/.pmusic/tmp/SS: No such file or directory
(standard_in) 2: syntax error
/usr/local/pmusic/func_progressbar: line 60: (*100/352)+1: syntax error: operand expected (error token is "*100/352)+1")
302 Found
Location: http://api.jamendo.com/en/?id=859743&m=get2&m_params=name+artist_name+album_name+numalbum+dates+genre+artist_id+album_id+artist_url%2Ftrack%2Fplain%2Ftrack_album+album_artist%2F [following]
--2014-11-22 06:50:43--  http://api.jamendo.com/en/?id=859743&m=get2&m_params=name+artist_name+album_name+numalbum+dates+genre+artist_id+album_id+artist_url%2Ftrack%2Fplain%2Ftrack_album+album_artist%2F
Connecting to api.jamendo.com (api.jamendo.com)|31.12.66.13|:80... connected.
HTTP request sent, awaiting response... /usr/local/pmusic/func_progressbar: line 55: /root/.pmusic/tmp/SS: No such file or directory
(standard_in) 2: syntax error
/usr/local/pmusic/func_progressbar: line 60: (*100/352)+1: syntax error: operand expected (error token is "*100/352)+1")
200 OK
Length: 116 [text/plain]
Saving to: 'STDOUT'

100%[======================================>] 116         --.-K/s   in 0s      

2014-11-22 06:50:44 (4.89 MB/s) - written to stdout [116/116]

/usr/local/pmusic/func_progressbar: line 55: /root/.pmusic/tmp/SS: No such file or directory
(standard_in) 2: syntax error
/usr/local/pmusic/func_progressbar: line 60: (*100/352)+1: syntax error: operand expected (error token is "*100/352)+1")
du: cannot access 'http://api.jamendo.com/get2/stream/track/redirect/?streamencoding=mp31&id=859743': No such file or directory
du: cannot access 'http://api.jamendo.com/get2/stream/track/redirect/?streamencoding=mp31&id=859743': No such file or directory
/usr/local/pmusic/func_progressbar: line 55: /root/.pmusic/tmp/SS: No such file or directory
(standard_in) 2: syntax error
/usr/local/pmusic/func_progressbar: line 60: (*100/352)+1: syntax error: operand expected (error token is "*100/352)+1")
/usr/local/pmusic/func_progressbar: line 55: /root/.pmusic/tmp/SS: No such file or directory
(standard_in) 2: syntax error
/usr/local/pmusic/func_progressbar: line 60: (*100/352)+1: syntax error: operand expected (error token is "*100/352)+1")
--2014-11-22 06:50:48--  http://api.jamendo.com/get2/track_name/album/plain/track_album/?id=100637
Resolving api.jamendo.com (api.jamendo.com)... 31.12.66.13
Connecting to api.jamendo.com (api.jamendo.com)|31.12.66.13|:80... connected.
HTTP request sent, awaiting response... /usr/local/pmusic/func_progressbar: line 55: /root/.pmusic/tmp/SS: No such file or directory
(standard_in) 2: syntax error
/usr/local/pmusic/func_progressbar: line 60: (*100/352)+1: syntax error: operand expected (error token is "*100/352)+1")
200 OK
Length: 157 [text/plain]
Saving to: 'STDOUT'

100%[======================================>] 157         --.-K/s   in 0s      

2014-11-22 06:50:48 (7.55 MB/s) - written to stdout [157/157]

--2014-11-22 06:50:48--  http://www.jamendo.com/en/track/859743
Resolving www.jamendo.com (www.jamendo.com)... /usr/local/pmusic/func_progressbar: line 55: /root/.pmusic/tmp/SS: No such file or directory
(standard_in) 2: syntax error
/usr/local/pmusic/func_progressbar: line 60: (*100/352)+1: syntax error: operand expected (error token is "*100/352)+1")
31.12.66.13
Connecting to www.jamendo.com (www.jamendo.com)|31.12.66.13|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://www.jamendo.com/en/track/859743 [following]
--2014-11-22 06:50:50--  https://www.jamendo.com/en/track/859743
Connecting to www.jamendo.com (www.jamendo.com)|31.12.66.13|:443... connected.
/usr/local/pmusic/func_progressbar: line 55: /root/.pmusic/tmp/SS: No such file or directory
(standard_in) 2: syntax error
/usr/local/pmusic/func_progressbar: line 60: (*100/352)+1: syntax error: operand expected (error token is "*100/352)+1")
ERROR: cannot verify www.jamendo.com's certificate, issued by '/C=US/ST=Arizona/L=Scottsdale/O=GoDaddy.com, Inc./OU=http://certificates.godaddy.com/repository/CN=Go Daddy Secure Certification Authority/serialNumber=07969287':
  Self-signed certificate encountered.
To connect to www.jamendo.com insecurely, use `--no-check-certificate'.
/usr/local/pmusic/func_progressbar: line 55: /root/.pmusic/tmp/SS: No such file or directory
(standard_in) 2: syntax error
/usr/local/pmusic/func_progressbar: line 60: (*100/352)+1: syntax error: operand expected (error token is "*100/352)+1")
/usr/local/pmusic/func_progressbar: line 55: /root/.pmusic/tmp/SS: No such file or directory
(standard_in) 2: syntax error
/usr/local/pmusic/func_progressbar: line 60: (*100/352)+1: syntax error: operand expected (error token is "*100/352)+1")
/usr/local/pmusic/func_progressbar: line 55: /root/.pmusic/tmp/SS: No such file or directory
(standard_in) 2: syntax error
/usr/local/pmusic/func_progressbar: line 60: (*100/352)+1: syntax error: operand expected (error token is "*100/352)+1")
/usr/local/pmusic/func_progressbar: line 55: /root/.pmusic/tmp/SS: No such file or directory
(standard_in) 2: syntax error
/usr/local/pmusic/func_progressbar: line 60: (*100/352)+1: syntax error: operand expected (error token is "*100/352)+1")
/usr/local/pmusic/func_progressbar: line 55: /root/.pmusic/tmp/SS: No such file or directory
(standard_in) 2: syntax error
/usr/local/pmusic/func_progressbar: line 60: (*100/352)+1: syntax error: operand expected (error token is "*100/352)+1")
/usr/local/pmusic/func_progressbar: line 55: /root/.pmusic/tmp/SS: No such file or directory
(standard_in) 2: syntax error
/usr/local/pmusic/func_progressbar: line 60: (*100/352)+1: syntax error: operand expected (error token is "*100/352)+1")
/usr/local/pmusic/func_progressbar: line 55: /root/.pmusic/tmp/SS: No such file or directory
(standard_in) 2: syntax error
/usr/local/pmusic/func_progressbar: line 60: (*100/352)+1: syntax error: operand expected (error token is "*100/352)+1")
/usr/local/pmusic/func_progressbar: line 55: /root/.pmusic/tmp/SS: No such file or directory
(standard_in) 2: syntax error
/usr/local/pmusic/func_progressbar: line 60: (*100/352)+1: syntax error: operand expected (error token is "*100/352)+1")
/usr/local/pmusic/func_progressbar: line 55: /root/.pmusic/tmp/SS: No such file or directory
(standard_in) 2: syntax error
/usr/local/pmusic/func_progressbar: line 60: (*100/352)+1: syntax error: operand expected (error token is "*100/352)+1")
/usr/local/pmusic/func_progressbar: line 55: /root/.pmusic/tmp/SS: No such file or directory
(standard_in) 2: syntax error
/usr/local/pmusic/func_progressbar: line 60: (*100/352)+1: syntax error: operand expected (error token is "*100/352)+1")
/usr/local/pmusic/func_progressbar: line 55: /root/.pmusic/tmp/SS: No such file or directory
(standard_in) 2: syntax error
/usr/local/pmusic/func_progressbar: line 60: (*100/352)+1: syntax error: operand expected (error token is "*100/352)+1")
/usr/local/pmusic/func_progressbar: line 55: /root/.pmusic/tmp/SS: No such file or directory
(standard_in) 2: syntax error
/usr/local/pmusic/func_progressbar: line 60: (*100/352)+1: syntax error: operand expected (error token is "*100/352)+1")
/usr/local/pmusic/func_progressbar: line 55: /root/.pmusic/tmp/SS: No such file or directory
(standard_in) 2: syntax error
/usr/local/pmusic/func_progressbar: line 60: (*100/352)+1: syntax error: operand expected (error token is "*100/352)+1")
/usr/local/pmusic/func_progressbar: line 55: /root/.pmusic/tmp/SS: No such file or directory
(standard_in) 2: syntax error
/usr/local/pmusic/func_progressbar: line 60: (*100/352)+1: syntax error: operand expected (error token is "*100/352)+1")
/usr/local/pmusic/func_progressbar: line 55: /root/.pmusic/tmp/SS: No such file or directory
(standard_in) 2: syntax error
/usr/local/pmusic/func_progressbar: line 60: (*100/352)+1: syntax error: operand expected (error token is "*100/352)+1")
/us
At this point I may have missed capturing some of the moving messages, but after closing pmusic I captured this tail:

Code: Select all

(gtkdialog:17809): Gtk-WARNING **: Failed to set text from markup due to error parsing markup: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity - escape ampersand as &
/usr/local/pmusic/func_progressbar: line 55: /root/.pmusic/tmp/SS: No such file or directory
(standard_in) 2: syntax error
/usr/local/pmusic/func_progressbar: line 60: (*100/352)+1: syntax error: operand expected (error token is "*100/352)+1")
grep: write error: Broken pipe

/root/.pmusic/tmp/exec: line 2: 17553 Broken pipe             LANG=C exec ffmpeg -i 'http://api.jamendo.com/get2/stream/track/redirect/?streamencoding=mp31&id=859743' -ss 0 -f au - 2>> /root/.pmusic/tmp/ffmpeg_output
     17554 Killed                  | aplay 2> /root/.pmusic/tmp/aplay_error
Can you use the pmusic backend?

Code: Select all

pmusic -B "/dir/file"	
- yes this works - I hear the mp3 playing correctly.
Can you test the gui-code?

Code: Select all

gtkdialog -f /root/.pmusic/tmp/xml_pmusic
- Here is the result when I entered this during the hung phase:

Code: Select all

# gtkdialog -f /root/.pmusic/tmp/xml_pmusic
** (gtkdialog:1668): ERROR **: Error opening file '/root/.pmusic/tmp/xml_pmusic': No such file or directory
Trace/breakpoint trap
# 
Many thanks for your help with this problem.
cheers!

Posted: Sat 22 Nov 2014, 08:55
by zigbert
Great report - I will fix :)

Posted: Sat 22 Nov 2014, 09:47
by zigbert
Version 4.4.6
See main post

Changelog
- Simplify some code in func_trackinfo.
- Bugfix: Start pMusic by click on file in filebrowser (thanks to greengeek)
- Bugfix: Remove quest-icon in main gui if choose to skip 'update DB' msg.

Stream Display

Posted: Sat 22 Nov 2014, 11:22
by tlchost
Is it normal for the display of music streams discovered in a search to be in the format:

http://208.158.48:9296,

when now playing window it's listed as
NBRN.FM|http://208.53.158.48:9296

Seems to me the second listing is easier to determine the name of the stream

I'm using OvPrecise as a bootable USB.

Do other Puppt versions have the same display differences?

thanks

Posted: Sat 22 Nov 2014, 15:06
by zigbert
tlchost
I don't get in detail what you mean, so I've attached a screenshot of pMusic playing you're radio station.

Be aware that displaying meta-info for streams (as seen in statusbar of my screenie) requires streamripper to be installed. Most Puppies has this today. You can check yours by execute 'pmusic -D' in terminal. Without streamripper, pMusic displays url - either filename or internet address.

If I misunderstood you, please let me try once more... :)


Sigmund

Posted: Sat 22 Nov 2014, 19:02
by greengeek
zigbert wrote:- Bugfix: Start pMusic by click on file in filebrowser
Thank you Sigmund! Speedy initialisation and working well now. Many thanks!

Posted: Sun 23 Nov 2014, 12:55
by tlchost
zigbert wrote:tlchost
IYou can check yours by execute 'pmusic -D' in terminal. Without streamripper, pMusic displays url - either filename or internet address.
R E Q U I R E D
bash [OK]
coreutils, awk, sed, diff [OK]
gtkdialog >= r512 [MISSING]
ffmpeg [OK]
aplay (alsa) [OK]

R E C O M M E N D E D
streamripper (extended radio-rip/play) [OK]
cdda2wav (play/rip audio-CD) [OK]
wget (connection to www) [OK]

O P T I O N A L
pBurn (burning audio-CD) [OK]
pFilesearch (File-search engine) >= 1.28 [OK]
pSchedule (podcast managing) >= 1.12 [OK]
pEqualizer (10 band equalizer) [OK]
Timidity (play midi) [MISSING]
libcddb (improved CD detection) [MISSING]


streamripper is installed....what do I need to do ?

thanks

Posted: Sun 23 Nov 2014, 17:53
by zigbert
tlchost wrote:streamripper is installed....what do I need to do ?
Could you please post a screenshot, so I get it clear what you want to change.

Thank you
Sigmund

Posted: Sun 23 Nov 2014, 18:39
by tlchost
zigbert wrote:
tlchost wrote:streamripper is installed....what do I need to do ?
Could you please post a screenshot, so I get it clear what you want to change.
the search results on the left would be much easier to understand if they were in the format of the right pane.[/img]

Posted: Mon 24 Nov 2014, 02:44
by OscarTalks
Testing pMusic-4.4.6 in Precise Puppy (5.7.1) with the gtkdialog upgrade it seems to run OK.

I did notice that the dependency check reports libcddb as missing.
The library is in fact installed
but the file /usr/bin/cddb_query is missing from Precise
The strange thing is that I can't find this file in the official Ubuntu packages.

I compiled libcddb from source and the file /usr/bin/cddb_query is produced
so I will attach this file on its own.
Remove the fake .gz extension (by renaming)
and place it it /usr/bin
The dependency check then reports libcddb as OK.