I would like to write a post-processor script that renames recordings with season and episode numbers, so they can be scraped by XBMC. I'm getting EPG data from tv_grab_na_dd, so I have episode numbers like this 'EP00848357.0009'. They come through the DVR file name like this: 'E09'. There doesn't seem to be a reliable way to directly convert a dd_progid to separate season and episode numbers.
The data from Schedules Direct includes the original air date in the date tag. With that I could make an API call to TheTVDB to get the season and episode numbers used by the scraper.
Is there any way to use the original air date in the recording file name, or get it included in the environment passed to the post-processor script? If not is there a way I can tell TVH to use the contents of the date tag as the episode number? I'm using a version of TVH I downloaded from GitHub yesterday.