DVR recordings and the original air date
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.
RE: DVR recordings and the original air date - Added by Hein Rigolo over 10 years ago
if you are using mkv as the recording container (default) then you should be able to query the metadata contained in the mkv to get the recording date and other information.
Have a look at the record mkv to see what metadata is contained inside the mkv that you can use.
The only date in the metadata is the DATE_BROADCASTED, so the original air date isn't available there either. The episode is available in the PART_NUMBER, but it comes through as just '9'.