Opened 12 years ago

Closed 11 years ago

#6418 closed enhancement (fixed)

Additions to

Reported by: r.d.vaughan@… Owned by: Anduin Withers
Priority: minor Milestone: 0.22
Component: Bindings - Python Version:
Severity: low Keywords: mythvideo python
Cc: Ticket locked: no


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)

MythVideo.patch (2.0 KB) - added by r.d.vaughan@… 12 years ago.
MythVideo_enhancements_v2.patch (3.2 KB) - added by r.d.vaughan@… 11 years ago.
Version 2 replaces previous patch and adds functionality to getTitleId()

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by r.d.vaughan@…

Attachment: MythVideo.patch added

Changed 11 years ago by r.d.vaughan@…

Version 2 replaces previous patch and adds functionality to getTitleId()

comment:1 Changed 11 years ago by r.d.vaughan@…

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 11 years ago by Rob Smith

Resolution: fixed
Status: newclosed

(In [21050]) Fixes #6418, this adds in some extended functionality to MythVideo?.py, and does not change any existing functionality

Note: See TracTickets for help on using tickets.