DogRadio and YRadio
Hi Darry, I tested by installing your dogradio 0.0.8 tazpkg on tazpup alpha 13 now, indeed no connection to any radio station.
But can be easily fixed by installing (full) grep from the package manager, then it works again as before.
The grep in tazpup is symlink to busybox and has its limitations, maybe a point for discussion in the Tazpup thread ? (I'd say better have the full grep included)
EDIT: No idea btw, why dogradio worked in the earlier alpha versions, which grep?)
Fred
But can be easily fixed by installing (full) grep from the package manager, then it works again as before.
The grep in tazpup is symlink to busybox and has its limitations, maybe a point for discussion in the Tazpup thread ? (I'd say better have the full grep included)
EDIT: No idea btw, why dogradio worked in the earlier alpha versions, which grep?)
Fred
-
- Posts: 721
- Joined: Sat 31 Mar 2018, 08:01
- Location: Rakaia
- Contact:
-
- Posts: 721
- Joined: Sat 31 Mar 2018, 08:01
- Location: Rakaia
- Contact:
Here is YRadio with suggested fixes to prevent window proliferation
- Attachments
-
- yradio.gz
- fake .gz re-uploaded after adding flags to on-exit
- (28.03 KiB) Downloaded 274 times
-
- 2018-07-18-081814_782x624_scrot.png
- (81.54 KiB) Downloaded 605 times
Thanks stemsee !
I commited the fixes to prevent window proliferation, but not the top pane text and image, however you intent well, I like to keep the top pane as small as possible.
@all
Download new version including these fixes:
https://github.com/fredx181/yradio/archive/master.zip
Fred
I commited the fixes to prevent window proliferation, but not the top pane text and image, however you intent well, I like to keep the top pane as small as possible.
@all
Download new version including these fixes:
https://github.com/fredx181/yradio/archive/master.zip
Fred
Hi Fred
Regarding the top pane I have a hi-res laptop so plenty of room to spare. The top pane is the yad --paned frame which is the third of 3 yad panels the other two being swallowed .... I realised after reviewing your script that the buttons were part of the third pane ... I was slow to realise that features can be added to top (frameing) pane 'yad --paned', then I was experimenting to see how many features I could get going on the frame pane! I couldn't get <span> text</span> to work. Nor any entry boxes.
But I am learning from the mechanisms involvedin this gui ... very interesting to me!
cheers
stemsee
Regarding the top pane I have a hi-res laptop so plenty of room to spare. The top pane is the yad --paned frame which is the third of 3 yad panels the other two being swallowed .... I realised after reviewing your script that the buttons were part of the third pane ... I was slow to realise that features can be added to top (frameing) pane 'yad --paned', then I was experimenting to see how many features I could get going on the frame pane! I couldn't get <span> text</span> to work. Nor any entry boxes.
But I am learning from the mechanisms involvedin this gui ... very interesting to me!
cheers
stemsee
*** DogRadio and YRadio updated ***
Major change for DogRadio and YRadio:
New database source, still named "playlist.RadioSure" (for compatibility), but the RadioSure server seems to be down permanently so now using custom database I've put together taken from https://www.internet-radio.com/ combined with the older RadioSure database (filtered out most non-playable stations).
Contains more than 30000 stations !
I'll try to update the Index Database once in a while.
(check for update by clicking 'Update Index' button (for DogRadio will download to ~/.dogradio/playlist/playlist.RadioSure or for YRadio: ~/.yradio/playlist/playlist.RadioSure) )
Other changes DogRadio v 0.0.9:
- Now only search by 'Name and Genre'.
- Updated launchers on main GUI that (previously) were not able to connect.
- Updated all (preset) category playlists.
Other changes YRadio v 0.0.7:
- Major bug fixed (with previous commit I made a big mistake, the program didn't work anymore because of that)
- Updated all (preset) category playlists.
- Ability to add custom station (new button 'Add custom').
Download:
DogRadio v0.0.9, (see also first post): EDIT: v 0.0.9-1 doesn't require "coreutils"
https://dl.dropboxusercontent.com/s/dju ... l.pet?dl=1
For Yradio, see attached .pet package (also attached .pet packages for yad, YRadio requires yad version 0.36 or higher)
Or: Download "portable" version:
https://github.com/fredx181/yradio/archive/master.zip
(extract and run yradio inside 'yradio-master' folder)
More info e.g. about YRadio requirements Here
EDIT: Package "coreutils" is also required, see next post. EDIT: Not anymore for YRadio v 0.0.7-1
Fred
Major change for DogRadio and YRadio:
New database source, still named "playlist.RadioSure" (for compatibility), but the RadioSure server seems to be down permanently so now using custom database I've put together taken from https://www.internet-radio.com/ combined with the older RadioSure database (filtered out most non-playable stations).
Contains more than 30000 stations !
I'll try to update the Index Database once in a while.
(check for update by clicking 'Update Index' button (for DogRadio will download to ~/.dogradio/playlist/playlist.RadioSure or for YRadio: ~/.yradio/playlist/playlist.RadioSure) )
Other changes DogRadio v 0.0.9:
- Now only search by 'Name and Genre'.
- Updated launchers on main GUI that (previously) were not able to connect.
- Updated all (preset) category playlists.
Other changes YRadio v 0.0.7:
- Major bug fixed (with previous commit I made a big mistake, the program didn't work anymore because of that)
- Updated all (preset) category playlists.
- Ability to add custom station (new button 'Add custom').
Download:
DogRadio v0.0.9, (see also first post): EDIT: v 0.0.9-1 doesn't require "coreutils"
https://dl.dropboxusercontent.com/s/dju ... l.pet?dl=1
For Yradio, see attached .pet package (also attached .pet packages for yad, YRadio requires yad version 0.36 or higher)
Or: Download "portable" version:
https://github.com/fredx181/yradio/archive/master.zip
(extract and run yradio inside 'yradio-master' folder)
More info e.g. about YRadio requirements Here
EDIT: Package "coreutils" is also required, see next post. EDIT: Not anymore for YRadio v 0.0.7-1
Fred
- Attachments
-
- yradio-0.0.7-1_all.pet
- YRadio .pet package noarch, does NOT depend on "coreutils (updated 2019-01-04)
- (242.64 KiB) Downloaded 262 times
-
- yad-0.40.0-i686.pet
- yad v 0.40 for 32-bit
- (70.82 KiB) Downloaded 249 times
-
- yad-0.40-amd64.pet
- yad v 0.40 for 64-bit
- (74.3 KiB) Downloaded 237 times
Last edited by fredx181 on Fri 04 Jan 2019, 12:12, edited 4 times in total.
I tested more thoroughly on some Puppies and found that package "coreutils" is also required.
Install from PPM (even when it says "Already Installed", just re-install then)
To test if it's required do in terminal (if it shows that it's a symlink to busybox, then it depends on it)):
EDIT: Made a small change so doesn't depend on "coreutils" anymore, see EDIT above
Fred
Install from PPM (even when it says "Already Installed", just re-install then)
To test if it's required do in terminal (if it shows that it's a symlink to busybox, then it depends on it)):
Code: Select all
ls -l /usr/bin/tr
Fred
Last edited by fredx181 on Fri 04 Jan 2019, 11:40, edited 1 time in total.
Good work, Fred!
Thanks for this. Any possibility for option of ffplay instead of mplayer?
Since ffplay exists in all Puppies ex-factory, it may be more convenient
for some users.
Based on something like this, perhaps?I tried it and the sound is very good. Just a thought.
And I thnk it is not too late in the year to wish you a
Happy and Prosperous 2018!
TWYL.
Thanks for this. Any possibility for option of ffplay instead of mplayer?
Since ffplay exists in all Puppies ex-factory, it may be more convenient
for some users.
Based on something like this, perhaps?
Code: Select all
ffplay -nodisp -loglevel info -hide_banner -loop 0 -i $1
And I thnk it is not too late in the year to wish you a
Happy and Prosperous 2018!
TWYL.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
Good point, Fred.
I think the endings *.pls, *.m3u, etc., are just cosmetic in the case of
some Internet radios. On some apparently bad connections (some, not
all), I dropped this ending off the URL, and I could hear the music.
It wuld be something, wouldn't it?, if we got Internet juice out of ffplay,
because it's in our Pups and Dogs already.
BFN.
I think the endings *.pls, *.m3u, etc., are just cosmetic in the case of
some Internet radios. On some apparently bad connections (some, not
all), I dropped this ending off the URL, and I could hear the music.
It wuld be something, wouldn't it?, if we got Internet juice out of ffplay,
because it's in our Pups and Dogs already.
BFN.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
*** DogRadio and YRadio update ***
See Here for updated download link , attachments and info.
Now doesn't depend on the full "coreutils" anymore (I wasn't very happy with that, so made some small changes).
@Musher
Fred
See Here for updated download link , attachments and info.
Now doesn't depend on the full "coreutils" anymore (I wasn't very happy with that, so made some small changes).
@Musher
Thanks anyway, but I'll stick with mplayer, even if possible it will be very complicated to replace mplayer with ffplay in my scripts,e.g. from yradio script (several playlist types should be supported):
Code: Select all
case "${URL##*.}" in
m3u|m3u8|pls|asx|ram|wax|asp|pls?id=*|pls?sid=*)
.....
.....
*** YRadio v0.0.8 ***
(attached .pet below)
The "only" change is that it works with ffmpeg instead of mplayer to play the radio streams.
For displaying the song titles, required is a newer ffmpeg (or avconv) version
(e.g. TahrPup has a too old ffmpeg, playing the stream works, but not showing the song titles)
On e.g. XenialPup or later puppies this should work OK.
Thanks again @musher0 for the hint, also thanks to @zigbert for the example code to use ffmpeg piped to aplay:
http://www.murga-linux.com/puppy/viewto ... 86#1014586
The Index database I did convert to not contain any "playlists" (e.g. extracted "real" url from any .m3u and .pls) so this way all should work with ffmpeg (which doesn;t support these playlists).
For yad .pet packages (required is v0.36 or higher)), see attachments here:
http://murga-linux.com/puppy/viewtopic. ... 12#1014512
Fred
(attached .pet below)
The "only" change is that it works with ffmpeg instead of mplayer to play the radio streams.
For displaying the song titles, required is a newer ffmpeg (or avconv) version
(e.g. TahrPup has a too old ffmpeg, playing the stream works, but not showing the song titles)
On e.g. XenialPup or later puppies this should work OK.
Thanks again @musher0 for the hint, also thanks to @zigbert for the example code to use ffmpeg piped to aplay:
http://www.murga-linux.com/puppy/viewto ... 86#1014586
The Index database I did convert to not contain any "playlists" (e.g. extracted "real" url from any .m3u and .pls) so this way all should work with ffmpeg (which doesn;t support these playlists).
For yad .pet packages (required is v0.36 or higher)), see attachments here:
http://murga-linux.com/puppy/viewtopic. ... 12#1014512
Fred
- Attachments
-
- yradio-0.0.8-0_all.pet
- YRadio v0.0.8, using ffmpeg piped to aplay to play the radio streams
- (250.67 KiB) Downloaded 352 times
- Mike Walsh
- Posts: 6351
- Joined: Sat 28 Jun 2014, 12:42
- Location: King's Lynn, UK.
Hallo, Fred.
This is a lovely bit of work, and no mistake. Your GUI design skills are definitely taking off, y'know.
I've been meaning to try this for an age; initially, I thought it was one of your 'Dog-only' utilities, so I didn't look too closely.....until last night. 0.0.9-1 is now in at least 4 out of 11 in the current kennels, with more on the way.
I have a 'Favourites' .pls playlist stream I can d/l from my RadioTunes a/c, which I usually play in DeaDBeeF. Looking closer at it, I realised it comprised a whole series of URLs, so had a go at adding some of these to DogRadio via the 'Custom' entry box. They work beautifully, mate..!
I'm keeping /root/.dogradio/data on a remote partition, and sym-linking it into each Pup. Means I get the same selection of channels no matter which I boot into for the day.....
[Click to enlarge]
My RadioTunes 'favourites', all present & correct..!
Thanks, mate.
Mike.
This is a lovely bit of work, and no mistake. Your GUI design skills are definitely taking off, y'know.
I've been meaning to try this for an age; initially, I thought it was one of your 'Dog-only' utilities, so I didn't look too closely.....until last night. 0.0.9-1 is now in at least 4 out of 11 in the current kennels, with more on the way.
I have a 'Favourites' .pls playlist stream I can d/l from my RadioTunes a/c, which I usually play in DeaDBeeF. Looking closer at it, I realised it comprised a whole series of URLs, so had a go at adding some of these to DogRadio via the 'Custom' entry box. They work beautifully, mate..!
I'm keeping /root/.dogradio/data on a remote partition, and sym-linking it into each Pup. Means I get the same selection of channels no matter which I boot into for the day.....
[Click to enlarge]
My RadioTunes 'favourites', all present & correct..!
Thanks, mate.
Mike.