
RadioList-mplayer
Source (link to git-repo or to original if based on someone elses unmodified work):
INSTALLATION: Uncompress the .tar.gz in some directory. Then open Superkaramba and select Add Local Theme. Browse for the .theme file you just decompressed and add it to your desktop.
USAGE: Add your favorite radios using the + button. A line edit box will show up. Type a short name for that radio to be displayed in the list and then type enter. Another line edit box will pop up. Paste the stream url there and press enter. The radio will be stored.
Play any radio by clicking on its name, or click with the middle button and select play.
Stop the stream by clicking the stop button, or clicking another radio to start playing.
Remove any radio by clicking it with the middle button and selecting Remove.
Edit any radio by clicking it with the middle button and selecting Edit.
WARNING: This version might be buggy.I tested it and seems to work ok, but if you find any problem please report it here. If the program hangs (check cpu usage) kill superkaramba typing killall superkaramba in a terminal and report the problem.
NOTE: Actually, this theme is a playlist for mplayer because it can play any file that mplayer handles, but its usage is for managing online radios, mainly because it doesn't continue with the next file in the list after the previous has stopped (if it is an online radio, it shouldn't stop)
It obviously requires mplayer
v0.51:
* Re written code for fetching song name and artist
* If no previous configuration found, a default configuration with various radios is copied to ~/.superkaramba
v0.5:
* Added support for displaying song name and artist, if StreamTitle string is supplied by the server (Shoutcast format I think). If it is not supplied it shows radio name and author, also if available.
v0.2:
* Added option to edit radio entries
* Moved pop up menu some pixels down for not removing entries accidentally
* Update interval reduced to 5000ms, but also improved some configuration updates
v0.1:
First Release
Ratings & Comments
8 Comments
Ok, finally I solved the problem rewriting almost all the code that fetched the names. It used threads for the names and subprocess poll() to now when mplayer exited. Now it uses executeinteractive & commandoutput, and a call to shell's ps (horrible trick) The source for 0.5 is still available for the curious that can explain me why it works if superkaramba is started on the command line.
I don't know yet why, but it works if you start superkaramba by command line. I was testing that way, to get debug output in the console. Now I see that if I start superkaramba from de kde menu, when you click on any radio cpu usage goes to 100% I will fix this as soon as I can, and if I cannot fix it I will upload last version again...
Been looking for this for some time...... great job boss! One suggestion: It would be great to display the artist and track info like amarok does...
Well, now it should display song and artist names. If you want, try it and report any problem you find.
I've been looking for an app like this for ages and my python skills aren't good enough to produce one. Great app. I look forward to see what direction it takes:) Any ideas of any PyQT or PyKDE programming for customizable settings like adding stations, skins, fonts etc... I wander whether it could be integrated with Aero AIOhttp://www.kde-look.org/content/show.php/Aero+AIO?content=24626 as it already has a customizable interface. Great work and all the best Dave
Well, my python skills aren't good neither. If you take a look at the code, it's really basic. I would like to make it more configurable but, I don't know much of PyQT for integrating a gui for settings or something like that. The input boxes look really awful, but that's the best I could do with karamba api. And it would be nice also to make the .skz install the widget in ~/.superkaramba like liquidweather++ and other widgets does, so the icons in the menu will appear, but I don't know how to do that neither. Thanks for the comment!
Hi I think I may learn python as it's been a while since I programmed anything and that was programming for windows. I looked at the Aero AIO stuff and it doesn't look to hard to port it into. Actually the torrent AIO is a good exmaple. Found here http://www.kde-look.org/content/show.php/Ktorrent+Aero+AIO?content=60355 I've just taken your code and added a mute button to the program and changed the icons. Do you want me to email it back to you? Cheers Dave my email add is dave_p_b(at)hotmail(dot)com if you want to get in contact :)
Great theme - it works! i have put in my favo stations there - and hell i can costumize it to ! the fonts and background see .. anyway i like it and the way i have it on my desk - and the best -- my girlfriend like it too - keep it up ..