Page 1 of 2

YRadio Internet Radio Player

Posted: Sat Mar 18, 2023 11:30 am
by fredx181

*** YRadio Internet Radio Player v1.8 ***

Updated 2024-05-19, version 1.8, download links below, changes:

  • volume slider modified / fixed i.e. will now remember the current volume setting, changed to vertical view and should work with Alsa and also with Pipewire / Pulseaudio ,
  • some changes in the yradio script that will better support YAD built with GTK3 (but still YAD GTK2 binary is included in the appimage and will be used)
    Thanks @Majestic for the input :thumbup:
    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Following up from "testing" thread (starting about YRadio Here) (previous version 1.6, see here: viewtopic.php?p=79345#p79345)
Small improvement in v1.7 is that when accidentally clicking "Load" twice or more (while busy searching) it only does load once. And the tray-icon has bigger size now, was too small, thanks @Sofiya .

Features:
● Direct online search from http://all.api.radio-browser.info/ by using "jq", see info here: viewtopic.php?p=76961#p76961 , no local database required (edit: contains more than 30000 stations !!!).
(search for name of radio-station, or select a country, e.g. Australia from dropdown list)
● Prefab Playlists (or call it 'Categories', drop-down box at the top), "Favorites" is the default.
● Create New (empty) Playlist
● Add/remove radio-station to/from a Playlist
● Save search results to a (new) Playlist.
● Rip a stream (required is "streamripper" installed)
● Help dialog (read it for some more info)

Requirements:
mpv or mplayer (note: old version of mplayer may not work well with some stream types, then mpv is recommended)
Can be chosen from right-click tray-icon menu > Select Player
Optional: streamripper

EDIT 2024-05-19: V1.8 Appimages:
Packed as an Appimage, yad and jq are included, download to some location, make it executable and run it from there by just clicking on it, or run from terminal, e.g: ./YRadio-1.8_64
64-bit: YRadio-1.8_64 appimage:
https://dl.dropboxusercontent.com/scl/f ... 75dj0&dl=1
32-bit: YRadio-1.8_32 appimage:
https://dl.dropboxusercontent.com/scl/f ... jv3tr&dl=1

Screenshot: (shows v1.6, but doesn't matter as v1.8 looks the same)

2023-01-23_16-22-29.png
2023-01-23_16-22-29.png (160.32 KiB) Viewed 1669 times

Re: YRadio Internet Radio Player

Posted: Sat Mar 18, 2023 12:09 pm
by fredx181

--- reserved ---


Re: YRadio Internet Radio Player

Posted: Sat Mar 18, 2023 1:55 pm
by keniv

@fredx181
Downloaded and installed v1.7. Listening to it now.

Packed as an Appimage, yad and jq are included, download to some location, make it executable and run it from there by just clicking on it, or run from terminal, e.g:

Am using this as a "portable" as with v1.6. In v1.5 I had to make a directory called Yradio-1.5.home for it to function. I did similar with v1.6 but I'm beginning to wonder if it was necessary. Based on the above instructions can I assume it's not necessary in v1.7.

Regards,

Ken.


Re: YRadio Internet Radio Player

Posted: Sat Mar 18, 2023 3:58 pm
by fredx181
keniv wrote: Sat Mar 18, 2023 1:55 pm

@fredx181
Downloaded and installed v1.7. Listening to it now.

Packed as an Appimage, yad and jq are included, download to some location, make it executable and run it from there by just clicking on it, or run from terminal, e.g:

Am using this as a "portable" as with v1.6. In v1.5 I had to make a directory called Yradio-1.5.home for it to function. I did similar with v1.6 but I'm beginning to wonder if it was necessary. Based on the above instructions can I assume it's not necessary in v1.7.

Regards,

Ken.

Hi Ken. Well, you don't have to, it's just an option to create a .home directory next to the appimage (for v1.7 it would be e.g. "YRadio-1.7_64.home" (64-bit)), if that dir is there, it will contain the config files.
(in YRadio-1.7_64.home/.yradio (hidden folder) , so then it's true portability, I'd say, e.g when running from another distro, your settings, e.g. new created Playlists or changed Playlists or player choice, are preserved).

But if you don't create that directory, the configuration dir. will be: /root/.yradio (hidden folder), not true portability between distro's.
EDIT: Many other appimages have that sort of ".home" property too, btw.


Re: YRadio Internet Radio Player

Posted: Sat Mar 18, 2023 4:50 pm
by keniv

@fredx181
Thanks for reply and the information therein. I have now made a .home directory as I do want it to function as v1.5. As you can probably tell I don't have much experience of app images. Yradio is one of my favourite apps. I tend to use the BBC stuff mostly but it's great to have such a wide choice. Thanks again for this.

Ken.


Re: YRadio Internet Radio Player

Posted: Wed Jan 03, 2024 5:19 pm
by m1k3

This works great and is exactly what I was looking for! Thanks for making it.

I may be missing it but is there a way to make it minimize to the tray?


Re: YRadio Internet Radio Player

Posted: Tue Apr 23, 2024 2:41 pm
by rockedge

@fredx181 Love the program use it everyday.

One problem I have though is if I squeeze the window (as I do often) and expand it again, the search bar and playlist selector are not present.

Screenshot_2024-04-23_10-37-56.jpg
Screenshot_2024-04-23_10-37-56.jpg (61.64 KiB) Viewed 1050 times

here is how I have it on the screen while listening ->

Screenshot_2024-04-23_10-38-33.jpg
Screenshot_2024-04-23_10-38-33.jpg (14.92 KiB) Viewed 1050 times

and then expanded again with no controls ->

Screenshot_2024-04-23_10-38-50.jpg
Screenshot_2024-04-23_10-38-50.jpg (45.94 KiB) Viewed 1050 times

Re: YRadio Internet Radio Player

Posted: Tue Apr 23, 2024 7:36 pm
by fredx181
rockedge wrote: Tue Apr 23, 2024 2:41 pm

@fredx181 Love the program use it everyday.

One problem I have though is if I squeeze the window (as I do often) and expand it again, the search bar and playlist selector are not present.
Screenshot_2024-04-23_10-37-56.jpg

here is how I have it on the screen while listening ->

Screenshot_2024-04-23_10-38-33.jpg

and then expanded again with no controls ->

Screenshot_2024-04-23_10-38-50.jpg

I don't think that can be fixed (at least I have no idea how, perhaps it's a yad thingy, but may be wrong), I assume this is for you with yad GTK3 (on KLV) you run yradio ?
(edit: the appimage that I shared here has GTK2 yad included, works different, you can't drag to to the same minimal size, but dragging back to original size with top display works ok)
The top display can be 'dragged' back (by putting the mouse pointer on the line above the list, but it requires absolute (absurd) precision, so very inconvenient.
Did a little investigating and found that it helps a bit when trying with another cursor theme (installed the "breeze" cursor theme on KLV (and after some practicing ;) ) :

Virtuoso dragging !!
Virtuoso dragging !!
Screenshot.gif (460.69 KiB) Viewed 1005 times

Re: YRadio Internet Radio Player

Posted: Tue Apr 23, 2024 7:50 pm
by Sofiya

In KLA-HyprlandCE :thumbup:
Thank you @ fredx181
The only pop-up notification here is a nuisance. It opens like a window.


Re: YRadio Internet Radio Player

Posted: Tue Apr 23, 2024 7:58 pm
by fredx181
Sofiya wrote: Tue Apr 23, 2024 7:50 pm

In KLA-HyprlandCE :thumbup:
Thank you @ fredx181
The only pop-up notification here is a nuisance. It opens like a window.

You mean the notification where it shows artist- title ? (can't see at your screenshot, edit: oh see now at the top left, what's wrong ?).


Re: YRadio Internet Radio Player

Posted: Tue Apr 23, 2024 8:06 pm
by Sofiya
fredx181 wrote: Tue Apr 23, 2024 7:58 pm
Sofiya wrote: Tue Apr 23, 2024 7:50 pm

In KLA-HyprlandCE :thumbup:
Thank you @ fredx181
The only pop-up notification here is a nuisance. It opens like a window.

You mean the notification where it shows artist- title ? (can't see at your screenshot, edit: oh see now at the top left, what's wrong ?).

You mean the notification where it shows artist- title ?

Yes
there are 2 notifications when I select a station and after when the song changes
everything would be fine, but when you work in another area of the desktop let's put it in 2, and the radio is on 1, these notifications pop up in the area where I am.
in area 2

if you remove these notifications everything will be great for Hyprland


Re: YRadio Internet Radio Player

Posted: Tue Apr 23, 2024 8:35 pm
by Sofiya

Yes, and “alsa-utils” is necessary??, I use pipewire
I click ok and everything plays for me without “alsa-utils”


Re: YRadio Internet Radio Player

Posted: Tue Apr 23, 2024 8:37 pm
by rockedge

if you remove these notifications everything will be great for Hyprland

is it possible to add a configuration option for enable/disable notifications?


Re: YRadio Internet Radio Player

Posted: Wed Apr 24, 2024 10:53 am
by fredx181

@Sofiya I will look into the things you mentioned, test on hypr, in the next days.


Re: YRadio Internet Radio Player

Posted: Wed Apr 24, 2024 12:08 pm
by fredx181

@Sofiya Didn't test on hyprland yet, but found that disabling the notifications is very easy, just comment out line 940 (this is on v1.6):

2024-04-24_14-00-21.png
2024-04-24_14-00-21.png (29.16 KiB) Viewed 865 times

Still when you left-click on the icon in systray, the notification will display.
Would that be OK for you that way ?
(will look into the volume issue later, probably easy too change too by using pactl (instead of amixer) for checking the volume level).


Re: YRadio Internet Radio Player

Posted: Wed Apr 24, 2024 12:24 pm
by Sofiya
fredx181 wrote: Wed Apr 24, 2024 12:08 pm

@Sofiya Didn't test on hyprland yet, but found that disabling the notifications is very easy, just comment out line 940 (this is on v1.6):
2024-04-24_14-00-21.png
Still when you left-click on the icon in systray, the notification will display.
Would that be OK for you that way ?
(will look into the volume issue later, probably easy too change too by using pactl (instead of amixer) for checking the volume level).

yes, that would be fine
the volume doesn't bother me
There is no tray icon on Hyprland I do not know why


Re: YRadio Internet Radio Player

Posted: Wed Apr 24, 2024 4:24 pm
by fredx181
Sofiya wrote: Wed Apr 24, 2024 12:24 pm
fredx181 wrote: Wed Apr 24, 2024 12:08 pm

@Sofiya Didn't test on hyprland yet, but found that disabling the notifications is very easy, just comment out line 940 (this is on v1.6):
2024-04-24_14-00-21.png
Still when you left-click on the icon in systray, the notification will display.
Would that be OK for you that way ?
(will look into the volume issue later, probably easy too change too by using pactl (instead of amixer) for checking the volume level).

yes, that would be fine
the volume doesn't bother me
There is no tray icon on Hyprland I do not know why

Ah, ok, did some more investigating on the volume issue and turns out it's not as easy as I thought to fix it (without having amixer (alsa-utils) installed).
So, assuming that you make the change yourself in yradio to disable the notifications for hyprland, I think it's fine now.


Re: YRadio Internet Radio Player

Posted: Wed Apr 24, 2024 4:41 pm
by Sofiya
fredx181 wrote: Wed Apr 24, 2024 4:24 pm
Sofiya wrote: Wed Apr 24, 2024 12:24 pm
fredx181 wrote: Wed Apr 24, 2024 12:08 pm

@Sofiya Didn't test on hyprland yet, but found that disabling the notifications is very easy, just comment out line 940 (this is on v1.6):
2024-04-24_14-00-21.png
Still when you left-click on the icon in systray, the notification will display.
Would that be OK for you that way ?
(will look into the volume issue later, probably easy too change too by using pactl (instead of amixer) for checking the volume level).

yes, that would be fine
the volume doesn't bother me
There is no tray icon on Hyprland I do not know why

Ah, ok, did some more investigating on the volume issue and turns out it's not as easy as I thought to fix it (without having amixer (alsa-utils) installed).
So, assuming that you make the change yourself in yradio to disable the notifications for hyprland, I think it's fine now.

yes now notifications don’t interfere, everything works

Thank you ! @fredx181


Re: YRadio Internet Radio Player

Posted: Wed Apr 24, 2024 6:38 pm
by rockedge

@fredx181 I found out I was using YRadio-1.5 so now I am using the v1.7 appimage on KLV-Airedale-RT with the full real time kernel 6.6.0-rt15.

version 1.7 will not allow shrinking the GUI window past the bottom border of the control fields and the controls section is size adjustable!

Screenshot_2024-04-24_14-33-17.png
Screenshot_2024-04-24_14-33-17.png (359.79 KiB) Viewed 807 times

Re: YRadio Internet Radio Player

Posted: Wed Apr 24, 2024 6:57 pm
by fredx181
rockedge wrote: Wed Apr 24, 2024 6:38 pm

@fredx181 I found out I was using YRadio-1.5 so now I am using the v1.7 appimage on KLV-Airedale-RT with the full real time kernel 6.6.0-rt15.

version 1.7 will not allow shrinking the GUI window past the bottom border of the control fields and the controls section is size adjustable!
Screenshot_2024-04-24_14-33-17.png

General life lesson ? ; "You can't have it all" :D

Thanks everyone for the feedback !


Re: YRadio Internet Radio Player

Posted: Wed Apr 24, 2024 8:16 pm
by Sofiya

YRadio-1.7-x86_64.AppImage - for HyprlandCE
No pop-up notifications

64-bit: YRadio-1.7-x86_64.AppImage:
https://gitlab.com/sofija.p2018/kla-ot2 ... 4.AppImage


Re: YRadio Internet Radio Player

Posted: Fri Apr 26, 2024 1:15 am
by geo_c
Sofiya wrote: Wed Apr 24, 2024 8:16 pm

YRadio-1.7-x86_64.AppImage - for HyprlandCE
No pop-up notifications ]

Did you have to install alsa-utilils? That's one of the things I always install. Lot's of alsa stuff even when using pipewire.


Re: YRadio Internet Radio Player

Posted: Fri Apr 26, 2024 2:07 am
by Sofiya
geo_c wrote: Fri Apr 26, 2024 1:15 am
Sofiya wrote: Wed Apr 24, 2024 8:16 pm

YRadio-1.7-x86_64.AppImage - for HyprlandCE
No pop-up notifications ]

Did you have to install alsa-utilils? That's one of the things I always install. Lot's of alsa stuff even when using pipewire.

No ;)


