Digitally Imported and Sky.fm XBMC addons v3.0.x released

Posted by | Posted in XBMC | Posted on 04-02-2014

About a month ago I released version 3.0.x of both the Digitally Imported and Sky.FM plugins for XBMC 12.x (codename Frodo).Digitally Imported XBMC plugin logo

Once again I’ve done a total rewrite of the code, making it (the code) much less dependent on the HTML/DOM layout of the pages by using the JSON available on the sites.
The most obvious change for users of the plugins are that they have gotten A LOT faster by multithreading the processes handeling getting of channelart and channel streams.

Sky.fm XBMC addon iconA few small fixes have been made to both plugins since their release about a month ago, making the latest version of the Digitally Imported plugin 3.0.2 and Sky.FM 3.0.4.

Digitally Imported source: https://github.com/Bitcrusher/Digitally-Imported-XBMC-plugin
Sky.FM source:  https://github.com/Bitcrusher/Sky-FM-XBMC-plugin

JazzRadio.com v1.0.0 XBMC addon released

Posted by | Posted in Python, XBMC | Posted on 07-11-2012

Little over a week ago my latest XBMC addon, JazzRadio.com, got added to the offfical Eden repository.

JazzRadio.coms own description:
Presenting jazz radio channels for your enjoyment. Listen for free and enjoy countless hours of the best jazz music around.

26 Oct 2012 v1.0.0
+ Initial release
+ Premium and premium favorites support
+ Automatic download of new channel art for new channels

Digitally Imported and Sky.fm XBMC addons v2.0.0 released

Posted by | Posted in Python, XBMC | Posted on 06-10-2012

I finally got around to rewriting the DI.fm and Sky.fm addons so they have a much more generalized codebase, so they make use of JSON data available with the URLs to playlists etc.

This makes them independent of the frontpages design and the regexs that was used to scrape the needed data from the frontpages html in the last version, and thus making it much less prone to break.

The icons used to represent each channel, is still scraped from the frontpage html using regex, as theres no JSON for those, and even if the frontpage changed radically, the addons should continue to work without icons, till the regexs could be updated.

Both addons can now be found in the official XBMC addon repository, in the Music addons category.

Sources for the addons can be found at my Github here: https://github.com/Bitcrusher

Here are some screenshots showing off how great the Aeon Nox skin makes the addons look.

Started looking into a XBMC Sky.fm addon

Posted by | Posted in Python, XBMC | Posted on 03-05-2012

Great Scott! Since the addon was added to the official XBMC repository on the 26th of April, a week ago, the number of active Digitally Imported addons has gone past 1300+, spread over 80+ different countries: http://stats.qualisoft.dk/

So after seeing this positive feedback, I’ve started laying down the groundwork and repurposing the Digitially Imported XBMC plugin, to enable it to play Sky.fm streams.

As can be seen from the attached screenshot, the selection of music from Sky.fm can be a bit more *cough* retro, from what DI.fm users are used to ;)

Digitally Imported XBMC plugin v1.1.0

Posted by | Posted in Python, XBMC | Posted on 24-04-2012

UPDATE: Version 1.1.1 of  the Digitally Imported XBMC plugin has been released

I finally got around to updating/redoing my Digitally Imported addon adding a lot of features I’ve wanted to do for a long time – and in the process rewriting about 80% of the code making it much cleaner and about 150 codelines lighter.

Also, with this released I’ve uploaded the source code to Github, hoping to have the plugin accepted in the Official XBMC add-on repository – and is currently awaiting approval from the XBMC staff – and when that happens it should be available to all XBMC 10 users and up.

When the plugin gets approved, it should (hopefully) auto-update the 1.0 version that people have manually installed from the .zip in the last release – which has 1500+ downloads so far by the way.

Also, as described in the changes below, I’ve made a stats functionality and it’s results is available at http://stats.qualisoft.dk and is optional, but on be default – and I know it’s a bit of a cheap trick ;) The statspage has only been set up quickly, I’ll work a bit more on it when stats starts coming in.

This new version has been tested on Linux and Win7 and XBMC 10 (Dharma) and XBMC 11 (Eden).

Whats new:

  • The addon is now GPL2
  • Added AAC+ streams – 1/2 bandwidth for the same quality
  • Premium AAC+ streams available 40/64/128k
  • Channelart will automatically be downloaded – for when new channels are added
  • Notification when new channels are added and new channels (when new channelart is found) are highlighted in orange – remains hightlighted till the cache is refreshed
  • Added stats system – results of this will be visible at http://stats.qualisoft.dk

