Radio++

UUID: radio@driglu4it
Last edited:
1 day ago 2021-11-26, 10:18
Last commit: [d0a18122] [radio@driglu4it] update types (#4054)

A simple radio applet for Cinnamon

README

Close

Radio++

A simple radio applet for Cinnamon. The radio-applet has been totally rewritten for Cinnamon 4.6. All information below refers to this version. The old readme can be found here

Features

  • Radio Station search
  • The radio applet can be controlled (paused, sound increased/decreased) by programs with MPRIS control (e.g. the sound applet, kdeconnect or playerctl). Such programs also receive the title of the current playing song (e.g you can show the current playing song in the sound applet by activating the option "Show song information on the panel" in the sound applet).
  • All other running programs with sound output which have implemented the MPRIS interface (e.g. most Browsers, Spotify, ...) are automatically paused when starting a radio channel
  • A download dialog is opened when clicking on the applet for downloading the missing required dependencies (all except youtube-dl. See Dependencies section)
  • The current playing song title can be copied to the clipboard or even downloaded from Youtube
  • The volume can be controlled by using the mouse wheel while the cursor is placed on the icon in the panel. Also it is possible to toggle the play/pause status by middleclicking on the icon
  • The title of the radio channel can be shown in the panel
  • The icon color changes when a radio channel is playing

Dependencies

The mpv media player is used for playing the radio channel. As the mpv media player doesn't support MPRIS control out of the box, this plugin is used to get this feature. For the mpv player and the plugin, a download dialogue is opened when clicking on the applet.

TLDR Run this gist as sudo to install youtube-dl

youtube-dl is needed for the youtube-download feature. As google frequently makes technical changes to Youtube, it is highly recommended to always have the newest version of youtube-dl installed as otherwise the feature will most likely stop working after a short time. Unfortunately, the newest version in the official linux mint apt repository is usually not even close to sufficiently up to date. Therefore I highly recommend installing youtube-dl by following the official installation instructions. However as the mpv package already includes an outdated youtube-dl version, it first needs to be removed to prevent conflicts which may occur when different versions of youtube-dl are installed on your system. In order to automatically update youtube-dl, I furthermore recommend creating a script in /etc/cron.daily (which needs to be without extension). I have created a gist for this purpose.

Known Issues

  • Special characters (e.g German Umlaute) are not shown correctly on the sound applet (when the option "Show song information on the panel" is activated). This is a limitation of the mpv player. I haven't yet found a workaround for that. Ideas are welcome.
  • For some radio stations (e.g. BBC) the metadata can't be shown

Log In To Comment!

121 Comments

haad
haad-17 hours ago
Great app!
sdgrs546547Q
sdgrs546547Q-1 month ago
excellent extension!
cvdmint
cvdmint-2 months ago
Nice applet however on some Themes the popup comes half on the panel and does not popup above the panel, i tried to change it in the css but did not change , also it seems it does not have an animation. Do you have a solution ?
Jonathan Heard
Jonathan Heard-2 months ago
The popup Menu is a custom implementation and therefore indeed differs from other applets. The reason therefore is that the default implementation is a mess and thereforee difficult to extend. I have used the same css classes as the default implementation but some themes use crazy css selectors for styling which makes it for me really difficult to apply their style. But I haven't noticed the panel issue. Can you tell me which themes you are refering to? The animation is not yet implemented and I won't do it in the near future but I accept pull requests.
cvdmint
cvdmint-2 months ago
Its the cinnamox themes
Jonathan Heard
Jonathan Heard-2 months ago
The cinnamox themes adds a padding to the .menu css class which most other themes don't do. I think this is reasonable and therefore should be handled by the applet. I made a pr to fix it. I think there is still some very tiny overlapping but I am not sure. In the mean time you can remove the overlapping by commenting out the line 119 of the cinnamox theme.
cvdmint
cvdmint-2 months ago
Yes that works, thanks for the fast reply , its now my default radio app, i used shortwave but SW crashes to much.
Jonathan Heard
Jonathan Heard-2 months ago
Glad you like it. Feel free to click the like button on the page if you haven't already ;-).
Gobinath
Gobinath-2 months ago
How come I missed this applet these many years? Listening to radio is a different feel than listening to my own playlist and glad to find this applet. Great work @Jonathan Heard! Thank you so much.
vdbhb59
vdbhb59-2 months ago
Hello Mate, many of the Indian stations do not work. Example: http://prclive1.listenon.in:9932/; (Radio City Gujarati). How can I get it working? I do not have the URL with me though. Is there any guide where I can get the URLs from?
Jonathan Heard
Jonathan Heard-2 months ago
Hi, I have generated the stations from https://www.radio-browser.info/ a couple of months ago. Unfortunately I haven't yet found the time to implement something which automatically updates the station list. For now I have created a PR which updates the stations list manually. I have used this code: https://gist.github.com/jonath92/0fd6419a2cfecbbe2f6b6d790dc84298 for that. But unfortunately you example doesn't also work with the new list - it is not included in the list anymore but maybe it fixes some other Indian stations. For stations which are not listed on radio-browser.info I don't have an optimal solution. You need to find it somewhere else in the web (and optimally add it to radio-browser.info so that it also helps others).
Marek
Marek-3 months ago
Update: [Errno 13] No access 'pl.po'
Jonathan Heard
Jonathan Heard-3 months ago
Hi Marek, Unfortunately I don't understand what you mean. Do you get an error when using the applet? Can you explain in more detail when it happens so that I can reproduce it? Thanks
NicoBXL
NicoBXL-3 months ago
Hello, thank you very much for your great applet! I'd just like to suggest a new feature: the possibility to create folders to organize the radio stations.
Jonathan Heard
Jonathan Heard-3 months ago
Hi Nico, I am glad you like it (also feel free to press the like button on this site ;-)). I also have thought about something like this but it doesn't have a high priority for me. The highest priority on that project for me is currently to significantly improve the code. One problem in the code is that I don't have a good state management (which is my fault), for which I want to use Redux. Another really big problem for me, is that the settings are written in Python while the popupMenu is written in Typescript. This has imo hugh disadvantages as maintaining a two-language project is obviously more difficult than an one language project. But changing this to typescript is a lot of work. And I also would like to get rid of the mpris plugin. So I am currently not planing to add more features. This is obviously not what users like but each feature adds more maintaining cost and therefore it is really important that the code doesn't get to messy.
NicoBXL
NicoBXL-3 months ago
I understand, I wish I had the skills to contribute! Personally, I control the applet through playerctl, so I like that it includes the mpris plugin. Keep up with the good work :)
Jonathan Heard
Jonathan Heard-3 months ago
I don't want to remove the mpris Support. I just want it to work out of the box i.e without the plugin.
vdbhb59
vdbhb59-2 months ago
Yes please, do not remove that option. It is really helpful. :)
Nazarii Oliinyk
Nazarii Oliinyk-4 months ago
Awesome. Sometimes I had error when launch 2 radio instance in one time
Jonathan Heard
Jonathan Heard-4 months ago
Glad you like it. Can you explain in more detail what you mean with 2 radio instances and also share the error message? Maybe I can fix it.
yigitdnz
yigitdnz-4 months ago
Hi, I can't get this app to work in Arch Linux. Nothing happens when I left click the icon on the panel. I can right click and configure tough. I'm using Cinnamon 5.0.4, mpv 0.33.1 and latest Radio++. I see in below comments that someone else is having the same issue on Manjaro. I have tried with and without the mpv-mpris plugin, it didn't help. There is also nothing in .xsession-errors. I can left click all my other applets. Radio++ is the only one that doesn't respond. I have no idea how to debug. I also use Radio++ on my other PC with Debian (testing) and Cinnamon 4.8.6. Never had any issue there. Thanks for this cool app. Love it, use it everyday.
yigitdnz
yigitdnz-1 month ago
Hi again, There has been an update on my side: I hadn't been able to left click the applet on my PC with Arch Linux even though I had placed the mpris.so file manually in the configs folder. Meanwhile, it would work on my PC with Debian without doing anything. Until now, I used to think there was no mpris.so file in Debian's configs folder. However, I realized that there actually is, but it is a hidden file whose file name starts with a dot. Then I renamed the file to .mpris.so in Arch Linux's configs folder and it worked :) https://ibb.co/njLNnnH
Jonathan Heard
Jonathan Heard-4 months ago
Hi yigitdnz, jongough has reported the same problem on Github (https://github.com/linuxmint/cinnamon-spices-applets/issues/3839) and she could fix it by deleting the ~/.local/share/cinnamon/applets/radio@driglu4it/3.0 directory. This directory is only relevant for cinnamon < 4.6. I have no idea why this solved the issue but seems to work (maybe also a restart of cinnamon is necessary after deleting the directory). Hope this helps.
yigitdnz
yigitdnz-4 months ago
Deleting ~/.local/share/cinnamon/applets/radio@driglu4it/3.0 didn't work. But I Installed Arch Linux on VirtualBox and it worked. I will do a fresh install when I have the time. I believe leftovers in my home directory from previous installations are breaking something. Thanks for the reply.
Jonathan Heard
Jonathan Heard-4 months ago
Too Bad. Did you try to delete the configs directory (macking a Backup first as this removes your settings obviously)? Unfortunately I don't have any other idea. I don't understand why there is not at least an error in the xsessions :-(
SDakaXvost
SDakaXvost-6 months ago
Hello! Is it possible to add an encoding in the applet settings that the names of the tracks for Cyrillic languages would be correctly displayed?
Jonathan Heard
Jonathan Heard-6 months ago
Unfortunately not at the moment. This is unfortunately a difficult issue - not only related to Cyrillic languages. One Problem is that I haven't found a way to pass the encoding to mpv. As far as I understand the docs, it should be possible to do this with the --metadata-codepage flag but all my tries with different channels (mostly German) and different encodings have failed (and also another problem related to this is that is difficult to test as I have no impact on the metadata of the channels and therefore I need to wait until the channel sets an invalid character in the metadata. So for better testing I actually would need to host a stream server by my own). But even if this would work, it could only easily implemented one encoding which would need to be applied for all channels but it wouldn't be easily possible to allow users to set an individual encoding for each channel. I think mpv should be able to detect the encoding automatically as Rhythmbox was able to do this with some streams I have tested. And I even think that mpv is able to this when compiled with uchardet (this is mentioned in the docs: https://mpv.io/manual/stable/#options-sub-codepage). See also https://github.com/freedesktop/uchardet/blob/master/README.md. But I haven't tried it yet. I will investigate further when I have more time.
SDakaXvost
SDakaXvost-6 months ago
Thanks for the detailed answer! You'll have to wait until you can find a way to solve the problem. Thank you for a useful and nice applet!
Jonathan Heard
Jonathan Heard-6 months ago
For the sake of completeness, I just wanted to mention that I now have built mpv from source with uchardet and it still doesn't work. I also found out that the apt package version of mpv actually is built with uchardet which can be found out when running mpv with the '-v' flag. So I think this is a Bug in mpv for which I have now opened an issue at Github: https://github.com/mpv-player/mpv/issues/8844
Cristian Andrade
Cristian Andrade-6 months ago
Hello there, I have a big issue to report. I double click on the applet and it just doesn't open. But Configure menu works fine. I installed manually the mpv-mpris plugin as suggested. And obviously mpv is also installed. My OS is Manjaro 21 with Cinnamon. Did I just miss something? Thanks in advance.
Jonathan Heard
Jonathan Heard-6 months ago
Hi Christian, Sorry to hear that but I don't know why this happens. I am not a Manjaro expert but I have tested the applet now in a VirtualBox on a fresh Manajaro installation (21.0.2) without problems so the problem is related to your environment. When you click on the applet, the code basically does the following: - it checks if the file /~/.cinnamon/configs/radio@driglu4it/.mpris.so exists and if not it opens this dialog: https://ibb.co/Smw6ydJ. When clicking on "Download plugin on my own risiko" it downloads the plugin automatically from github and saves it to the /~/.cinnamon/configs/radio@driglu4it directory. So basically you shouldn't need to manually install the mpv-mpris plugin. - After dowloading the mpv-mpris plugin, it is checked if mpv is installed. On distros with apt as package manager it even shows a window for downloading mpv but not on manjaro at the moment. So you indeed need to install mpv manually (e.g. with sudo pacman -S mpv). - If the user clicks on cancel on the first dialog or mpv is not installed, it is showing this notification: https://ibb.co/QmBx2Mt. For debugging, it would be interesting to know if the notification is shown or not. Because when the notification is shown, there is most likely a problem with the mpv installation. But if neither the notification nor the dialog is shown, it is an indication that there is a problem in executing the code on your system. As I said I am not an expert of manjaro so I don't know it possible to have manjaro 21 installed with an older cinnamon version but if so this might also be the reason for the problem. The cinnamon version I am running is 4.8.6. So basically make sure that mpv is really installed (when you run `mpv` in the terminal and you see the message: 'command not found', you know that this is the problem) and you have the newest stable cinnamon version installed by running: `cinnamon --version` in the terminal. Hope this helps ...
Emmmmanuel
Emmmmanuel-7 months ago
Hello. Thanks for this wonderful applet! I just want to report a little bug (that maybe come from me...). When I'm listening to a radio channel and want to download the song, when I click on the download button, I receive a message "couldn't download the song from YouTube due to an error....." My version of the applet (and of cinnamon) is up to date, so I don't know where the problem come from... Thanks in advance for your help
Jonathan Heard
Jonathan Heard-7 months ago
Hello Emmmmanuel, The message actually should also include the sentences: "Make Sure you have the newest version installed. Visit the Radio Applet Site in the Cinnamon Store for installation instruction". The problem of the youtube download is that google makes technically changes to youtube very frequently and therefore also youtube-dl must be updated very frequently to work. Unfortunately the youtube-dl apt package in the default Mint repo is not even closely sufficiently up to date. Therefore youtube-dl must be installed in a different way to work properly. I have written a bash script for that purposes which you can found here: https://gist.github.com/jonath92/0f6bf4606bc8a34be1bb0826c99b73d1 This script does not only install youtube-dl but also adds a script to your system to automatically ckeck for updates on a daily basis. You can either copy the content and run it as sudo or simple run this command in your terminal: sudo su -c "bash <(wget -qO- https://gist.githubusercontent.com/jonath92/0f6bf4606bc8a34be1bb0826c99b73d1/raw/914aabe6c4b15dc614f18c8816f5ad2828755c22/install-Update-Youtube-dl.sh)" root I would prefer to implement a dialogue which allows users to enter the sudo password and then install the script automatically. So basically the same as with mpv but mpv is an apt package and in this case it is much easier than with a script for which I haven't yet found a way to do this. If you like the applet, feel free to press the like button on this site ;-) Thanks
Jonathan Heard
Jonathan Heard-7 months ago
I think I should update the notification message to "make sure you have the newest YouTube-dl version installed"...
Emmmmanuel
Emmmmanuel-6 months ago
Yes I think it would make much sense... Personally I was searching for the newest version of radio++
Jonathan Heard
Jonathan Heard-6 months ago
Thanks for clicking the like button. Does the youtube download now work for you? I will update the message later.
Emmmmanuel
Emmmmanuel-6 months ago
Sorry if it wasn't clear... Yes, it works perfectly.
omar909
omar909-8 months ago
when i try to add a radio station it automatically switches to stop
Jonathan Heard
Jonathan Heard-8 months ago
Thanks for reporting. I am aware of that. This happens only when your current running station has a URL with PLS file format. There are many problems at the moment with PLS files, e.g when pausing the stream remotely, it is not indicated with a Pause icon in front of the station and when restarting cinnamon while playing, it is also shown Stop on the panel as in the case you described. This is a little bit tricky because the problem with PLS stream is, that the media player (mpv) doesn't play the URL of the PLS but a stream link received from the PLS file which is not always the same. But a lot of code depends on the right URL. I think I can fix it by saving the URL to a variable when a channel is clicked instead of receiving it from the metadata directly. Currently I am working on migrating the code to Typescript which will make it much easier to maintain in future. After that I will try to fix that.
Jonathan Heard
Jonathan Heard-8 months ago
I created now a PR which will fix that
sbadux
sbadux-8 months ago
Hello. Thanks a lot for your app. It's amazing and I really love it. Is there any database on which I can add some radio streams? Do you use a public database or it's created by you?
Jonathan Heard
Jonathan Heard-8 months ago
Ah i forgot to mention, you can update your radio stations under the "My Stations" tab. There is a plus icon below the list. You just can not update the List shown in the "Find Station" tab at the moment. Out of curiosity, what did you mean when you asked the question? Did you mean the list under the "Find Station" tab or the "My Stations" List?
sbadux
sbadux-8 months ago
It's not a big issue, so take your time and many thanks. I mean "how to update the Find Station" tab. E.g.: almost all the "Rai" (italian public service) radios are missing and also many other big italian radios. I would like to add them but I see they are available on radio-browser.info so they are already added. It's just to make the app more confortable for the potential users. As we know many users may be lazy or not capable to find the streaming links to add manually so making the main italian radios available could be useful
Jonathan Heard
Jonathan Heard-8 months ago
Hm that's weird. When the stations are on radio-browser.info they should be also in the applet except when they have just been added/modified on radio-browser.info in the last two weeks or so. Can you give me some names which are on radio-browser.info and not in the applet? Than I can check why this is the case.
sbadux
sbadux-8 months ago
Hello. Here some examples: Radio Sportiva(first in the list): https://www.radio-browser.info/#!/byname/sportiva Rai Radio 2(first in the list): https://www.radio-browser.info/#!/byname/rai%20radio%202 RTL 102.5 https://www.radio-browser.info/#!/byname/rtl%20102.5 and many others. I can't find which version of Radio++ I'm running, but it says "Updated on 2021-03-06 17:27:46". I've installed Linux Mint few days ago from the official image from the website.
Jonathan Heard
Jonathan Heard-8 months ago
Thanks. The search function is new so the version doesn't matter. I find all of your examples in the applet: https://ibb.co/X5v1WWV (example for Radio Sportiva). The search function is very basic at the moment (or in other words bad :D) which I definitive need to improve. It differentiates between capital and lower case (i.e. you won't find "sportiva" but "Sportiva" and it also doesn't remove leading spaces (e.g you won't find "Sportiva "). I hope that this is the reason because apart from this I have no idea what else could be the source of the problem :-( ...
sbadux
sbadux-8 months ago
Thanks a lot. You're right: searching for Sportiva returns the right result. Yes, you need to improve the search functionality in the future :-) The differentation between capital and lower case should be the first improvement in my opinion.
Jonathan Heard
Jonathan Heard-8 months ago
Fixed in the next Version :-)
sbadux
sbadux-3 months ago
Sorry for the laaaaaaaaaaaate reply, but thank you veeeeeery much! :-) I see that many radio stations are doubled. e.g search for "Rai Radio" and you'll see that many URLs are double. Can you consider to fix this problem but using the URL as "primary key" and remove the duplicates? It's not a big issue, just to keep the application GUI clean. :)
Jonathan Heard
Jonathan Heard-8 months ago
The list is created from https://www.radio-browser.info. However right now the list doesn't get updated automatically - so it is just a static json file. I want to add that in the future but it doesn't have the highest priority for me at the moment. Currently I am working on migrating the applet to typescript which will make it easier to maintain. After that I want to fix some Bugs and after that I think I will make it automatically upgradable. So I don't expect this to happen within the next month.
jpsouzamatos
jpsouzamatos-9 months ago
Hi Sadly this applet is not good enough. Please improve this applet to be good like this one https://store.kde.org/p/1313987/
Jonathan Heard
Jonathan Heard-9 months ago
I am aware of that Applet but haven't used it yet. I think the most missing Feature in Radio++ is the search functionality. What do you think?
MarcoB-0049
MarcoB-0049-9 months ago
@JH Great work! The applet installed including plugin and mpv media player, url's of the radio stations entered and lo and behold, it works perfectly!
Owweeee
Owweeee-9 months ago
A good little applet. took me 2 weeks from downloading to work out that the reason it wasn't working properly was because the default volume was set to 0%. Also needs an easier way to add radio stations.
Jonathan Heard
Jonathan Heard-9 months ago
Sorry to hear that but I don't know what happens to you. Which Cinnamon version do you use? For Cinnamon 4.6 and above the default volume is 80% and not 0%.
Jonathan Heard
Jonathan Heard-9 months ago
Anyway I have made now a PR at github to show the volume in the tooltip in future. So that this doesn't happen to anybody else.
Owweeee
Owweeee-1 month ago
Sorry I didn't notice you had replied. Thank you for the update. Been using the applet for 7 months now very happily.
borodin57
borodin57-9 months ago
Hrm, had the identical problem as MichaelHanzen; after upgrading to 20.1 I got the dialogue that prompted me to download the plug-in, duly did as told, nothing happened. Happily read the below comment and solution, update all my applets, downloaded the mpris.so file to the radio@driglu4it folder, still got the same dialogue box and still no working radio. Did I download the wrong file or what have I bungled this time? Cheers, B
Jonathan Heard
Jonathan Heard-9 months ago
Reading my comment again I see that I forgot to mention that you need to restart Cinnamon after downloading the mpris.so file. Also are you sure that you saved the mrpis.so file to the correct directory? There are two Applets folders - one for the source code and one for the config files. You have to save the file to the config folder which is at ~/.cinnamon/configs/radio@driglu4it. Then it souldn't appear the download prompt anymore.
MichelHanzen
MichelHanzen-9 months ago
I'm using Linux Mint 20.1/Cinnamon 4.8.6. When I try to start Radi0++, a download confirmation dialog appears stating that I must download the mvp-mpris plugin. When I press the button "Download plugin ant my own risk", nothing happended. I went to GitHub to and copied mpris.so to my ~/.config/mpv/scripts directory and make it executable but it does not work. The applet worked under Linux Mint 20. Can you help me?
Jonathan Heard
Jonathan Heard-9 months ago
There was a Bug in the applet which I fixed yesterday. Maybe you need to refresh your cache in the applets window and update the applet. But if it is not working you can also fix it by saving the plugin to ~/.cinnamon/configs/radio@driglu4it (it actually doesn't need to be executable). Sorry for the inconvenience. I always test the applet extensively before making a pull request at Github but unfortunately this still can happen. I want to improve the applet at some point in future by migrating to TypeScript which will reduce the probability of such Bugs significant.
MichelHanzen
MichelHanzen-9 months ago
It works now. Thanks for your support!!!!
pyotr71
pyotr71-10 months ago
My best widget! However, there was a problem with a large number of radio stations. They cannot be scrolled...
Jonathan Heard
Jonathan Heard-10 months ago
Can you open a ticket for that on Github and include a Screenshot?
pyotr71
pyotr71-9 months ago
Thanks a lot for fixing this!
Jonathan Heard
Jonathan Heard-9 months ago
You are welcome. Thanks for reporting the issue :-)
mockturtl
mockturtl-10 months ago
Love it, thanks!!
Padre2
Padre2-10 months ago
Hello Jonathan, My apologies for not having responded sooner to your reply to my comments. Apart from the desire to stay in touch with the outside world at New Year, where Radio plays an important part, I am also having issues with my IPTV. Today I received the notification of another update for Radio. After installing, it again directed me to install mpv-mpris. Clicking the button did nothing and I went to the terminal and installed from AUR using `yay`, but still no results even after restarting, hence my visit here. I am very happy with your reply from a week ago and now understand what has been happening. Thank you for saving me the trouble to figure out how to downgrade. Everything is now back to normal. :-)
Padre2
Padre2-10 months ago
I am using Arch with Cinnamon 4.8.4 and have been using this Radio applet for over a year with very satisfactory results. I had an update for Radio about a week ago and it stopped working and I found a message that it now requires the mpv package. After installing mpv, it loaded again, but the volume setting normally used, ~40%, required cranking up to 80% to get the same sound level. However, with this setting the system notification and other player sounds were extremely high. This was adjusted by lowering the PulseAudio level setting down from 100% to 50% and leaving the mpv audio setting at 100%. Yesterday I found a new update and again after updating again, it stopped working and this time it required mpv-pris, or mpv-mpris? Without paying much attention I installed whatever it was, or perhaps nothing, restarted and Radio resumed working. Today before writing this I read the posts below and noted the change from moc to mpv. I then checked to see the versions of mpv (1:0.33.0-3 (x86_64) installed), but could not find any package.with pris or mpris in the name. Searching for mpris produced the playerctl package, which is installed. I am still trying to understand what actually happened. Why is the mpv sound only about 50% of the moc sound. The performance is degraded with mpv and prefer performance of the moc player, which for me had worked very well.
Jonathan Heard
Jonathan Heard-10 months ago
I am sorry for your inconvenience. We have updated the media player as it is now possible to control the radio applet by any software which has implemented MPRIS such as the sound applet and media keys on the keyboard. But I understand that not everybody wants this. We have focused to much on one feature while ignoring the disadvantages. Your feedback is therefore really very valuable to correct our mistakes. So we probably will implement an option to choose the media player in future which however is not that simple and will take some time. In the mean time you can revert back by copying the content from ~/.local/share/cinnamon/applets/radio@driglu4it/3.0 to ~/.local/share/cinnamon/applets/radio@driglu4it/4.6. You should then be careful with updates for the radio applet as updates will bring the current version back. The mpv player doesn't allow MPRIS control out of the box but only with this plugin: https://github.com/hoyon/mpv-mpris. The plugin is basically just a file and not an apt package. We have made a mistake here because this plugin has been downloaded to the applet folder (~/.local/share/cinnamon/applets/radio@driglu4it). This however was a bad idea as all files which are not part of the source code (i.e. are included in the git repo) are deleted at updates. Therefore the mpris plugin needed to be downloaded at each update. We will change the path of the plugin to another location so that it won't be deleted in future anymore. However as we just have recognized this with the last update, it means that users of the applet have to download it one last time at the next update (this won't be necessary anymore when we have implemented an option to choose the media player and users choose moc)
mlusic
mlusic-11 months ago
Great applet! What is the path to stored radio stations...for backup?
Jonathan Heard
Jonathan Heard-11 months ago
The settings, which include the radio stations, are saved in ~/.cinnamon/configs/radio@driglu4it/radio@driglu4it.json
invexx
invexx-11 months ago
I'm so glad that the media key works now. Thank you! IMO, it would be much better if the paused stream changed to default icon (not the color icon when it's paused).
Jonathan Heard
Jonathan Heard-11 months ago
I am glad you like it and thanks for your feedback. Indeed this is a good idea but at the moment it is actually not that easy to implement as it sounds. When starting a radio channel, the applet starts mpv and gets informed (with the wait command) when the started process is stopped. This is the case when changing the radio stream or stopping the radio but not when pausing the stream. Theoretically we could implement a function which checks the status of the radio (polling) but I don't like that as it doesn't look great and I guess it is inefficient in that case. I prefer to orientate more on the sound applet which however is more difficult. So I want to implement that but I don't know when I find time for that.
invexx
invexx-11 months ago
Thank you, Jonathan. One more tiny suggestion. It would be nice if notifications were optional. Starting a stream changes icon so imo, notifications are redundant.
Jonathan Heard
Jonathan Heard-11 months ago
Yes I basically agree but I only want to make the start/stop notifications optional but not the error notifications which I first want to implement. Because at the moment when you start a radio while being offline or using wrong url you get first a notification "Playing ..." and afterwards directly "Stop Radio+++". This is somehow wrong and it should be shown an error instead. IMO there is no reason to hide error notifications.
Sergio
Sergio-10 months ago
Hi Joanathan, In my case, the notifications are very redundant because they appear intermittently after selecting a correct station. I tried to stop it, but the notifications keep appearing, even over other windows. This is really annoying
Jonathan Heard
Jonathan Heard-10 months ago
I just made a pull request which removes the notifications. https://github.com/linuxmint/cinnamon-spices-applets/pull/3403
invexx
invexx-11 months ago
I agree. Suppressing error notifications wouldn't make any sense.
Trotter73
Trotter73-11 months ago
Hi, Corner case here, I've been using Cinnamon on a Raspberry Pi (ARMhf) , the latest update to Radio ++ has broken the functionality. The lookingglass log shows:- error t=2020-12-18T15:11:41Z [radio@driglu4it]: Util.spawnCommandLineAsyncIO is not a function [radio@driglu4it]: Failed to evaluate 'main' function on applet: radio@driglu4it/52 I have installed mpv and compiled the MPRIS plugin bit still get the error, any ideas ?
Padre2
Padre2-11 months ago
Reinstalled moc, all is good.
Jonathan Heard
Jonathan Heard-11 months ago
actually you shouldn't nee moc anymore but mpv as this allows to manage this radio with MPRIS control (i. e. with kdeconnect, the sound applet, media keys etc.). However it seems that even though the applet has been updated two days ago, it is still downloaded an old version due to a caching issue (see NikoKrauses comment below)
Padre2
Padre2-11 months ago
After a year working beautifully on Arch, it now loads and stations can be chosen, but no sound and different icon. No errors in Looking Glass or .xsession errors file.
jongough
jongough-11 months ago
What stream formats does this applet support? On Linux Mint Cinnamon 20 there is no 'Open radio stream URL search engine' button at the bottom of the screen.
NikoKrause
NikoKrause-11 months ago
There's a cache issue in Mint 20 / Cinnamon 4.6. When you download an applet in Cinnamon itself, you end up with an old cached version of the applet, even if the about dialog says it's new. Sometimes it takes a few days, till you get the proper latest version through Cinnamon. Right now you need to download and install the latest version manually. The download button above offers the applet with the latest changes.
jongough
jongough-11 months ago
I have told the app to reload from the 'three lines' in the top right of the window and it opens up a new browser tab. However, looking for 'ABC Classic' radio in Australia does not return anything. The two streams possible are: http://freezone.iinet.net.au/include/radio/playlists/131.m3u http://freezone.iinet.net.au/include/radio/playlists/131.pls which are not found. There does not appear to be a way to direct the search. Creating manually these links and the radio works. Thanks Both of these now appear to work.
jongough
jongough-11 months ago
Thanks, have downloaded and installed the latest version which now shows the button at the bottom of the screen. However, clicking on it does not appear to do anything. Where is it supposed to open the search engine?
sixxxis
sixxxis-11 months ago
sorry have to vent: big shit not working on Linux Mint 20 Cinnamon 5.4.0-56-generic kernel with or without config
Jonathan Heard
Jonathan Heard-11 months ago
There has been an update and it should work now on Linux mint 20 out of the box.
invexx
invexx-1 year ago
Excellent. The only thing missing is the support for play/pause media key.
Jonathan Heard
Jonathan Heard-11 months ago
I made a Pull Request for that on Github. You can try this by downloading the applet.js file from https://github.com/jonath92/cinnamon-spices-applets/tree/master/radio%40driglu4it/files/radio%40driglu4it and replacing the ~/.local/share/cinnamon/applets/radio@driglu4it/applet.js file with the downloaded applet.js file and running this command: sudo apt-get install playerctl mpv
STETSen-D
STETSen-D-1 year ago
Добрый день. Возможно ли добавить в апплет вывод уведомлений с названием текущей транслируемой песни (как например это реализовано в программе radiotray-lite). Просто многие станции при вещании дают название текущего трека, было бы интересно видеть такое и в этом апплете. Спасибо:)
Nikon1981
Nikon1981-1 year ago
При добавлении ссылок радиостанций убирайте расширение "s" в протоколе http т.е. https://maximum.hostingradio.ru/maximum96.aacp > http://maximum.hostingradio.ru/maximum96.aacp
Nikon1981
Nikon1981-1 year ago
Сделал все как написано, но радио не работает и не могу найти .moc/config. В папке /home/user/.moc нет файла конфигурации.
Hairybiker
Hairybiker-1 year ago
Is there any way of getting this to start playing the last selected station on startup?
Kimme Utsi
Kimme Utsi-1 year ago
But first when you have installed this plugin you need to...... sudo apt install moc moc-ffmpeg-plugin And then you add the mentioned alias in .bash_aliases alias mocp="padsp mocp" and put this in your .moc/config # Use OSS for Pulseaudio compatibility (run 'padsp mocp') SoundDriver = OSS, ALSA, JACK
Kimme Utsi
Kimme Utsi-1 year ago
Hmmmmm, the entry about .moc/config is borked just now on my Linux Mint 19.3....
Kimme Utsi
Kimme Utsi-1 year ago
Also experienced that you also have to open an terminal and type the command "mocp" in the terminal and exit the program with an "keypress q" to get the stations to play atleast on Pop-OS 19.10..... Then the stations will play with this extension...
Kimme Utsi
Kimme Utsi-1 year ago
.This works in Ubuntu 19.10 if you set this as an alias.... alias mocp="padsp mocp" and put this in your .moc/config # Use OSS for Pulseaudio compatibility (run 'padsp mocp') SoundDriver = OSS, ALSA, JACK
j-balint
j-balint-2 years ago
Actually mocplayer does not play it, just says: Connecting... The message disappears after a while and nothing happens.
j-balint
j-balint-2 years ago
I recently changed to Radio++ from Radiotray which very often stopped to play. On my LxMint 19/Cinnamon Radio++ works simply well with many published radio streams, I like its simpicity. However it does not play the KDFC stream: http://128.mp3.pls.kdfc.live which is published on this page: https://www.kdfc.com/listen/how-to-listen/ What could be a reason of that?
Padre2
Padre2-2 years ago
@Driglu4it, I am using Radio++ and I am very happy with it, for streaming radio programmes. I would like to ask how to make the list of stations longer in the window, as shown above. Can the list not make more use of the panel, which is so much bigger. Otherwise, make the panel shorter, but styled so as to allow the height of the panel and list to be increased by dragging.
claudiux
claudiux-2 years ago
Symbolic icon added. Now the icon is correctly displayed in the panel.
rjv23
rjv23-3 years ago
nice little app, works well. users need to get the direct steaming link, for soma, look on the left margin for direct stream links, choose the quality link you want and load that. seems to work for me no problems.
Chad Bergeron
Chad Bergeron-3 years ago
Doesn't seem to play streaming playlist files (such as those from http://somafm.com) which are used to procide multiple URLs for a stream. If I enter a playlist file, it should call mocp -p to play the first stream location in the playlist.
Kimme Utsi
Kimme Utsi-2 years ago
Remove any exstension for the link, and the station will work.
Padre2
Padre2-2 years ago
Thanks Kimme, I found that this worked with several, but not all, URLs that would not play in Radio++. I have been comparing with Rythmbox, which will accept the extensions, but Radio ++ is a much neater application, if you only want radio URLs.
plspp
plspp-3 years ago
I like to add the following for urls to add: Current as of sept 2018 Big list of urls: https://www.outworldz.com/secondlife/posts/streaming/ i like listen to art bell Art Bell1 http://stream1.u7radio.org:8000/ Art Bell1 http://stream2.u7radio.org:8000/ Art Bell1 http://stream3.u7radio.org:8000/
plspp
plspp-3 years ago
The radio is perfect the way it is. I think (1) radio should NOT include listings of urls because radio stations constantly change, 1day they online, next day they non-exsist. Many change op hours. (2) It would be a real mess and very time consuming to the creator to keep a valid list of some current online radio streams. (3) It would be hard to please everyone with his selection if he added a list, because his rock or chill or pop or rap or whatever streams may not be yours. Then it be a hassle to delete his streams and start all over with yours (4) it is best to leave blank, so we can add the streams we like and want to hear. The three streams that is listed currently, only 2 worked for me. but that okay, because it is a good way to set an example of how to add or delete. Thank you for the effort of creating the app.
Visnu Pritom Chowdhury
Nice app. However, a valid list of URLs would be great! This list apparently does not work any more, https://wiki.ubuntuusers.de/Internetradio/Stationen/
evalesquez
evalesquez-3 years ago
Nice and very simple applet, but please creat a symbolic-icon radio for dark themes panel. :)
Driglu4it
Driglu4it-3 years ago
Icon.png use in list of widget, not in applet. Applet use function set icon from cinnamon library (this - 'radio'). I'm happy to make a grouping of stations, if there is an option in the API to add an editable list of choices.
Вячеслав Диконов
The name of the icon inside the applet's js file does not match the actual filename of the icon (icon.png). This makes the applet invisible in the panel. Please, fix! It would also be cool to support grouping of radio stations via submenus.
GNU / Linux
GNU / Linux-3 years ago
Спасибо Вам за ваш ответ попробую. Респект
GNU / Linux
GNU / Linux-3 years ago
Программа хорошая, но хочется свои радио добавить.
Driglu4it
Driglu4it-3 years ago
Без проблем можно свои добавить. Я, например смотрел исходные коды страниц 101.ru
etherman55
etherman55-3 years ago
Forgot to mention, it Didn't work at first, but only after I had downloaded Moc player via synaptic package manager, it worked immediately, and was easy to configure with new stations.
etherman55
etherman55-3 years ago
Excellent application, EASY to use, thanks a lot. In order to add stations, I chose them fro Icecast radio directory in VLC media player, hit the info choice on right mouse click, then copy "Location" contents (a web address?), right click the Radio++, chose config, click + to add a station, name it and paste the location. You're done.
Driglu4it
Driglu4it-4 years ago
Several stations can be taken from Radiotray here: https://github.com/RadioTrayEurasia/RadioTrayEurasia If necessary, I can convert for applet (only a very large list will be obtained). There is a proposal to make a change in the radio. In the list of stations, select the check box that will mark which stations to display. If the changes are useful, write in the comments, I will. Sorry for my bad English...
Driglu4it
Driglu4it-4 years ago
NikoKrause, thank's for your improvements.
NikoKrause
NikoKrause-4 years ago
That's a nice applet for listening to online radio stations. It's a little bit difficult to find the right URL for radio stations. But I found this very helpful list of internet radio stations: https://wiki.ubuntuusers.de/Internetradio/Stationen/