Re: YRadio Internet Radio Player

Posted: Fri Apr 26, 2024 8:45 am
by bugnaw333

It runs in QV. :thumbup2:


Re: YRadio Internet Radio Player

Posted: Thu May 16, 2024 1:07 pm
by Majestic

With Yad GTK3, the "Load" button only works once. maybe someone can fix this.
Image


Re: YRadio Internet Radio Player

Posted: Thu May 16, 2024 2:04 pm
by fredx181
Majestic wrote: Thu May 16, 2024 1:07 pm

With Yad GTK3, the "Load" button only works once. maybe someone can fix this.
...

Are you running the appimage shared at first post ? Or... what you run exactly ? And on which distro ?
The appimage makes use of Yad GTK2 (as included in the appimage) and no such problem with that.


Re: YRadio Internet Radio Player

Posted: Fri May 17, 2024 10:29 am
by Majestic
fredx181 wrote: Thu May 16, 2024 2:04 pm
Majestic wrote: Thu May 16, 2024 1:07 pm

With Yad GTK3, the "Load" button only works once. maybe someone can fix this.
...

Are you running the appimage shared at first post ? Or... what you run exactly ? And on which distro ?
The appimage makes use of Yad GTK2 (as included in the appimage) and no such problem with that.

Hi fredx181, great program, I love the tiny software! I've given up on GTK2 and don't really like appimage. Slackware system.
I am studying YAD in your programs, Thank you!
It's strange, but in version 1.6 this problem does not occur in Gtk3. I fiddled around a bit and now the volume control shows the current volume.
Interestingly, it is possible to integrate the volume control into the main window so that it is always visible?
Image
yradio.tar.xz
https://dropmefiles.com/wWDuL