What’s been improved/fixed:

  • Overhauled the whole plugin, removed lots of duplicate/redundant code = ~150 lines lighter code
  • Filesystem paths are resolved using getAddonInfo(‘path’) instead of os.getcwd()
  • All log output to switched from using the print function to xbmc.log
  • Revised add-on settings page – categorized in tabs

What’s been removed:

  • Removed MP3 stream support

Again, hopefully the plugin will be approved very soon, but I’ll put up the download link here one last time here.

Download Digitally Imported XBMC plugin v1.1.0

Instructions for installing the plugin can be found here, in the previous post for when v1.0 was released. It’s fine to either overwrite the old plugin.audio.di.fm directory or deleting it first – deleting it will get rid of deprecated files though.

If you’d like to check out the source, the Git can be found here: https://github.com/Bitcrusher/Digitally-Imported-XBMC-plugin

Also you can pull from the Git repo here: git://github.com/Bitcrusher/Digitally-Imported-XBMC-plugin.git

Digitally Imported XBMC plugin v1.0

Posted by | Posted in Python, Ubuntu, XBMC | Posted on 04-01-2012

UPDATE: Version 1.1.1 of  the Digitally Imported XBMC plugin has been released

I had holiday between Christmas and New Years, and pulled myself together and finshed up the Digitally Imported streaming music plugin for XBMC, finally hitting version 1.0.

This was actually quite lucky I had started work on it again as XBMC 11.0 Eden: Beta got release – which works great – and as Digitally Imported changed their website design at New Years, meaning: the plugin broke.

Version 1.0 means I’ve implemented all the functionality I originally set out to do:

  • Streaming of 96k public streams
  • The option to choose A-Z sorting or let the streams be displayed in the order they are at di.fm
  • A configurable cache function of stream URLs, for faster loading of the streamlist when using cached version + to not hammer DIs webserver (6 hours cache by default)
  • Unique channel icons for every channel – thank you to Ari Shohat from Digitally Imported for permission to use them
  • Premium login and premium streams
  • Premium users have the option to choose between 256k and 128k streams
  • Premium users may choose to use their ‘My Favorites’ playlist, only showing the streams they want

Download Digitally Imported XBMC plugin v1.0

What you need to do:

  • Make sure you have at least XBMC 10.1 – codename Dharma (XBMC 10.0 should work too)
  • Download Digitally Imported XBMC plugin v1.0
  • Unpack the archive, inside the archive is a folder called plugin.audio.di.fm, move it to one of the following locations, depending on your OS. Some unpacking programs extracts to a folder with the same name as the file it extracted from, meaning you could end up with a plugin.audio.di.fm folder within the plugin.audio.di.fm folder – Inception style – and that could screw things up.
    • Linux/Ubuntu – ~/.xbmc/addons/
    • Windows – C:\Users\<your_username>\AppData\Roaming\XBMC\addons\
    • OS X – ~/Library/Application Support/XBMC/addons/
  • From XBMC, the plugin is configured by left clicking or pressing C on the Digitally Imported folder in the music add-ons category and choosing Add-on settings.

The Digitally Imported XBMC plugin is broken

Posted by | Posted in Python, Ubuntu, XBMC | Posted on 03-01-2012

Around New Years Eve, di.fm changed it’s design, and thereby the plugin “broke”, or at least couldn’t find what it was looking for anymore.

Irony would have it that I had already started working on implementing the Premium settings the day before New Years, so I was made aware of the changes the day after.

I expect version 1.0 of the plugin to be out next weekend, around the 8th of January, with Premium, stream quality (premium has 256k and 128k) support and the option to use your ‘My Favorites’ playlist.

Download the updated Digitally Imported XBMC plugin v1.0 here

Digitally Imported XBMC plugin v0.71

Posted by | Posted in Python, XBMC | Posted on 25-07-2011

UPDATE: Version 1.1.1 of  the Digitally Imported XBMC plugin has been released

I found a bug that made it so the plugin diden’t really respect it if you had set it to never refresh the cache, which gives a significant speedboost when accessing the channellist.

Download Digitally Imported XBMC plugin v0.71

Download the updated Digitally Imported XBMC plugin v1.0 instead

Instructions for installing the plugin can be found at http://qualisoft.dk/2011/07/di-fm-digitally-imported-xbmc-plugin-v0-7/

Digitally Imported XBMC plugin v0.7

Posted by | Posted in Python, Ubuntu, XBMC | Posted on 24-07-2011

UPDATE: Version 1.1.1 of  the Digitally Imported XBMC plugin has been released

A totally unofficial and unendorsed XBMC plugin.

