brianhornsby/tunein-xbmc — Issue #2: Loading of presets fails if users presets contain custom url.
Author: brianhornsby
Created: 2011-12-06 07:22:42+00:00
State: open

Created a folder called 'Test' with one custom url preset. Loading of presets in XBMC failed.
See log below

18:15:12 T:2960384000 M:400035840 NOTICE: -->Python Interpreter Initialized<--
18:15:26 T:2960384000 M:395501568 NOTICE: [TuneIn Radio] Addon: TuneIn Radio
18:15:26 T:2960384000 M:395509760 NOTICE: [TuneIn Radio] Version: 1.0.0
18:15:26 T:2960384000 M:395509760 NOTICE: [TuneIn Radio] Params: browse: {'c': '', 'name': 'Test', 'offset': '', 'filter': '', 'path': 'browse', 'pivot': '', 'id': 'f24218025'}
18:15:26 T:2960384000 M:395509760 NOTICE: [TuneIn Library] URL: http://opml.radiotime.com/Browse.ashx?partnerId=yvcOjvJP&id=f24218025&render=json&formats=mp3%2Cwma
18:15:31 T:2960384000 M:396099584 NOTICE: [TuneIn Radio] process_tunein_json
18:15:31 T:2960384000 M:396111872 NOTICE: [TuneIn Radio] presets: False
18:15:31 T:2960384000 M:396111872 NOTICE: [TuneIn Radio] add_link_outline
18:15:31 T:2960384000 M:396111872 NOTICE: [TuneIn Radio] link: {u'guide_id': u'u83778', u'is_preset': u'true', u'preset_number': u'1', u'URL': u'mms://mystation.com/playlist.pls', u'text': u'My Station', u'image': u'http://radiotime-logos.s3.amazonaws.com/s0q.png', u'element': u'outline', u'item': u'url', u'preset_id': u'u83778', u'type': u'link'}
18:15:31 T:2960384000 M:396111872 ERROR: Error Type: exceptions.IndexError
18:15:31 T:2960384000 M:396111872 ERROR: Error Contents: list index out of range
18:15:31 T:2960384000 M:396111872 ERROR: Traceback (most recent call last):
File "/Users/brianhornsby/Library/Application Support/XBMC/addons/plugin.audio.tunein/default.py", line 474, in ?
process_tunein_json(results)
File "/Users/brianhornsby/Library/Application Support/XBMC/addons/plugin.audio.tunein/default.py", line 145, in process_tunein_json
add_link_outline(element['link'])
File "/Users/brianhornsby/Library/Application Support/XBMC/addons/plugin.audio.tunein/default.py", line 192, in add_link_outline
params = utils.get_params(link['URL'].split('?')[1])
IndexError: list index out of range
18:15:31 T:2903003840 M:396046336 ERROR: GetDirectory - Error getting plugin://plugin.audio.tunein/?c=&name=Test&pivot=&filter=&offset=&path=browse&id=f24218025
18:15:31 T:2903003840 M:396046336 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.tunein/?c=&name=Test&pivot=&filter=&offset=&path=browse&id=f24218025) failed