Schedules Direct - new data service

For talk and Help about everything concerning TV-Browser.
rmeden
Newbie
Beiträge: 7
Registriert: 24 Okt 2014, 21:50

Re: Schedules Direct - new data service

Beitrag von rmeden »

Ah, so output is written to the console, I was clicking the icon provided.

Code: Alles auswählen

2014-10-26T19:50:59Z    Finished reading response from server
2:50:59 PM SEVERE: The TV data service 'SchedulesDirect' has caused an error during update TV data: null
java.lang.NullPointerException
        at schedulesdirectdataservice.SchedulesDirectDataService.updateTvData(SchedulesDirectDataService.java:168)
        at tvbrowser.core.tvdataservice.DefaultTvDataServiceProxy.updateTvData(DefaultTvDataServiceProxy.java:98)
        at tvbrowser.core.TvDataUpdater.downloadTvData(TvDataUpdater.java:260)
        at tvbrowser.ui.mainframe.MainFrame$36.run(MainFrame.java:2368)
Line 168 seems to be " if (xtvdProgram.getColorCode() != null) { "

colorCode is there for some programs, but I don't think it was even available for all programs with Tribune's service. Heck, the code even seems to check for null.

I don't know what to change on my end.
old
<program id='EP000012570110'>
<title>The Dick Van Dyke Show</title>
<subtitle>I&apos;m No Henry Walden!</subtitle>
<description>Rob finds himself very out of place at a dinner party for several celebrated literati.</description>
<showType>Series</showType>
<series>EP00001257</series>
<colorCode>B & W</colorCode>
<syndicatedEpisodeNumber>55</syndicatedEpisodeNumber>
<originalAirDate>1963-03-27</originalAirDate>
</program>
new
<program id='EP000012570110'>
<series>EP00001257</series>
<title>The Dick Van Dyke Show</title>
<subtitle>I&apos;m No Henry Walden!</subtitle>
<description>Rob finds himself very out of place at a dinner party for several celebrated literati.</description>
<showType>Series</showType>
<colorCode>B & W</colorCode>
<originalAirDate>1963-03-27</originalAirDate>
<syndicatedEpisodeNumber>55</syndicatedEpisodeNumber>
</program>
ds10
Site Admin
Beiträge: 19101
Registriert: 23 Jun 2005, 12:36
Kontaktdaten:

Re: Schedules Direct - new data service

Beitrag von ds10 »

That simly means that xtvdProgram is null because that is the only value in that line that can cause the NPE.
"First they ignore you, then they ridicule you, then they fight you, then you win." - Mahatma Gandhi
Unterstütze die Weiterentwicklung von TV-Browser
rmeden
Newbie
Beiträge: 7
Registriert: 24 Okt 2014, 21:50

Re: Schedules Direct - new data service

Beitrag von rmeden »

Ok so then it's dying here:

Code: Alles auswählen

net.sf.xtvdclient.xtvd.datatypes.Program xtvdProgram = xtvd.getPrograms().get(schedule.getProgram());
No idea why.. the data is there.
ds10
Site Admin
Beiträge: 19101
Registriert: 23 Jun 2005, 12:36
Kontaktdaten:

Re: Schedules Direct - new data service

Beitrag von ds10 »

I've uploaded a new version of the data service with more logging information about the data prozessing:
http://www.tvbrowser.org/downloads/test ... ervice.jar
"First they ignore you, then they ridicule you, then they fight you, then you win." - Mahatma Gandhi
Unterstütze die Weiterentwicklung von TV-Browser
rmeden
Newbie
Beiträge: 7
Registriert: 24 Okt 2014, 21:50

Re: Schedules Direct - new data service

Beitrag von rmeden »

So it's trying to set a text field?

BTW, you can create an account yourself at SchedulesDirect.org.... pick a lineup.. 90210 is a postal code in CA. It comes with a 7 day day trial, but as an app developer you get some free accounts for testing anyway.

Code: Alles auswählen

