MythTV  0.26-pre
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Public Member Functions | Public Attributes
mirobridge.metadata.MetaData Class Reference

List of all members.

Public Member Functions

def __init__
def getMetadata
def convertOldMiroVideos
def cleanupVideoAndGraphics
def deleteFile
def takeScreenShot
def getVideoDetails
def searchTvdb

Public Attributes

 mythdb
 Video
 Record
 storagegroups
 vid_graphics_dirs
 ffmpeg
 logger
 simulation
 verbose
 cache_dir
 ttvdb
 makeRecordRule

Detailed Description

MetaData functions for MiroBridge

Supports function to acquire, create, delete graphics for Miro videos. Also perform Miro channel look ups in ttvdb.com and create
a Recoding rule when a Miro Channel is found on ttvdb.com. Use the the local graphics for any Miro Channel that has a Recording rule
which includes an inetref.

Definition at line 89 of file metadata.py.


Constructor & Destructor Documentation

def mirobridge.metadata.MetaData.__init__ (   self,
  mythdb,
  Video,
  Record,
  storagegroups,
  vid_graphics_dirs,
  channel_id,
  ffmpeg,
  logger,
  simulation,
  verbose 
)
mythdb:
    Access to MythTV data base methods

    Video:
    Access videometatdata record methods

    Record:
    Access Record rule methods

    storagegroups:
    Dictionary of any storage groups for this MythTV backend

    vid_graphics_dirs:
    Dictionary of this MythTV backend's graphics directories

    channel_id:
    The Channel id number used in the the creation of Record Rules

    ffmpeg:
    Flag indicating that ffmpeg is installed and functioning

    logger:
    Console logging method

    simulation:
    All file and database (write and delete) actions are simulated only

    verbose:
    Level of console messaging

Definition at line 96 of file metadata.py.


Member Function Documentation

def mirobridge.metadata.MetaData.getMetadata (   self,
  title 
)
Find existing graphics for a Miro video.
return a dictionary of metadata

Definition at line 153 of file metadata.py.

Referenced by mirobridge.metadata.MetaData.convertOldMiroVideos().

Convert any old Miro videometadata records from category from "Miro"
to "Video Cast" and inetref from '99999999' to ''
This method is required to prevent the accidental removal of copied Miro
videos due to the inetref of '99999999' no longer being used. This allows
to the "watch_then_copy" and "mythvideo_only" config options to still work.
return count of converted videometadata records

Definition at line 194 of file metadata.py.

Attempt a clean up video files and/or graphics from a directory
return nothing

Definition at line 229 of file metadata.py.

def mirobridge.metadata.MetaData.deleteFile (   self,
  filename,
  host,
  groupKey 
)
Delete a file that may or may not exist
return nothing

Definition at line 251 of file metadata.py.

def mirobridge.metadata.MetaData.takeScreenShot (   self,
  videofile,
  screenshot_filename,
  size_limit = False,
  just_demensions = False 
)
Take a screen shot 1/8th of the way into a video file
return the fully qualified screen shot name
>>> True - If the screenshot was created
>>> False - If ffmpeg could not find details for the video file

Definition at line 274 of file metadata.py.

def mirobridge.metadata.MetaData.getVideoDetails (   self,
  videofilename,
  screenshot = False 
)
Using ffmpeg (if it can be found) get a video file's details
return False if ffmpeg is cannot be found
return empty dictionary if the file is not a video
return dictionary of the Video's details

Definition at line 312 of file metadata.py.

Referenced by mirobridge.metadata.MetaData.takeScreenShot().

def mirobridge.metadata.MetaData.searchTvdb (   self,
  series_name 
)
Search for a Miro Channel in ttvdb.com. There must be an exact match.
return If an exact match was found then return the ttvdb sid (inetref) number
return If no match then return nothing

Definition at line 414 of file metadata.py.

Referenced by mirobridge.metadata.MetaData.getMetadata().


Member Data Documentation

Definition at line 125 of file metadata.py.

Referenced by mirobridge.metadata.MetaData.convertOldMiroVideos().

Definition at line 125 of file metadata.py.

Referenced by mirobridge.metadata.MetaData.getMetadata().

Definition at line 125 of file metadata.py.

Referenced by mirobridge.metadata.MetaData.deleteFile().

Definition at line 125 of file metadata.py.

Referenced by mirobridge.metadata.MetaData.getVideoDetails().

Definition at line 125 of file metadata.py.

Definition at line 125 of file metadata.py.

Definition at line 125 of file metadata.py.

Referenced by mirobridge.metadata.MetaData.getMetadata().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends