ampedandwired/rdio-xbmc — pull request #7 by matt-moser (2013-07-15 01:48:03+00:00)
Title: Changed stream_mode to default gracefully when setting is invalid

I was seeing playback errors related to this setting being undefined somehow. I'm assuming this occurred because of upgrading XBMC and the addon settings were lost. Looking at the code, it appeared that there was an intention to default to flash streaming when the setting was not explicitly set. However, with the setting missing, get_setting was returning and unparsable empty string.

This may not be in the spirit of the original code, but I'm added some error handling for this case that hopefully results in fewer headaches for users that don't care about the stream mode.