Simple GTK Radio v0.1.18
Hmm, it seemed like a good spot for search to fill empty space, but if it gets in the way of text maybe it should be just another icon on top toolbar which pops up input dialog for search.
puppy.b0x.me stuff mirrored [url=https://drive.google.com/open?id=0B_Mb589v0iCXNnhSZWRwd3R2UWs]HERE[/url] or [url=http://archive.org/details/Puppy_Linux_puppy.b0x.me_mirror]HERE[/url]
Some developers write their program GUI to fit text by auto-stretching when necessary (usually a change of language and/or font size), others simplify the text itself, for example "time" instead of "elapsed time" or "vol." as an abbreviation for "volume".dejan555 wrote:Hmm, it seemed like a good spot for search to fill empty space, but if it gets in the way of text maybe it should be just another icon on top toolbar which pops up input dialog for search.
[url=http://murga-linux.com/puppy/viewtopic.php?t=76948]Puppy Linux en español[/url]
The search feature is really outstanding.
I have a playlist file that is 1148k and has over 14000 radio stations in it. It can complete a search in less than a second.
It's a little large to load as a default playlist file but is an excellent station resource. Double clicking on the results plays the station.
Quite brilliant.
I have a playlist file that is 1148k and has over 14000 radio stations in it. It can complete a search in less than a second.
It's a little large to load as a default playlist file but is an excellent station resource. Double clicking on the results plays the station.
Quite brilliant.
vovchik wrote:Dear Dejan,
Very nice implementation of search and very fast. Congratulations....
With kind regards,
vovchik
This is an update for the Spanish translation that makes translations fit better in the current GUI, see screenshot below. Portuguese and Italian were also updated.
- Attachments
-
- spanish-simplegtkradio-v0.1.12.tar.gz
- (1.41 KiB) Downloaded 339 times
-
- portuguese-simplegtkradio-v0.1.12.tar.gz
- (1.38 KiB) Downloaded 312 times
-
- italian-simplegtkradio-v0.1.12.tar.gz
- (1.36 KiB) Downloaded 321 times
-
- Screenshot_2014-01-26_124423.png
- (15.15 KiB) Downloaded 751 times
[url=http://murga-linux.com/puppy/viewtopic.php?t=76948]Puppy Linux en español[/url]
New version added with recording option and preferences dialog
vicmz, thank you, although I increased statusbar width a bit for this version and gui is bit wider anyway because of one button more.
I added updated translations
vicmz, thank you, although I increased statusbar width a bit for this version and gui is bit wider anyway because of one button more.
I added updated translations
puppy.b0x.me stuff mirrored [url=https://drive.google.com/open?id=0B_Mb589v0iCXNnhSZWRwd3R2UWs]HERE[/url] or [url=http://archive.org/details/Puppy_Linux_puppy.b0x.me_mirror]HERE[/url]
Polish language for Simple GTK Radio updated
- Attachments
-
- simplegtkradio-0.1.14PL.tar.gz
- Simple GTK radio PL
- (1.86 KiB) Downloaded 314 times
- MochiMoppel
- Posts: 2084
- Joined: Wed 26 Jan 2011, 09:06
- Location: Japan
Brilliant! Thanks for sharing this little gem. I particularly like the easy playlist configuration and the "Last 5 songs" idea. I took the liberty to make some minor changes and now it's pretty perfect for my needs:
Station name: Added this info above the song title
Elapsed time: Why would anyone need to know? I don't, so removed it
Search: Valuable space taken by a rarely used function, so moved it to a button
Mute button: .Pushing the slider to 0% wouldn't mute and - surprisingly - the Retrovol tray app doesn't offer this function either, so I added a mute button (to the right of the volume slider)
Last 5 songs: Current problem: The text in the 5 songs list can't be selected and copied, which is what I would need to enter song info into a search engine. The additional option to open the log in an editor solves this problem, but is overkill. I solved these shortcomings with Xdialog and a simple one-liner...don't know if this is cheating when all other dialogs use gtk-dialog Xdialog includes the complete log, but shows only the last 5 entries. As a bonus the list is "live" and refreshes automatically.
Station name: Added this info above the song title
Elapsed time: Why would anyone need to know? I don't, so removed it
Search: Valuable space taken by a rarely used function, so moved it to a button
Mute button: .Pushing the slider to 0% wouldn't mute and - surprisingly - the Retrovol tray app doesn't offer this function either, so I added a mute button (to the right of the volume slider)
Last 5 songs: Current problem: The text in the 5 songs list can't be selected and copied, which is what I would need to enter song info into a search engine. The additional option to open the log in an editor solves this problem, but is overkill. I solved these shortcomings with Xdialog and a simple one-liner...don't know if this is cheating when all other dialogs use gtk-dialog Xdialog includes the complete log, but shows only the last 5 entries. As a bonus the list is "live" and refreshes automatically.
Code: Select all
last-five)
Xdialog --title "Streamlog" --no-cancel --tailbox /tmp/sgr.$USER/radio-playlist 11 55
- Attachments
-
- simplegtkradio.png
- (32.36 KiB) Downloaded 687 times
It can have selectable textMochiMoppel wrote: Last 5 songs: Current problem: The text in the 5 songs list can't be selected and copied
Code: Select all
<text selectable="true" wrap="true" justify="2"><input>tail -n 5 /tmp/sgr.$USER/radio-playlist</input></text>
Code: Select all
<window title="'$(gettext 'Simple GTK Radio - last 5 played')'" image-name="'"$SGRDIR"'/data/radiotray.png" resizable="false" decorated="false">
<vbox border-width="10">
<text selectable="true" wrap="true" justify="2"><input>tail -n 5 /tmp/sgr.$USER/radio-playlist</input></text>
<button label="'$(gettext 'Show playlist log')'"><action>'"$EDTR"' /tmp/sgr.$USER/radio-playlist &</action><action>exit:Quit</action></button>
<button has-focus="true">
<label>OK</label>
<input file stock="gtk-ok"></input>
<action>exit:Quit</action>
</button>
</vbox>
</window>
- Attachments
-
- select-text.png
- (16.83 KiB) Downloaded 671 times
[b]Carolina:[/b] [url=http://smokey01.com/carolina/pages/recent-repo.html]Recent Repository Additions[/url]
[img]https://dl.dropboxusercontent.com/s/ahfade8q4def1lq/signbot.gif[/img]
[img]https://dl.dropboxusercontent.com/s/ahfade8q4def1lq/signbot.gif[/img]
MochiMoppel: What command did you use for mute button?
And does the icon change when muted, if so can you share your code, I might add this to main code.
EDIT:Oh, and I like the note icon for menu, how do you put it on menu, I looked into menu attributes when making it but I've found that menu must have label? Because I tried to make it look more like button.
For selectable text, I'll use Geoffrey's fix (thanks again!)
It's not cheating to use Xdialog if you prefer it, many times it's simple one-liner instead big gtkdialog code, I had Xdialogs in some versions but decided to go with gtkdialog only for main releases, I even leave some of Xdialog code commented.
Some other users sent me their modifications too and I'm getting a lot of ideas which is great so there will be more changes when I have time to thinker about it.
And does the icon change when muted, if so can you share your code, I might add this to main code.
EDIT:Oh, and I like the note icon for menu, how do you put it on menu, I looked into menu attributes when making it but I've found that menu must have label? Because I tried to make it look more like button.
For selectable text, I'll use Geoffrey's fix (thanks again!)
It's not cheating to use Xdialog if you prefer it, many times it's simple one-liner instead big gtkdialog code, I had Xdialogs in some versions but decided to go with gtkdialog only for main releases, I even leave some of Xdialog code commented.
Some other users sent me their modifications too and I'm getting a lot of ideas which is great so there will be more changes when I have time to thinker about it.
puppy.b0x.me stuff mirrored [url=https://drive.google.com/open?id=0B_Mb589v0iCXNnhSZWRwd3R2UWs]HERE[/url] or [url=http://archive.org/details/Puppy_Linux_puppy.b0x.me_mirror]HERE[/url]
- MochiMoppel
- Posts: 2084
- Joined: Wed 26 Jan 2011, 09:06
- Location: Japan
dejan555 wrote:MochiMoppel: What command did you use for mute button?
Code: Select all
<button relief="2" auto-refresh="true" tooltip-text="Mute">
<input file>/tmp/sgr.'"$USER"'/mutestatus.png</input>
<action>amixer sset Master toggle</action>
</button>
Yes. It even changes when the user mutes the sound via the Retrovol GUI. It kind of works, but needs refinement. I simply put it into the available 2s loop in simple-radio-notify, which - together with the auto-refresh delay - makes the icon change a bit sluggish. Code in simple-radio-notify:And does the icon change when muted,
Code: Select all
start_notification() {
while [ "$(busybox pidof mplayer)" ]; do
MUTESTATUS_NOW=`amixer get Master | grep -o "\[[onf]*\]"` # mochi
< snip >
# mochi
if [ "$MUTESTATUS_NOW" != "$MUTESTATUS_OLD" ];then
MUTESTATUS_OLD="$MUTESTATUS_NOW"
if [ "$MUTESTATUS_NOW" = "[off]" ]; then
cp /usr/share/retrovol/images/audio-volume-muted.png /tmp/sgr.$USER/mutestatus.png
else
cp /usr/share/retrovol/images/audio-volume-high.png /tmp/sgr.$USER/mutestatus.png
fi
fi
done
Code: Select all
. $HOME/.config/simplegtkradio/options
# mochi
[ ! -f /tmp/sgr.$USER/mutestatus.png ] && cp /usr/share/retrovol/images/audio-volume-high.png /tmp/sgr.$USER/mutestatus.png
I just replaced the S with the symbol character ♫ . Works for me but it's probably not bulletproof. Who knows which weird font a user is usingOh, and I like the note icon for menu, how do you put it on menu,
Thanks, dragging to zero works for me though, it shows muted retrovol icon when on 0
One click mute would be still usefull though.
One click mute would be still usefull though.
puppy.b0x.me stuff mirrored [url=https://drive.google.com/open?id=0B_Mb589v0iCXNnhSZWRwd3R2UWs]HERE[/url] or [url=http://archive.org/details/Puppy_Linux_puppy.b0x.me_mirror]HERE[/url]
OK, so let's keep it modular and customizable
Added options to choose which toolbars are shown, also save function added, see first post for details.
Added options to choose which toolbars are shown, also save function added, see first post for details.
puppy.b0x.me stuff mirrored [url=https://drive.google.com/open?id=0B_Mb589v0iCXNnhSZWRwd3R2UWs]HERE[/url] or [url=http://archive.org/details/Puppy_Linux_puppy.b0x.me_mirror]HERE[/url]
- MochiMoppel
- Posts: 2084
- Joined: Wed 26 Jan 2011, 09:06
- Location: Japan
Yes, it shows the muted icon and tooltip says 0%, but sound is still on at -46.50dB - that seems to be the threshold were scale starts. Tested in Precise 5.6 and Slacko 5.6.dejan555 wrote: dragging to zero works for me though, it shows muted retrovol icon when on 0
Nice improvements in 0.1.15 ! You should drop "Simple" from the name
Here are a few Australian stations, there are more, may be later I'll post them, there has to be and easier way to list these.
Code: Select all
http://abc.net.au/res/streaming/audio/aac/news_radio.pls #ABC Newsradio
http://abc.net.au/res/streaming/audio/aac/radio_national.pls #ABC Radio National
http://www.abc.net.au/res/streaming/audio/aac/triplej.pls #ABC TripleJ
http://abc.net.au/res/streaming/audio/aac/classic_fm.pls #ABC Classic FM
http://shoutmedia.abc.net.au:10370/listen.pls #ABC Radio Australia Overseas service (English for Asia)
http://shoutmedia.abc.net.au:10342/listen.pls #ABC Radio Australia Overseas service (English for Pacific)
http://abc.net.au/res/streaming/audio/aac/dig_music.pls #ABC Dig Music
http://abc.net.au/res/streaming/audio/aac/abc_jazz.pls #ABC Jazz
http://abc.net.au/res/streaming/audio/aac/abc_country.pls #ABC Country
http://sc.buddharadio.com/listen.pls #Buddha Radio (Chill-out music)
http://player.arn.com.au/alternate/edgedigital.m3u #Edge Digital (RnB/HipHop)
http://livesh.koffee.com.au:15004/listen.pls #Koffee (Easy Listening)
http://player.arn.com.au/alternate/mix80s.m3u #Mix 80s
http://player.arn.com.au/alternate/mix90s.pls #Mix 90s
http://117.53.175.113:15002/listen.pls #Novanation (Dance)
http://sc.radarradio.com.au/listen.pls #Radar Radio (Undiscovered Music)
http://abc.net.au/res/streaming/audio/aac/local_canberra.pls #666 ABC Canberra (News/Local programming)
http://s2.viastreaming.net:6165/listen.pls #1WAY FM (Christian music and talk)
http://artsoundfm.infinite.net.au:8000/aac.m3u #ArtSound FM (Community radio)
http://abc.net.au/res/streaming/audio/aac/local_sydney.pls #702 ABC Sydney (News/Local programming)
http://abc.net.au/res/streaming/audio/aac/local_newcastle.pls #1233 ABC Newcastle (News/Local programming)
http://provisioning.streamtheworld.com/pls/ACE_2AYAAC.pls #2AY (News/Talk/Oldies)
http://sc.2dayfm.com.au/listen.pls #2Day FM (Top 40)
http://sc.syd.triplem.com.au/listen.pls #2MMM - Triple M (Top 40/Rock)
http://s2.viastreaming.net:7100/listen.pls #2SM (News/Talk)
http://www.radio889.org.au/media/listen2.m3u #88.9 FM Richmond Valley Radio (Community radio)
http://www.thebreeze.com.au/media/breeze_reg_nsw.pls #Breeze FM (Easy Listening)
http://player.arn.com.au/alternate/961.pls #The Edge 96.1 (Top 40)
http://myradiostream.com/10/12134.pls #FM 107.5 (Community radio)
http://s9.viastreaming.net:7330/listen.pls #Gorilla Super Digi (Dance)
http://streaming.softcast.com.au:8004/listen.pls #Hawkesbury Radio (Community radio)
http://player.arn.com.au/alternate/mix1065.pls #Mix 106.5 (Adult Contemporary)
http://117.53.175.113:15014/listen.pls #Nova 96.9 (Active Hits)
http://www.941.com.au/playlist.pls #Pulse 94.1 (Christian Contemporary)
http://stream.rawfm.com.au:8006/listen.pls #Raw FM (Dance)
http://s9.viastreaming.net:7680/listen.pls #Rhema FM (Christian)
http://117.53.175.113:15020/listen.pls #Smooth 95.3 (Adult contemporary)
http://117.53.175.113:15016/listen.pls #Star 104.5 (Rock Adult Contemporary)
http://media.on.net/radio/190.m3u #Tank FM (Community radio)
http://player.arn.com.au/alternate/wsfm.pls #101.7 WS-FM (Classic Hits)
http://s4.viastreaming.net:9005/listen.pls #Zoo (Smooth rock)
http://abc.net.au/res/streaming/audio/aac/local_darwin.pls #105.7 ABC Darwin (News/Local programming)
http://radio.ards.com.au:8098/listen.pls #Yolngu Radio (Aboriginal station)
http://abc.net.au/res/streaming/audio/aac/local_brisbane.pls #612 ABC Brisbane (News/Local programming)
http://abc.net.au/res/streaming/audio/aac/local_goldcoast.pls #ABC Coast FM (News/Local programming)
http://s7.viastreaming.net:8175/listen.pls #4CA Cairns(News,Talk,Oldies)
http://player.arn.com.au/alternate/4kq.pls #4KQ Brisbane(Classic Hits)
http://s7.viastreaming.net:8155/listen.pls #4MK Mackay(News,Talk,Oldies)
http://sc.bne.triplem.com.au/listen.pls #4MMM - Triple M Brisbane(Top 40/Rock)
http://s7.viastreaming.net:8150/listen.pls #4RO Rockhampton(News,Talk,Oldies)
http://streaming.the80s.com.au:8028/listen.pls #80s - the80s.com.au (80s Pop/rock)
http://player.arn.com.au/alternate/973fm.pls #97.3FM Brisbane(Adult Contemporary)
http://s7.viastreaming.net:8305/listen.pls #98.9FM Brisbane(Country/Indigenous music)
http://sc.b105.com.au/listen.pls #B105 Brisbane(Top 40)
http://www.thebreeze.com.au/media/breeze_gc_logan.pls #The Breeze South Brisbane(Adult Contemporary)
http://s4.viastreaming.net:8765/listen.pls #Hot Tomato Gold Coast(Top 40)
http://203.45.82.40:8000/my105fmAAC.m3u #My 105 Mackay(Country n' Classics/Aboriginal)
http://117.53.175.113:15008/listen.pls #Nova 106.9 Brisbane(Active Hits)
http://69.59.178.124:8810/listen.pls #Rebel FM Logan(Rock)
http://switch.fm/aacplus.m3u #Switch 1197 Brisbane(Top 40/Dance)
http://ic2253.c1031.fast-serv.com/stream.m3u #Voice of Australian Chinese Brisbane(Chinese programming)
http://abc.net.au/res/streaming/audio/aac/local_adelaide.pls #891 ABC Adelaide (News/Local programming)
http://117.53.175.113:15000/listen.pls #5AA Adelaide(News/Talk)
Last edited by Geoffrey on Sat 01 Feb 2014, 00:05, edited 1 time in total.
[b]Carolina:[/b] [url=http://smokey01.com/carolina/pages/recent-repo.html]Recent Repository Additions[/url]
[img]https://dl.dropboxusercontent.com/s/ahfade8q4def1lq/signbot.gif[/img]
[img]https://dl.dropboxusercontent.com/s/ahfade8q4def1lq/signbot.gif[/img]
Man, with all these features adding up I can't believe the amount of code when I open scripts now yet all in few KBs and so functional!MochiMoppel wrote:You should drop "Simple" from the name
@Geoffrey You mean easier to list them here on forums?
I guess you can just attach as .txt file
puppy.b0x.me stuff mirrored [url=https://drive.google.com/open?id=0B_Mb589v0iCXNnhSZWRwd3R2UWs]HERE[/url] or [url=http://archive.org/details/Puppy_Linux_puppy.b0x.me_mirror]HERE[/url]
Na, it's pain getting the links, all that cutting and pasting. I noticed some of those stations have bad formatting for the song list, lots of space in them.dejan555 wrote:Geoffrey You mean easier to list them here on forums?
I guess you can just attach as .txt file
[b]Carolina:[/b] [url=http://smokey01.com/carolina/pages/recent-repo.html]Recent Repository Additions[/url]
[img]https://dl.dropboxusercontent.com/s/ahfade8q4def1lq/signbot.gif[/img]
[img]https://dl.dropboxusercontent.com/s/ahfade8q4def1lq/signbot.gif[/img]
Did you get the big list of radiosure stations that I posted? Easy to use with search and you can then save the ones that are good in your own playlist with new save function.
I can also post them in one file, in next version there will be a script that downloads latest rs database and converts it into simple gtk radio format.
I can also post them in one file, in next version there will be a script that downloads latest rs database and converts it into simple gtk radio format.
puppy.b0x.me stuff mirrored [url=https://drive.google.com/open?id=0B_Mb589v0iCXNnhSZWRwd3R2UWs]HERE[/url] or [url=http://archive.org/details/Puppy_Linux_puppy.b0x.me_mirror]HERE[/url]
OK, I know I'm posting these versions very frequently but I think this will stay as is for some time.
See first post for changes.
See first post for changes.
puppy.b0x.me stuff mirrored [url=https://drive.google.com/open?id=0B_Mb589v0iCXNnhSZWRwd3R2UWs]HERE[/url] or [url=http://archive.org/details/Puppy_Linux_puppy.b0x.me_mirror]HERE[/url]
Polish language for Simple GTK Radio updated
- Attachments
-
- simplegtkradio-0.1.16PL.tar.gz
- simplegtkradioPL
- (2.6 KiB) Downloaded 407 times