MythTV-Clients / MythTV-Android-Frontend

Implementation of MythTV .25+ Services API for Android
GNU General Public License v3.0
66 stars 16 forks source link

DVR Recordings pane is empty. #265

Open onley opened 10 years ago

onley commented 10 years ago

I have just installed the 1.20.6 beta and cannot see any of my recordings. The guide, upcoming, and recording rules are all working fine but I have no recordings in the recordings pane.

I am using 1.20.6 on a Moto-G phone with Android 4.4.2. My backend is a 0.26 running on Debian 7.

I have 10 years of recordings on the backend which have been through 5 or 6 upgrades of Myth and Database schemas. Having looked at a thread for a similar problem I have looked at the xml file from GetRecordedList (1.2 MB) and all programs have valid start and end times although some do have channel info that is no longer valid as I have been through DirectTV, Dish Network, and antenna as sources over the years.

If you could give me a clue as to what to look for in the xml I would be happy to check it out.

I should mention that the count at the top of the xml file states 702 programs but in acutality there is only 692 actual program listings. Apparently deleted programs are still included in the count until version 0.28. I would rather not upgrade at this time as it means upgrading several frontends as well.

billmeek commented 10 years ago

The root cause of this problem was an old recorded table entry with an invalid chanid. In the JSON response, it appeared as: "ChanId": "4294967295" and MAF handled the exception, but was prevented from loading the recordings. Removing the bad entry works around the bug.

An argument could be made that the backend should prevent such a chanid (which is a signed long -1) from being returned as an int. Not to mention that MythTV doesn't use negative chanids.

The exercise for MAF is to see if the JSON parser could intecept this, or, since we do catch the error, notify the user of the bad data.