Thanks for this – I found it very helpful!
I've done some testing and have now got the plugin working. I found the
checkForAvailableChannels
method was failing after calling
getRegionChannels
at line 123 (of BBCDataService.java version 6858) so it didn't get to adding channels. This also explains why the '..\bbcdataservice.BBCDataService\index' file was being left behind after updating channels as the method wasn't getting to the
file.delete()
command at line 137.
I found this was related to exceptions although I don't fully understand it. I found that removing
throws IOException, MalformedURLException
from
getRegionChannels
at line 256 and putting the contents of
getRegionChannels
(lines 259-301) within a
try {…} catch {..}
then made the plugin work correctly and the extra channels became available.
An extra, minor error was due to a line in
http://www.bbc.co.uk/radio4/programmes/schedules with
<a href="/radio4/programmes/schedules/fm">View full schedule</a></p>
so instead of getting a channel called 'Radio 4 (FM)' I was getting 'Radio 4 (View full schedule)'.
To avoid this I replaced line 275
if ("Schedule".equalsIgnoreCase(regionName))
by
if ("Schedule".equalsIgnoreCase(regionName)||"View full schedule".equalsIgnoreCase(regionName))
I attach the amended BBCDataService.java file. I suggest TV-Browser developers make a corrected BBCDataService.jar file available. (I'm nervous about making available the one I created in case it causes other problems and can't be supported.)
I really like TV-Browser – thank you!