INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Feature request for MC 21 for Linux  (Read 4831 times)

geier22

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 427
Feature request for MC 21 for Linux
« on: August 09, 2015, 12:30:34 am »

My wishes for a better view of the web radio will probably never considered. I had often wished but never even get an answer. OK- then I use other programs for the web radio, which can represent this better.
Another request is the better integration of MC in Linux.
Nearly all media player are able to send the currently playing song to the notifications. MC does not do that. I am not a programmer, but I think the interface is the same for the notifications in all desktop environments. It would be nice if this would be realized in MC 21.

I'm MC users since MC 8. Unfortunately, it is so that I use MC only for managing my music collection. For all other things - manage movies - listen to web radio - there are better programs - even in Linux. Instead, a lot of energy is invested in all kinds of servers and streaming solutions and porting to ARM machines. Sorry, but I must not necessarily walk with earbuds in the ear through the streets and listen to my music on the home server. I think that's perverse. It may be that the majority of users want these features - I do not need most of it.
Logged
Debian Testing x64 (multiarch) Xfce
TEAC UD-H01 - Yamaha A-S1000 /
Midrange- Studiomonitore by FÖÖN
AsRock Z390 Extreme4- Intel Core i9 9900/ 32 GB Ram

mwillems

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5234
  • "Linux Merit Badge" Recipient
Re: Feature request for MC 21 for Linux
« Reply #1 on: August 09, 2015, 09:52:58 am »

My wishes for a better view of the web radio will probably never considered. I had often wished but never even get an answer. OK- then I use other programs for the web radio, which can represent this better.
Another request is the better integration of MC in Linux.
Nearly all media player are able to send the currently playing song to the notifications. MC does not do that. I am not a programmer, but I think the interface is the same for the notifications in all desktop environments. It would be nice if this would be realized in MC 21.

I'm not sure that the notification system is the same in all DEs, but I agree it would be nice to take advantage of that kind of OS integration.

In the meanwhile, you can do something similar with conky, see: http://yabb.jriver.com/interact/index.php?topic=98285.0

I've been using it for a while now and it works pretty well.  I can always see what's playing on the desktop background, and it's easily customizable as to what kind of info you display, etc.

Logged

geier22

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 427
Re: Feature request for MC 21 for Linux
« Reply #2 on: August 09, 2015, 01:11:14 pm »

I'm not sure that the notification system is the same in all DEs, but I agree it would be nice to take advantage of that kind of OS integration.

I found this:http://ubuntuforums.org/showthread.php?t=1411620

I testet in KDE and Cinnamon:
Code: [Select]
hans@enp2so:~$ notify-send "Message Title" "Hallo mwillems this is the Song MC is playin now:Listening to: 'Why Does Love (Have To Go Wrong)' from 'Around The Next Dream' by 'BBM (Bruce, Baker and Moore)' with JRiver Media Center 20" -i /usr/share/pixmaps/idle.xpm -t 5000
hans@enp2so:~$
Logged
Debian Testing x64 (multiarch) Xfce
TEAC UD-H01 - Yamaha A-S1000 /
Midrange- Studiomonitore by FÖÖN
AsRock Z390 Extreme4- Intel Core i9 9900/ 32 GB Ram

mwillems

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5234
  • "Linux Merit Badge" Recipient
Re: Feature request for MC 21 for Linux
« Reply #3 on: August 09, 2015, 02:00:48 pm »

I found this:http://ubuntuforums.org/showthread.php?t=1411620

I testet in KDE and Cinnamon:
Code: [Select]
hans@enp2so:~$ notify-send "Message Title" "Hallo mwillems this is the Song MC is playin now:Listening to: 'Why Does Love (Have To Go Wrong)' from 'Around The Next Dream' by 'BBM (Bruce, Baker and Moore)' with JRiver Media Center 20" -i /usr/share/pixmaps/idle.xpm -t 5000
hans@enp2so:~$


My point was that not all DE's support libnotify (at least not natively). Gnome, KDE, and Cinnamon do.  XFCE, LXDE, and several others lack native support.  See https://wiki.archlinux.org/index.php/Desktop_notifications.

You can get them working in most DE's with external plugins, but even then there's a few (like LXDE) that don't support them.

If you just want libnotify notifications, you could probably pretty easily script notifications yourself using MC's MCWS framework.  You could run a script that queries .MCWS at intervals, does a comparison, and then issues a notification on track change.  A lot of the architecture you'd need is already in the backend for my conky scripts linked above. 
Logged

mwillems

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5234
  • "Linux Merit Badge" Recipient
Re: Feature request for MC 21 for Linux
« Reply #4 on: August 09, 2015, 03:42:27 pm »

Just to show that this can be user implemented relatively easily, here's a bash script that submits a libnotify notification on track change.  It runs every two seconds, and shows the Artist,  Album, and Track title.  With a little more work, you might even be able to get it to show the album art, but that looked like a bit more work than I felt like doing for a proof of concept.  It will run until you kill it, so is suitable to launch with your DE's startup.  It's not perfect; it performs some very basic data validation, but folks could easily make it more robust and/or add more functionality.  