Re: YRadio Internet Radio Player

Posted: Fri May 17, 2024 6:13 pm
by fredx181
Majestic wrote: Fri May 17, 2024 10:29 am
fredx181 wrote: Thu May 16, 2024 2:04 pm
Majestic wrote: Thu May 16, 2024 1:07 pm

With Yad GTK3, the "Load" button only works once. maybe someone can fix this.
...

Are you running the appimage shared at first post ? Or... what you run exactly ? And on which distro ?
The appimage makes use of Yad GTK2 (as included in the appimage) and no such problem with that.

Hi fredx181, great program, I love the tiny software! I've given up on GTK2 and don't really like appimage. Slackware system.
I am studying YAD in your programs, Thank you!
It's strange, but in version 1.6 this problem does not occur in Gtk3. I fiddled around a bit and now the volume control shows the current volume.
Interestingly, it is possible to integrate the volume control into the main window so that it is always visible?
...
yradio.tar.xz
https://dropmefiles.com/wWDuL

Thanks ! I will look into it.
I was already planning on a v1.8 with fix for the volume slider, and then also support systems with pipewire and/or pulseaudio (besides only alsa)
I like the vertical volume slider btw, really don't know if and/or how it can be integrated in the main window.
One of the reasons I made this an appimage is that different yad versions often behave very different, specially with this "paned" GUI, so I thought best to include yad v0.40 (GTK2).

