/lineups URL returns nonsense after adding a deleted lineup

/lineups URL returns nonsense after adding a deleted lineup

Postby glugglug » Wed Oct 14, 2015 9:25 pm

After searching for a QAM lineup to try to see what they look like (will make a separate post on this), I could only find what appeared to be an invalid one. Added it to my account anyway.

Here is the resulting JSON from https://json.schedulesdirect.org/20141201/lineups after doing this (added linefeeds for a little readability):

Code: Select all
{"code":0,"serverID":"20141201.web.2","datetime":"2015-10-15T03:48:46Z","lineups":[
{"lineup":"GBR-0001189-DEFAULT","name":"BSkyB - Scotland","transport":"Satellite","location":"United Kingdom","uri":"\/20141201\/lineups\/GBR-0001189-DEFAULT"},
{"lineup":"USA-NY67791-QAM","name":"DELETED LINEUP","transport":"Deleted","location":"United Kingdom","uri":"\/20141201\/lineups\/GBR-0001189-DEFAULT","isDeleted":true},
{"lineup":"USA-NY67791-X","name":"Verizon Fios Queens - Digital","transport":"Cable","location":"Fresh Meadows","uri":"\/20141201\/lineups\/USA-NY67791-X","isDeleted":true},
{"lineup":"USA-OTA-11566","name":"Local Over the Air Broadcast","transport":"Antenna","location":"11566","uri":"\/20141201\/lineups\/USA-OTA-11566","isDeleted":true}]}


The only actual deleted lineup in the account is the 2nd one, which lists a bogus location and uri, and causes all later lineups in the response to have isDeleted=true. Deleting the lineup from my account returns the 2 lineups after it to normal.
glugglug
 
Posts: 16
Joined: Wed Oct 14, 2015 8:52 pm

Re: /lineups URL returns nonsense after adding a deleted lin

Postby rkulagow » Thu Oct 15, 2015 4:34 am

Yeah, it looks like something is going wrong. Send me an email (rkulagow@gmail.com) with your Schedules Direct username and I will turn on debugging so that I can check that portion of the code.
rkulagow
SD Staff
 
Posts: 911
Joined: Tue Aug 14, 2007 3:15 pm


Return to Developer

Who is online

Users browsing this forum: Google [Bot] and 7 guests

cron