Opened 15 years ago
Closed 15 years ago
#6418 closed enhancement (fixed)
Additions to MythVideo.py
Reported by: | Owned by: | Anduin Withers | |
---|---|---|---|
Priority: | minor | Milestone: | 0.22 |
Component: | Bindings - Python | Version: | |
Severity: | low | Keywords: | mythvideo python |
Cc: | Ticket locked: | no |
Description
Three new routines added to MythVideo?.py
1) getTitleId - Retrieve the intid from the videometadata table matching the passed title or returns None if the metadata record does not exist.
2) getTableFieldNames - Return an array of table field names from the passed table name or returns None if the table does not exist.
3) getMetadataDictionary - Return a dictionary of field names with meta data for the passed video file or returns None if the video file has no videometadata record.
The 'getMetadataDictionary' routine allows python scripts to remain somewhat resilient to changes in the videometadata table as the 'getMetadata' routine passes a array of metadata which assumes your script is aware of the exact position of the fields in the videometadata table.
This patch does not change any of the existing MythVideo?.py functionality.
Attachments (2)
Change History (4)
Changed 15 years ago by
Attachment: | MythVideo.patch added |
---|
Changed 15 years ago by
Attachment: | MythVideo_enhancements_v2.patch added |
---|
Version 2 replaces previous patch and adds functionality to getTitleId()
comment:1 Changed 15 years ago by
Version 2 replaces the previous MythVideo?.py binding enhancement patch and adds:
1) A new parameter for the getTitleId() function to return an array of intids for all matching search results. This is important for TV series searches such as "all episodes". For backward compatibility a single intid will still be returned if the array argument is not set to true, although the returned intid is random when there are more than one search result found.
2) Additional optional search criteria for the getTitleId() function (subtitle, season and episode numbers). These new search criteria allow for searching any combination of a TV series: (a) all episodes; (b) all episodes for a specific season number; (c) a specific episode by season and episode number; (d) a specific episode by subtitle. These new search options should always be used with the array option set to True.
comment:2 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
(In [21050]) Fixes #6418, this adds in some extended functionality to MythVideo?.py, and does not change any existing functionality
MythVideo?.py