Didn't test with GTK3 now, but I think what will fix the problem you have on v1.7 with the Load button, is to comment out echo "6:@disabled@" at the top of function load_list, so becomes:

Code: Select all

function load_list
{
# echo "6:@disabled@"
...

EDIT;
With yad GTK2 uncommented it works to prevent loading again if you click Load twice while busy searching (as discussed earlier in this thread edit: no, here: viewtopic.php?p=79452#p79452).
v1.6 has echo "6:@disable@" , (without last "d" ) that is the difference AFAIK


Re: YRadio Internet Radio Player

Posted: Fri May 17, 2024 7:58 pm
by Majestic

{

Thanks ! I will look into it.
I was already planning on a v1.8 with fix for the volume slider, and then also support systems with pipewire and/or pulseaudio (besides only alsa)
I like the vertical volume slider btw, really don't know if and/or how it can be integrated in the main window.
One of the reasons I made this an appimage is that different yad versions often behave very different, specially with this "paned" GUI, so I thought best to include yad v0.40 (GTK2).

Didn't test with GTK3 now, but I think what will fix the problem you have on v1.7 with the Load button, is to comment out echo "6:@disabled@" at the top of function load_list, so becomes:

Code: Select all

function load_list
# echo "6:@disabled@"
...

EDIT;
With yad GTK2 uncommented it works to prevent loading again if you click Load twice while busy searching (as discussed earlier in this thread edit: no, here: viewtopic.php?p=79452#p79452).
v1.6 has echo "6:@disable@" , (without last "d" ) that is the difference AFAIK

Great! In version 1.7 # echo "6:@disabled@" works in GTK3! There is a small problem in GTK3 that can be solved by commenting out the line "--orient=vert --splitter=125" or changing the value to 185. I use pipewire, amixer works well with it.

Image


Re: YRadio Internet Radio Player

Posted: Fri May 17, 2024 8:33 pm
by fredx181
Majestic wrote:

There is a small problem in GTK3 that can be solved by commenting out the line "--orient=vert --splitter=125" or changing the value to 185. I use pipewire, amixer works well with it.

Yes, looks weird when using yad GTK3.
Can you try this one ? (changed some for the GUI to work with GTK3 yad and added your volume mod (should work with pipewire even when you don't have amixer. edit: needs pactl though)

yradio.gz
Remove fake .gz extension and make executable
(39.49 KiB) Downloaded 9 times