forked from MythTV/mythtv
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle null timestamp or runtime TvMaze fields
In rare cases, the TvMaze database provides null timestamp or runtime data fields. To make the metadata retrieval script more fault tolerant, null checks have been added for these values. When the timestamp field is null, don't use it to generate a datetime to use in a search for a matching episode. When the runtime duration field is null, the delta size is now set to zero minutes. The code which looks for an episode match has been updated to separate "on time" recordings from "a little late" recordings to accommodate the possible delta size of zero. Refs: MythTV#654
- Loading branch information
Showing
1 changed file
with
35 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters