2009-05-13, 22:31
Now that I've had a look at the VideoInfoScanner code to make a small change to support being able to scrape MythTV recordings into the Video library the following might be an approach.
Create the new TVDB related API that can lookup based on air date. This will need to be newly coded.
Within the VideoInfoScanner, if the FileItem has a episode and season set to zero, then it knows to use the air date API. Pull the air date out of the FileItem and hit the new API on TVDB to get the actual episode and season values + all the other information that can then be added to the library.
For sources like MythTV the airdate can be populated into the FileItem element and the episode and season can be set to zero (pretty much already done).
Create the new TVDB related API that can lookup based on air date. This will need to be newly coded.
Within the VideoInfoScanner, if the FileItem has a episode and season set to zero, then it knows to use the air date API. Pull the air date out of the FileItem and hit the new API on TVDB to get the actual episode and season values + all the other information that can then be added to the library.
For sources like MythTV the airdate can be populated into the FileItem element and the episode and season can be set to zero (pretty much already done).