Coder Social home page Coder Social logo

ebruck / radiotray-ng Goto Github PK

View Code? Open in Web Editor NEW
248.0 24.0 23.0 1.34 MB

An Internet radio player for Linux

License: GNU General Public License v3.0

CMake 7.13% C++ 89.13% Python 2.02% Shell 0.89% Dockerfile 0.84%
ubuntu-desktop appindicator internet-radio-player debian linux

radiotray-ng's People

Contributors

blshkv avatar ebruck avatar joebonrichie avatar koodijo avatar lazykarlson avatar ptahpeteh avatar vascom avatar xandey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

radiotray-ng's Issues

Failed to download playlist

Cannot play anything including built in playlist.
logs:

[2017-07-17 21:34:17.534660] [0x00007f0276215700] [info ] (radiotray_ng.cpp:403) - downloading: root, BassDrive, http://yp.shoutcast.com/sbin/tunein-station.pls?id=1618496
[2017-07-17 21:34:17.534792] [0x00007f0276215700] [debug] (notification.cpp:61) - notify: Connecting, Radiotray-NG, radiotray-ng-notification
[2017-07-17 21:34:17.536756] [0x00007f0276215700] [debug] (playlist_downloader.cpp:134) - http-timeout=15
[2017-07-17 21:34:17.648908] [0x00007f0276215700] [debug] (playlist_downloader.cpp:168) - 
[playlist]
numberofentries=1
File1=http://144.217.129.213:8702/stream
Title1=(#1 - 200/9999) Bassdrive - Worldwide Drum and Bass Radio
Length1=-1
Version=2

[2017-07-17 21:34:17.649127] [0x00007f0276215700] [info ] (playlist_downloader.cpp:92) - decoder: PLS
[2017-07-17 21:34:17.649296] [0x00007f0276215700] [error] (player.cpp:94) - main_loop not ready
[2017-07-17 21:34:17.649339] [0x00007f0276215700] [error] (radiotray_ng.cpp:431) - failed to download playlist: http://yp.shoutcast.com/sbin/tunein-station.pls?id=1618496
[2017-07-17 21:34:17.649682] [0x00007f0276215700] [debug] (notification.cpp:61) - notify: Error, Failed to download playlist, radiotray-ng-notification
(radiotray-ng:23710): GLib-CRITICAL **: g_main_loop_is_running: assertion 'loop != NULL' failed

[Archlinux] libboost - 1.64.0 not found

Hello,

I use radiotray-ng for listen some web radio.
But when i update my distribution, I have an error :

radiotray-ng
radiotray-ng: error while loading shared libraries: libboost_filesystem.so.1.64.0: cannot open shared object file: No such file or directory

How can I fixe it ?

Volume increase with play on.

Hello!

The app settings is default. Everytime with play it the general volume level is increased to maximum (it was painful) and volume level for other apps are not changed.

OS was upgraded one week ago, before it. I not modified the app (update).
I got this trouble after the Viber messenger installation (it removed already).

  • Work with the "volume-level" parameter not helped.
  • Work with the pulseaudio settings (with my small knowledge) not helped.

Can you give a advice about it problem?

The OS:
Debian 9
Linux varicap 4.9.0-4-amd64 #1 SMP Debian 4.9.51-1 (2017-09-28) x86_64 GNU/Linux
MATE Desktop Environment 1.16.2

Thanks.

GTK3 instead GTK2?

I thank you for your simple app. It is incomplete, but very useful even in current state.

Why did you use GTK2 instead GTK3? GTK2 is deprecated and outdated. It is possible to add compile option to use GTK3?

Also, please do not use stock menu item such as "About", "Preferences", "Close". Stock is deprecated. Instead, create this menu items manually.

bookmark editor does not work

Have installed radiotray-ng_0.2.0_ubuntu_17.10_amd64.deb on kubuntu_17.04 and radiotray runs fine, however the bookmark editor does not work. Is this a known issue?
Also would be possible to compile a ubuntu 17.04 radiotray package if that is the problem?

No config file?

As I wanted to modify the color of the icons (my desktop uses a white panel), I tried to find the config file according to the readme file. It was not here.
So I created it manually, but it doesn't seem to work. :(
FYI I used the tar.gz v0.2.0 and build my own Debian package (on Stretch ie Debian 9).

Icon invisible since last gnome update

Hello there,
I have the following issue: when I start radiotray usually it opens in Top Bar (Solus Gnome) from where I can go and select the radio stations but since last update the Top Bar is transparent and the icon is invisible. At the beginning I thought that it won't open and tried multiple times and then when I opened browser to search for solution and Top Bar became solid I realize that it is open but the icon was not visible.

How I can modify the icon that will be visible or customize it with custom colors?

I really like the application and I use it on daily basis. I have learned already how to edit the bookmarks and add custom groups and other stations...

Thank you for all efforts that has been gone into this amazing application.

Unclear sleep timer functionality

Under Preferences there is an option to activate a Sleep Timer. It seems that it is not fully implemented yet. At least I couldn't get it to work.

Lack of notification icon in black

When I tried to solve my issue with the icons (see issue #49 ) I noticed that the notification icon is only in a white version.
For users like me using light color destop environment, it's a real problem because it's almost invisible.
It could be usuful to have a second version of this icon in black in radiotray-ng/data/hicolor/256x256/apps/ (if I'm not wrong) and to allow in the config file the use of this icon by an option just like radiotray-ng-on and radiotray-ng-off icons.

--help option

Please add "--help" option to command line. It would be nice if it could contain information about application and about "--play" option.

Current blockers to make radiotray-ng available in Solus

I have suggested radiotray-ng to be included in the software repositories of Solus: https://dev.solus-project.com/T2649

Could you address the issues mentioned by the Solus devs in an upcoming version? Many thanks.

Josh Strobl from the Solus team wrote:

So I have this compiled, however here are the issues:

  • It doesn't create any of the configuration files, nor does it ship any default ones, which means unless the end-user knows that they'll need to manually configure it, it will fail in the least obvious way, which is coredump.
  • Even if radiotray-ng did ship defaults, it isn't checking its own data directory, only the user's .config/radiotray-ng, which means there is really no way for us to get this to work OOTB (and thus validate) without severely patching it. Thus rejecting under our Stack Complexity rule.

Distro-agnosticism

The description of radiotray-ng here on GitHub says: "An Internet radio player for Ubuntu". Would you mind making it more distro-agnostic to allow for wider adoption? I believe this would also be in line with your goals of making it cross-platform?

Translation

Is it possible to translate radiotray-ng?

reconnect

I have connection issue or problem on radio problem. It should try reconnect if state 'Turn on' but radio exit.

Internet Radio Directory Integration

Hi,
This is feature suggestion:
Integration of an external Internet radio directory (IRD) such as e.g. Dirble https://dirble.com/developer/
It is already being used by others: https://dirble.com/developer/applications

Ideas:

  • Search for Internet radio stations and add them via the Bookmark editor. E.g. via search from categories, but also via a search field if one has some keywords available such as station name (and optional maybe genre.)
    Requirement: User would likely need to have a user account. E.g. in the case of Dirble it seems to be requirement to get access to the API that in the free version is limited to 1500 requests per month. https://dirble.com/plans

  • Optional: Provide a link inside of the Bookmark editor to the IRD (e.g. Dirble) if one wants to be taken to the home page of the directory to add a station to the directory, add or change an existing stream to a station.

  • Optional: Option for automatic updating stations/streams stored locally in the bookmark json file as they become updated on e.g. Dirble when someone adds/updates a station stream. E.g. have I previously added Fréquence 3 and the URL to the stream changes then automatic update the stream URL to avoid broken stations that would otherwise require manual updating.
    Requirement: Depending on how much traffic that goes to the IRD the automatic checking for station updates might needs to be limited to once a day, once a week or once per startup of Radiotray-NG.

  • Optional: Selection of either best quality or specific stream (e.g. a pls might have different streams available 192 kbit/s, 128 kbit/s or 96 kbit/s) and some might prefer mp4 over mp3 etc.

Thanks for Radiotray-NG! It works really well!

Several improvement...

Hi and very much thanks for this works...
1/ To have radiotray-ng behavior like original radiotray, is it possible to start playing with middle click?
2/ Volume increment with mouse wheel is too small, is possible to increase it, pehaps with a number in the config file.
3/ I can't set subgroup in bookmark.json, it's me or it's not coded?
Voila

Yet thanks.
Best regards

When notifications turned off Radio can't be turned off

I installed Radiotray-ng on Ubuntu 16.04 32-bit.

  1. Close down Radiotray-ng.
  2. Open ~/.config/radiotray-ng/radiotray-ng.json and change:
    "notifications" : false,
  3. Start Radiotray-ng and click on icon and select "Turn on {radio station}".
  4. Notifications are off which is great. But now lets disable the radio, click on icon and select "Turn off {radio station}". Radio is turned off like for half a second and then it is turned on automatically. It looks to me when notifications are off radio can't be turned off.

To confirm, I have shut down program. I reversed json config setting back to:
"notifications" : true,
and started a program. Notifications reappears as expected and now radio can be turned off clicking on icon and selecting "Turn off {radio station}".

Also setting both settings:

"notification-verbose" : false,
"notifications" : false,

and the problem is the same.

But settings:

"notification-verbose" : false,
"notifications" : true,

and radio can be turned off, but there are still notifications.

Error building dev-0.1.8

Hi,

Just tried building dev-0.1.8 using my Arch Linux PKGBUILD and get the following error. I did this the exactly same way I used to build dev-017 and 0.1.6 which always built successfully. Any ideas. Some reference to error adding symbols: DSO missing from command line

/usr/bin/ld: CMakeFiles/radiotray-ng.dir/main.cpp.o: undefined reference to symbol '_ZN5boost6detail12get_tss_dataEPKv'
/usr/lib/libboost_thread.so.1.65.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [src/radiotray-ng/CMakeFiles/radiotray-ng.dir/build.make:135: radiotray-ng] Error 1
make[1]: *** [CMakeFiles/Makefile2:132: src/radiotray-ng/CMakeFiles/radiotray-ng.dir/all] Error 2
make: *** [Makefile:152: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

This is my PKGBUILD I'm using:

pkgname=radiotray-ng
pkgver=0.1.8
pkgrel=1
pkgdesc="An Internet radio player for Linux"
arch=('i686' 'x86_64')
url="https://github.com/ebruck/radiotray-ng"
license=('GPL')
depends=('boost-libs' 'curl' 'gstreamer' 'jsoncpp' 'libappindicator-gtk2'
         'libbsd' 'libnotify' 'libxdg-basedir' 'glibmm' 'libappindicator-gtk3' 'glibmm')
makedepends=('cmake' 'boost' 'lsb-release')
optdepends=('python2-lxml: Convert radiotray bookmarks to radiotray-ng format')
options=('!libtool')
#source=("${pkgname}.tar.gz::https://github.com/ebruck/radiotray-ng/archive/v${pkgver}.tar.gz")

source=("${pkgname}.tar.gz::https://github.com/ebruck/radiotray-ng/archive/v${pkgver}-dev.tar.gz")

sha256sums=('b816f5b6e10277633d7935920d637c31d99f85c6fc2a740a97c76ef332c543db')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}-dev"
  [ -d build ] && rm -r build
  mkdir build
  cd build

  cmake .. -DCMAKE_BUILD_TYPE=Release
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}-dev/build"
  make DESTDIR="$pkgdir" install
}

rt2rtng does't convert correcty nested bookmarks

rt2rtng does't convert nested bookmarks from old radiotray. The nesting structure disappers. All radio stations are on root level.

I've thousands of radio stations arranged by country, state, city,...etc. rt2rtng puts all radio stations on top of the converted list, only keeping streams of same stations in single groups.

Light Desktop Environment Tray Icons?

Hi,

first of all: Thank you very much for your project

Is there or will there be a possibility to change Tray-Icons to a light color desktop environment in the config file?

I'm using Arch

[Debian: Xfce4-Desktop] Volume settings are lost when turning off station

radiotray-ng lost the volume settings when turning off radio station or quit program. On my desktop the volume is much to high, so I decreased volume. But when turning off and on a station the volume is again much to high.

I edited config file and changed volume level to "10". The new level is displayed as "Volume: 10%" in popup menu. But the displayed level seems to have no effect on volume of played streams.

Via pulseaudio/pavucontrol it's possible to reduce the volume for radiotray-ng. That works as expected. But when turning on any station the volume level jumps back to inital high value. I didn't find a way to decrease volume permanently.

My system is Debian/Stretch amd64 with Xfce4-Desktop, pulseaudio and some Gnome apps. Rhythmbox works fine. Dito gnome-music.

Output of pulseaudio pacmd list-sink-inputs :

index: 2753
driver: <protocol-native.c>
flags: START_CORKED
state: RUNNING
sink: 1 <alsa_output.pci-0000_04_06.0.analog-stereo>
volume: front-left: 12065 / 18% / -44,10 dB, front-right: 12065 / 18% / -44,10 dB
balance 0,00
muted: no
current latency: 116,00 ms
requested latency: 96,00 ms
sample spec: s16le 2ch 48000Hz
channel map: front-left,front-right
Stereo
resample method: (null)
module: 10
client: 1135

After turning off/on a station index and module number changed and volume level is much too high:

index: 2758
driver: <protocol-native.c>
flags: START_CORKED 
state: RUNNING
sink: 1 <alsa_output.pci-0000_04_06.0.analog-stereo>
volume: front-left: 30419 /  46% / -20,00 dB,   front-right: 30419 /  46% / -20,00 dB
        balance 0,00
muted: no
current latency: 116,00 ms
requested latency: 96,00 ms
sample spec: s16le 2ch 48000Hz
channel map: front-left,front-right
             Stereo
resample method: (null)
module: 10
client: 1166 <Radiotray-NG>

Wrong separators in menu

You are using wrong separators in tray menu. Instead of GtkMenuItem with empty label you should use GtkSeparatorMenuItem. See screenshots below. (nm-applet context menu on second screenshot).

screenshot1
screenshot2

Build fails with jsoncpp 1.8.3

Some functions have been deprecated etc.

[ 10%] Building CXX object src/radiotray-ng/config/CMakeFiles/config.dir/config.cpp.o
/tmp/radiotray-ng/src/radiotray-ng-0.1.8/src/radiotray-ng/config/config.cpp: In member function ‘virtual bool Config::load()’:
/tmp/radiotray-ng/src/radiotray-ng-0.1.8/src/radiotray-ng/config/config.cpp:42:16: error: ‘Reader’ is deprecated: Use CharReader and CharReaderBuilder instead [-Werror=deprecated-declarations]
   Json::Reader reader;
                ^~~~~~
In file included from /usr/include/json/json.h:11:0,
                 from /tmp/radiotray-ng/src/radiotray-ng-0.1.8/src/radiotray-ng/config/config.hpp:22,
                 from /tmp/radiotray-ng/src/radiotray-ng-0.1.8/src/radiotray-ng/config/config.cpp:18:
/usr/include/json/reader.h:35:83: note: declared here
 class JSONCPP_DEPRECATED("Use CharReader and CharReaderBuilder instead") JSON_API Reader {
                                                                                   ^~~~~~
/tmp/radiotray-ng/src/radiotray-ng-0.1.8/src/radiotray-ng/config/config.cpp: In member function ‘virtual bool Config::save()’:
/tmp/radiotray-ng/src/radiotray-ng-0.1.8/src/radiotray-ng/config/config.cpp:70:31: error: ‘StyledWriter’ is deprecated: Use StreamWriterBuilder instead [-Werror=deprecated-declarations]
   ofile << Json::StyledWriter().write(this->config);
                               ^
In file included from /usr/include/json/json.h:12:0,
                 from /tmp/radiotray-ng/src/radiotray-ng-0.1.8/src/radiotray-ng/config/config.hpp:22,
                 from /tmp/radiotray-ng/src/radiotray-ng-0.1.8/src/radiotray-ng/config/config.cpp:18:
/usr/include/json/writer.h:212:70: note: declared here
 class JSONCPP_DEPRECATED("Use StreamWriterBuilder instead") JSON_API StyledWriter : public Writer {
                                                                      ^~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [src/radiotray-ng/config/CMakeFiles/config.dir/build.make:63: src/radiotray-ng/config/CMakeFiles/config.dir/config.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:187: src/radiotray-ng/config/CMakeFiles/config.dir/all] Error 2
make: *** [Makefile:152: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Makepkg was unable to build radiotray-ng.

reverse menu on bottom panels

I have usability issue, cause my tray is at the bottom. It must be reversed on bottom panels. U can just create option in preference.

Popups do not disappear

radio
radiotray-ng 0.1.6
The popup (see screenshot) indicating channel, artist and song always reappear after clicking them away. Is there any option to disable them in the settings? Is this already fixed in 0.1.7?

mouse clicks

left click on ico should on/off radio, right click - popup menu

Radio tray icon not showing up in GS

Great to have a fork of the apparently dead RT project which is under active development - much appreciated!

Unfortunately, the app icon is not showing in the application / systray area in gnome shell (although
topicons is installed as an extension). GS version is 3.24.2-0ubuntu0.1; let me know if you need more details.

--resume option.

Original radiotray application has "resume" option. When user start radiotray with "--resume" as first argument, app automatically starts last played radiostation.

Please, reimplement this feature.

dbus support

Hi Ed,

I've just installed radiotray-ng and I'm very impressed, great job!

I have a number of bash and conky scripts I use with the old radiotray app and would like to rewrite them to work with radiotray-ng but they make prolific use of these two dbus commands to get the current station and song/artist:

qdbus net.sourceforge.radiotray /net/sourceforge/radiotray net.sourceforge.radiotray.getCurrentRadio
qdbus net.sourceforge.radiotray /net/sourceforge/radiotray getCurrentMetaData

I queried dbus while radiotray-ng was running and didn't see any output. Do you have any plans to offer dbus support or if you could let me know of any equivalent commands that can get me that info, that would be great.

Thanks

Swipe

Unable to reorder group/stations that have unicode characters

A station like this cannot be reordered:

{
    "image" : "~/Dropbox/.radiotray-ng/icons/radio1.png",
    "name" : "Rádió 1",
    "url" : "http://stream2.radio1.hu/high.mp3"
}

It also appears that a station within a unicode group isn't movable even if its name is in plain text.

Icon is the wrong size in xfce-panel

I'm using the latest radiotray-ng and running Xubuntu 16.04.2 - using xfce as my Desktop Environment. I'm using xfce's panels and the radiotray-ng icon appears to be stretched, or the wrong size. It's the second icon from the right, just between the sound menu and network manager:

screenshot_2017-02-17_11-12-33

The icon in the notifications look fine:

screenshot_2017-02-17_11-19-04

I haven't changed radiotray-ng's config at all, so far.

If there's any more information I can provide to help debug, let me know.

Thanks!

Can't find gstreamer plugin...

Hi, I'm a newcomer to github. Not sure if I'm doing things right but...

Thank you so much for reviving radiotray -- my fav internet radio app. Just wanted to forward an intermittent bug. Sometimes, after resuming from suspend, rt-ng will complain that it can't stream a given station: (gstreamer plugins are unavailable or not installed). The bug is exceedingly minor -- the workaround is to simply quit radiotray and restart. For informational purposes, I'm using a fresh install of Mint.

4.10.1-041001-generic x86_64 (64 bit) Desktop: Cinnamon 3.2.7 Distro: Linux Mint 18.1 Serena

Volume bugs in Plasma 5.10 (Arch)

I've found a couple of minor volume bugs in Plasma 5.10 (Arch Linux) using the radiotray-ng-0.1.6-2 package from the AUR.

This has been confirmed on two separate machines.

  1. Scrolling the middle click mouse wheel above the radiotray-ng tray icon doesn't change the volume

  2. When a stream is started it doesn't match the volume level set in the config file. Two examples for demonstration purposes: 'volume-level' set to 50 in the config file results in 79% in the radiotray-ng application volume sink and 'volume-level' set to 70 in the config file results in 89% in the volume sink. Any volume levels changed manually will get reset each time a new station is started. I would expect the manually changed levels to be written back to the config file when changed, this is not happening.

Let me know if you need any more info.

compile on rhel distros

any chance you could add any pointers/fixes so this compiles on other distros than ubuntu?
struggling with make failing

I'm trying to get it to compile on Fedora 25

Bad Quailty Warning while installing on software center

The installation of a package which violates the quality standards isn't allowed. This could cause serious problems on your computer. Please contact the person or organisation who provided this package file and include the details beneath.

Lintian check results for /tmp/mozilla_lucy0/radiotray-ng_0.1.3_ubuntu_16.04_amd64.deb:
E: radiotray-ng: control-file-has-bad-permissions postinst 0775 != 0755
E: radiotray-ng: control-file-has-bad-permissions postrm 0775 != 0755

Sound output strange behavior

Hi @ebruck,

Sometimes the sound from radiotray-ng comes out of the wrong sound output. I have two sound cards which I switch between, one goes to speakers, the other goes to headphones.

If I switch sound output while radiotray-ng is playing something the output is changed correctly, however if I change the sound output while radiotray-ng is off it is not updated correctly, and radiotray-ng still uses the previous sound output while all other sound from the computer uses the selected sound output.

I can reproduce this very easily by doing this:

  1. Start radiotray-ng playback, and stop it again (first time playback is started correct sound output is always used).
  2. Change sound output in the sound settings.
  3. Start some other audio playback. Sound comes out of selected sound output.
  4. Start radiotray-ng playback. Sound from radiotray-ng comes out of previously selected sound output.

Are you able to reproduce this behavior, or is this something specific to my setup?

radiotray-ng 0.1.7
pulseaudio 11.0
alsa 1.1.4
kernel 4.9.41 and 4.12.12 (tested on both)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.