The script assumes the MC instnace you want to monitor is running locally and that the server is available on the default port; you need to have enabled media network for it to work (I'm pretty sure the web interface depends on it). I tested on Gnome and Cinnamon, and it ran nicely.

I call the script "MC_Notifier".  It's provided as is, with no warranty whatsoever, etc., etc.  Hope this helps:

Code: [Select]
#!/bin/bash

mkdir -p ~/.MC_Notifier
touch ~/.MC_Notifier/Filekey.Current

while true; do
wget -q localhost\:52199/MCWS/v1/Playback/Info\?Zone\=\-1 -O ~/.MC_Notifier/Info
mv ~/.MC_Notifier/Filekey.Current ~/.MC_Notifier/Filekey.Old
sed -n 's:.*<Item Name="FileKey">\(.*\)</Item>.*:\1:p' ~/.MC_Notifier/Info > ~/.MC_Notifier/Filekey.Current
diff ~/.MC_Notifier/Filekey.Current ~/.MC_Notifier/Filekey.Old > /dev/null
if [[ $? -ne 0 ]]; then
       sed -- 's/\&amp;/\&/g' ~/.MC_Notifier/Info > ~/.MC_Notifier/Info2
   mv ~/.MC_Notifier/Info2 ~/.MC_Notifier/Info
ALBUM=$(sed -n 's:.*<Item Name="Album">\(.*\)</Item>.*:\1:p' ~/.MC_Notifier/Info)
ARTIST=$(sed -n 's:.*<Item Name="Artist">\(.*\)</Item>.*:\1:p' ~/.MC_Notifier/Info)
TRACK=$(sed -n 's:.*<Item Name="Name">\(.*\)</Item>.*:\1:p' ~/.MC_Notifier/Info)
notify-send -t 2000 "$ALBUM" "$ARTIST - $TRACK"
fi
sleep 2
done
Logged

geier22

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 427
Re: Feature request for MC 21 for Linux
« Reply #5 on: August 09, 2015, 04:08:57 pm »

Wonderful !!! Thanks alot ! :D :D

Unfortunately, I have not the slightest idea of such scripts. But I'll try me learn it.
The best would of course, this script could - Visually improved - be a real Plugin for MC for Linux.
Logged
Debian Testing x64 (multiarch) Xfce
TEAC UD-H01 - Yamaha A-S1000 /
Midrange- Studiomonitore by FÖÖN
AsRock Z390 Extreme4- Intel Core i9 9900/ 32 GB Ram

geier22

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 427
Re: Feature request for MC 21 for Linux
« Reply #6 on: August 09, 2015, 04:42:33 pm »

Give him an inch and he will take a yard ... ::) ::) ::)

in the featcher request I wished that the radio- display is improved.
At the moment you can see the title and artist of the played song only in the upper display. (which was in MC for Windows the same]
The "Copy Listening To" prints only the station.
Code: [Select]
Listening to: 'Polskastacja - Blues' with JRiver MediaCenter 20 In the "Now Playing" Window only the station is displayed.

When I listen to web radio, the script does not transfer data to the notifications.It seems as if the upper display a unique role.

Very pretty, I find the notification from "Radio Tray" (picture)

But I think this is a greater work. That would be a feature, over whom I would be very happy, because I'm waiting for this for years.
Logged
Debian Testing x64 (multiarch) Xfce
TEAC UD-H01 - Yamaha A-S1000 /
Midrange- Studiomonitore by FÖÖN
AsRock Z390 Extreme4- Intel Core i9 9900/ 32 GB Ram

ranmaru

  • Recent member
  • *
  • Posts: 7
Re: Feature request for MC 21 for Linux
« Reply #7 on: August 27, 2015, 11:17:31 am »

I think in some point I lost track of mc for linux. Right now has video support?, I'm asking this because I read the subtitle support and the last time I enter to the forum, wasn't video support (don't remember how long was that)

I was waiting for this to purchase MC!
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72438
  • Where did I put my teeth?
Re: Feature request for MC 21 for Linux
« Reply #8 on: August 27, 2015, 11:26:44 am »

I think in some point I lost track of mc for linux. Right now has video support?, I'm asking this because I read the subtitle support and the last time I enter to the forum, wasn't video support (don't remember how long was that)

I was waiting for this to purchase MC!
MC21 has subtitle support.  Video was added in MC20.

The builds are posted at the top of this board.
Logged

ranmaru

  • Recent member
  • *
  • Posts: 7
Re: Feature request for MC 21 for Linux
« Reply #9 on: August 31, 2015, 10:28:37 am »

MC21 has subtitle support.  Video was added in MC20.

The builds are posted at the top of this board.

OK!
Thanks for the info, I'll try it to look how it works on opensuse ~_n
Logged
Pages: [1]   Go Up