2010-09-21, 01:13 AM
I have been poking around the new database structure to update guidePlus and vidImport.
One thing they both do is a query on the database to get a list of upcoming or previous recordings that are TV series - for renaming and adding extra EPG info etc.
This was a very simple query before - Just look at recordings joined with the epg where the unique_ID starts with EP (at least with schedules direct data)
Now already recorded shows save their data in a field embedded in XML and these recordings have lost their unique IDs and a host of other data, so I would have to pull the epg_ID out of the XML link it the EPG table and hope that it is still in the there, then check if it is a series.
So, I guess my wish for this task is to see the unique program ID saved as a field for scheduled_recordings (which would also allow easily allow not recording dups again as well).
But in general it begs the question why so stingy with fields. If you don't want a titles data in the EPG after its time has passed why not just another table (completed_events/scheduled_events?) with a full set of fields that the scheduled_recordings could link to. Just my two cents but it seems the stored XML offers little in the way of advantage and limits what the database can do.
Thanks for all your effort and the new toy BTW!!
One thing they both do is a query on the database to get a list of upcoming or previous recordings that are TV series - for renaming and adding extra EPG info etc.
This was a very simple query before - Just look at recordings joined with the epg where the unique_ID starts with EP (at least with schedules direct data)
Now already recorded shows save their data in a field embedded in XML and these recordings have lost their unique IDs and a host of other data, so I would have to pull the epg_ID out of the XML link it the EPG table and hope that it is still in the there, then check if it is a series.
So, I guess my wish for this task is to see the unique program ID saved as a field for scheduled_recordings (which would also allow easily allow not recording dups again as well).
But in general it begs the question why so stingy with fields. If you don't want a titles data in the EPG after its time has passed why not just another table (completed_events/scheduled_events?) with a full set of fields that the scheduled_recordings could link to. Just my two cents but it seems the stored XML offers little in the way of advantage and limits what the database can do.
Thanks for all your effort and the new toy BTW!!