2014-10-27T19:33:00Z    Parsing genres top-level element
2014-10-27T19:33:00Z    Finished parsing XTVD document
2014-10-27T19:33:00Z    Finished reading response from server
2:33:00 PM SEVERE: The TV data service 'SchedulesDirect' has caused an error during update TV data: null
java.lang.NullPointerException
        at tvdataservice.MutableProgram.setTextField(MutableProgram.java:648)
        at tvdataservice.MutableProgram.setTitle(MutableProgram.java:770)
        at schedulesdirectdataservice.SchedulesDirectDataService.updateTvData(SchedulesDirectDataService.java:190)
        at tvbrowser.core.tvdataservice.DefaultTvDataServiceProxy.updateTvData(DefaultTvDataServiceProxy.java:98)
        at tvbrowser.core.TvDataUpdater.downloadTvData(TvDataUpdater.java:260)
        at tvbrowser.ui.mainframe.MainFrame$36.run(MainFrame.java:2368)
ds10
Site Admin
Beiträge: 19101
Registriert: 23 Jun 2005, 12:36
Kontaktdaten:

Re: Schedules Direct - new data service

Beitrag von ds10 »

I've uploaded a new version for testing.
"First they ignore you, then they ridicule you, then they fight you, then you win." - Mahatma Gandhi
Unterstütze die Weiterentwicklung von TV-Browser
gcar
Newbie
Beiträge: 9
Registriert: 20 Jan 2014, 03:17

Re: Schedules Direct - new data service

Beitrag von gcar »

Yeah, the new version is working with TV-Browser Version: 3.4.0.97 RC. I was able to update (set for 7 days) and all the channels contain complete information. Thank you :D
rmeden
Newbie
Beiträge: 7
Registriert: 24 Okt 2014, 21:50

Re: Schedules Direct - new data service

Beitrag von rmeden »

excellent! What was the problem?
ds10
Site Admin
Beiträge: 19101
Registriert: 23 Jun 2005, 12:36
Kontaktdaten:

Re: Schedules Direct - new data service

Beitrag von ds10 »

You can see it in your post with the new and the old data. The order of the entries is not the same.
"First they ignore you, then they ridicule you, then they fight you, then you win." - Mahatma Gandhi
Unterstütze die Weiterentwicklung von TV-Browser
rmeden
Newbie
Beiträge: 7
Registriert: 24 Okt 2014, 21:50

Re: Schedules Direct - new data service

Beitrag von rmeden »

Ah, interesting... from the Java code I saw, I'm surprised the order matters, but yea the order changed. (I matched the TMS spec)
ds10
Site Admin
Beiträge: 19101
Registriert: 23 Jun 2005, 12:36
Kontaktdaten:

Re: Schedules Direct - new data service

Beitrag von ds10 »

Well it should not matter but it did, therefor it could not work with a changed order. Should not happen again, even if the order would change.
"First they ignore you, then they ridicule you, then they fight you, then you win." - Mahatma Gandhi
Unterstütze die Weiterentwicklung von TV-Browser
jdonato
Full Member
Beiträge: 81
Registriert: 14 Sep 2008, 21:45

Re: Schedules Direct - new data service

Beitrag von jdonato »

This is great news! I would like to thank rmeden , ds10, Jo and everyone else who collaborated in this effort.
I'll try that new version now!
jdonato
Full Member
Beiträge: 81
Registriert: 14 Sep 2008, 21:45

Re: Schedules Direct - new data service

Beitrag von jdonato »

I can confirm it is working perfect now. Thanks! :D

Mac OS X 10.10 (Yosemite), TV-Browser 3.4.0.97 RC, Java 1.6.
weamish
Junior Member
Beiträge: 13
Registriert: 05 Dez 2013, 16:32

Re: Schedules Direct - new data service

Beitrag von weamish »

ds10 hat geschrieben:I've uploaded a new version for testing.
Where would I find the new version 3.4.0.97 RC? I don't see it at tvbrowser.org

Thanks!
Jo
Site Admin
Beiträge: 11805
Registriert: 07 Apr 2006, 23:39

Re: Schedules Direct - new data service

Beitrag von Jo »

weamish hat geschrieben:Where would I find the new version 3.4.0.97 RC? I don't see it at tvbrowser.org
You can get it from http://hilfe.tvbrowser.org/viewtopic.ph ... 30#p108330
But you don't need it to have Schedules Direct updated. For this you only need to use "update plugins" in the TVB menu.
Antworten