For quite some time now, I’ve been wanting to start coding Python, also I’ve been a longtime member of Digitally Imported‘s excellent streaming music service that at the time of writing this post, has 38 channels to choose from.

So I decided to combine those two things and write a DI plugin for the awesome open source media center XBMC, which coincidentally uses Python.

The plugin is in what i would call stable beta as I’ve seen no more bugs, the beta label is more to show that I want to do more with the plugin.

Currently it only supports the public streams in 96kb/s in MP3 format, the plan is to add support for Premium streams (256kb/s).

For now, it’s just a file download, but in the future I plan to have it added to the official XBMC repository, so it can be downloaded directly from within XBMC.

What you need to do:

  • Make sure you have at least XBMC 10.1 – codename Dharma (XBMC 10.0 should work too)
  • Download Digitally Imported XBMC plugin v0.7
  • Download the updated Digitally Imported XBMC plugin v1.0 instead
  • Unpack the archive, inside the archive is a folder called plugin.audio.di.fm, move it to one of the following locations, depending on your OS. Some unpacking programs extracts to a folder with the same name as the file it extracted from, meaning you could end up with a plugin.audio.di.fm folder within the plugin.audio.di.fm folder – Inception style – and that could screw things up.
    • Ubuntu – ~/.xbmc/addons/
    • Windows – C:\Users\<your_username>\AppData\Roaming\XBMC\addons\
    • OS X – ~/Library/Application Support/XBMC/addons/
  • From XBMC, the plugin is configured by left clicking or pressing C on the Digitally Imported folder in the music add-ons category and choosing Add-on settings.

It has a few settings, like sorting from A-Z or keeping the order they’re show in at frontpage of di.fm, and choosing to never refresh the stream cache, resulting in the channellist gets shown much faster.

The plugin has been tested on XBMC 10.1 running on both Ubuntu 10.10 – Maverick Meerkat and Windows 7, so I’m crossing my fingers for similar results with your system. If you encounter any problems, a note in the comments would be greatly appreciated.

Making XBMC work with ION graphics, VDPAU and making the digital sound work over HDMI in Ubuntu

Posted by | Posted in Ubuntu, XBMC | Posted on 19-07-2011

Ubuntu logoThe story

I finally got around to buying a ITX machine to use as a dedicated Media Center. in the form of XBMC – and Ubuntu as the OS of course.

The mobo is a Zotac IONITX-F-E with a 1.8ghz dual core CPU, NVIDIA GeForce 9400 GPU, which is powerful enough to run 1080p video.

I started out by installing Ubuntu 11.04 Natty Narwhal, the installation went flawless as expected and I installed all the packages I needed – that basicly only consisted of XBMC and the propritary NVidia driver, but the system just seemed kinda sluggish, especially notable when scrolling in a terminal.

The problem was that even though I activated the propritary Nvidia driver, it said “This driver is activated but not currently in use” under System->Administration->Hardware Drivers.

The Nvidia driver enables you to use VDPAU, which is hardware acceleration of video, essential to showing MKV and MP4 video.

After a long night, installing packages I’ve never heard of and adding various lines to the xorg.conf, under advice from forums where people had proclaimed having the same problem, I still weren’t able to make Ubuntu 11.04 use the NVidia driver, so I ended up installing Ubuntu 10.10 – Maverick Meerkat and ahhh…. bliss.

The propritary driver now finally worked as it should and the system didn’t seem sluggish anymore.

What you need to do

  • Get Ubuntu 10.10 Maverick Meerkat – don’t bother with 11.04 (for ION based machines at least, as the NVidia driver seems to be broken under 11.04 at the moment)
  • Set the GPU in the BIOS to have more then 64mb of RAM, I suggest maxing it out to 512mb or as close to as possible
  • Enable the propritary NVidia drivers from System->Administration->Hardware Drivers
  • Add the XBMC launchpad PPA and install XBMC from the terminal
    • sudo add-apt-repository ppa:team-xbmc
    • sudo apt-get install update
    • sudo apt-get install xbmc
  • Install the VDPAU driver to enable HW accelerated video
  • Change it so the integrated soundcard uses both HDMI and analog output by choosing Digital Stereo (HDMI) Stereo + Analog Stereo output, instead of just Analog Stereo Duplex (see screenshot below) from the Sound Preferences
    • If you have problems with the sound, try the following from a terminal
      • sudo apt-get install linux-backports-modules-alsa-2.6.35-22-generic alsa-utils
  • Lastly – and optionally -  add XBMC to System->Administration->Startup Applications

I’d just like to add, that this worked for ME on MY setup, so please bear that in mind.