DogRadio and YRadio

Browsers, email, chat, etc.
Message
Author
User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#21 Post by fredx181 »

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

darry19662018
Posts: 721
Joined: Sat 31 Mar 2018, 08:01
Location: Rakaia
Contact:

#22 Post by darry19662018 »

Thank you Fred always appreciate the time you give to answering questions.

I'll try that - awesome.

darry19662018
Posts: 721
Joined: Sat 31 Mar 2018, 08:01
Location: Rakaia
Contact:

#23 Post by darry19662018 »

Again many thanks Fred the full grep solves the issue installed from the package manager.

stemsee

#24 Post by stemsee »

Some functions on YRadio proliferate open windows; ie the buttons for 'info' 'rip stream' and 'volume', 'favourites', 'save search' (the last times-out). IMO they would be better if they toggled!

stemsee

#25 Post by stemsee »

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

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#26 Post by fredx181 »

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

stemsee

#27 Post by stemsee »

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

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#28 Post by fredx181 »

Hi stemsee, yeah, a lot can be learned, as I said earlier, I took most of the "paned" thing from the concept of Misko's "Poor Man's Radio Player" and from the yad "Frontend for find" example, indeed, a new interesting yad feature is this paned option.

Fred

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#29 Post by fredx181 »

*** 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 ! :roll: 8)
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 &quot;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.

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#30 Post by fredx181 »

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)):

Code: Select all

ls -l /usr/bin/tr
EDIT: Made a small change so doesn't depend on "coreutils" anymore, see EDIT above

Fred
Last edited by fredx181 on Fri 04 Jan 2019, 11:40, edited 1 time in total.

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#31 Post by musher0 »

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?

Code: Select all

ffplay -nodisp -loglevel info -hide_banner -loop 0 -i $1
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.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#32 Post by fredx181 »

Hey musher0, best wishes to you too !

From what I know ffplay doesn't support playlists, like .pls or .m3u.
Mplayer does (but needs using the -playlist option).
(the index database contains many url's pointing to such playlists)

Fred

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#33 Post by musher0 »

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.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#34 Post by musher0 »

Continuing this reflexion on ffplay for radio streams here.

See you there, hopefully.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#35 Post by fredx181 »

*** 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
musher0 wrote:Continuing this reflexion on ffplay for radio streams here.

See you there, hopefully.
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=*)
.....
.....
Fred

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#36 Post by musher0 »

No problem, FredX. It was just an idea!!!

BFN.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#37 Post by fredx181 »

*** 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
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

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#38 Post by musher0 »

You're welcome!
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
Mike Walsh
Posts: 6351
Joined: Sat 28 Jun 2014, 12:42
Location: King's Lynn, UK.

#39 Post by Mike Walsh »

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]


Image


My RadioTunes 'favourites', all present & correct..!

Thanks, mate.


Mike. :wink:

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#40 Post by fredx181 »

That's nice, glad it's useful for you.
Thanks for the positive report Mike !! :D

EDIT: I'd say better use the full .dogradio folder to symlink to, contains also configuration, playlists etc...
(although I'm not sure if all will work properly when symlinked)

Fred

Post Reply