Opened 19 years ago
Closed 19 years ago
#4055 closed patch (fixed)
Fix broken find_meta.py, handle exceptions, correctly detect if video has metadata
| Reported by: | Owned by: | Anduin Withers | |
|---|---|---|---|
| Priority: | minor | Milestone: | unknown |
| Component: | mythvideo | Version: | head |
| Severity: | medium | Keywords: | |
| Cc: | Ticket locked: | no |
Description
Find_meta.py: Surround IMDB lookup with a try/catch so the import continues even if there is an error.
MythTV.py: Added a method hasMetadata(videopath). This will correctly identify whether or not a given file path has valid metadata in the myth db. I check for default category and year values and return False if they have not been changed.
imdbpy.py: Fixed a bug where sometimes the imdb module would return a movie with no Year in the key. This defaults to 1901 if that happens instead of stopping import.
Attachments (2)
Change History (4)
by , 19 years ago
| Attachment: | scanner.patch added |
|---|
by , 19 years ago
| Attachment: | metadata_fixes_svn_head.diff added |
|---|
comment:1 by , 19 years ago
Added another patch that relies on scanner.patch to do a better job of detecting if a video that has been found honestly has metadata in the myth db. If the metadata is all set to defaults from the videomanager (category 0, year 1895), then update it with the correct metadata pulled from imdb.
Also, fixed a bug where sometimes imdb would return two identical matches. Check to see if two matches are returned and if they are identical. If so, pick the first.
comment:2 by , 19 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |

Patch