|
MythTV 0.25-pre
|
Process all mythvideo video files, update the video files associated MythTV meta data. Download graphics for those video files from either thetvdb.com or themovie.com. Video file names for TV episodes must series name, season and episode numbers. The video file's movie name must be an exact match with a movie title in themoviedb.com or the MythTV database must have an entry for the video file with a TMDB or an IMDB number (db field 'intref').
| def jamu::MythTvMetaData::__init__ | ( | self, | |
| configuration | |||
| ) |
Retrieve the configuration options
Reimplemented from jamu::VideoFiles.
| def jamu::MythTvMetaData::_getSubtitle | ( | self, | |
| cfile | |||
| ) | [private] |
| def jamu::MythTvMetaData::hashFile | ( | self, | |
| name | |||
| ) |
| def jamu::MythTvMetaData::rtnRelativePath | ( | self, | |
| abpath, | |||
| filetype | |||
| ) |
Check if there is a Storage Group for the file type (video, coverfile, banner, fanart, screenshot) and form an apprioriate relative path and file name. return a relative path and file name return an absolute path and file name if there is no storage group for the file type
| def jamu::MythTvMetaData::rtnAbsolutePath | ( | self, | |
| relpath, | |||
| filetype | |||
| ) |
Check if there is a Storage Group for the file type (mythvideo, coverfile, banner, fanart, screenshot) and form an appropriate absolute path and file name. return an absolute path and file name return the relpath sting if the file does not actually exist in the absolute path location
| def jamu::MythTvMetaData::removeCommonWords | ( | self, | |
| title | |||
| ) |
| def jamu::MythTvMetaData::_getTmdbIMDB | ( | self, | |
| title, | |||
watched = False, |
|||
IMDB = False, |
|||
rtnyear = False |
|||
| ) | [private] |
| def jamu::MythTvMetaData::_getTmdbGraphics | ( | self, | |
| cfile, | |||
| graphic_type, | |||
watched = False |
|||
| ) | [private] |
| def jamu::MythTvMetaData::_getSecondarySourceGraphics | ( | self, | |
| cfile, | |||
| graphic_type, | |||
watched = False |
|||
| ) | [private] |
| def jamu::MythTvMetaData::combineMetaData | ( | self, | |
| available_metadata, | |||
| meta_dict, | |||
vid_type = False |
|||
| ) |
| def jamu::MythTvMetaData::_getSecondarySourceMetadata | ( | self, | |
| cfile, | |||
| available_metadata | |||
| ) | [private] |
| def jamu::MythTvMetaData::_getTmdbMetadata | ( | self, | |
| cfile, | |||
| available_metadata | |||
| ) | [private] |
| def jamu::MythTvMetaData::_getTvdbGraphics | ( | self, | |
| cfile, | |||
| graphic_type, | |||
toprated = False, |
|||
watched = False |
|||
| ) | [private] |
| def jamu::MythTvMetaData::_getTvdbMetadata | ( | self, | |
| cfile, | |||
| available_metadata | |||
| ) | [private] |
| def jamu::MythTvMetaData::_make_db_ready | ( | self, | |
| text | |||
| ) | [private] |
| def jamu::MythTvMetaData::_addCastGenreCountry | ( | self, | |
| data_string, | |||
| vim, | |||
| cast_genres_type | |||
| ) | [private] |
| def jamu::MythTvMetaData::_moveDirectoryTree | ( | self, | |
| src, | |||
| dst, | |||
symlinks = False, |
|||
ignore = None |
|||
| ) | [private] |
| def jamu::MythTvMetaData::_moveVideoFiles | ( | self, | |
| target_destination_array | |||
| ) | [private] |
Copy files or directories to a destination directory. If the -F filename option is set then rename TV series during the move process. The move will be interactive for identifying a movie's IMDB number or TV series if the -i option was also set. If there is a problem error message are displayed and the script exists. After processing print a statistics report. return a array of video file dictionaries to update in Mythvideo data base
| def jamu::MythTvMetaData::_displayMessage | ( | self, | |
| message | |||
| ) | [private] |
| def jamu::MythTvMetaData::_findMissingInetref | ( | self | ) | [private] |
| def jamu::MythTvMetaData::_checkValidGraphicFile | ( | self, | |
| filename, | |||
graphicstype = u'', |
|||
vidintid = False |
|||
| ) | [private] |
| def jamu::MythTvMetaData::_graphicsCleanup | ( | self | ) | [private] |
| def jamu::MythTvMetaData::_getVideoLength | ( | self, | |
| videofilename | |||
| ) | [private] |
| def jamu::MythTvMetaData::_getMiroVideometadataRecords | ( | self | ) | [private] |
Fetches all videometadata records with an inetref of '99999999' and a category of 'Miro'. If the videometadata record has a host them it must match the lower-case of the locahostname. aborts if processing failed return and array of matching videometadata dictionary records
| def jamu::MythTvMetaData::_getExtraMiroDetails | ( | self, | |
| mythvideorec, | |||
| vidtype | |||
| ) | [private] |
| def jamu::MythTvMetaData::updateMiroVideo | ( | self, | |
| program | |||
| ) |
| def jamu::MythTvMetaData::_getScheduledRecordedProgramList | ( | self | ) | [private] |
| def jamu::MythTvMetaData::_getScheduledRecordedTVGraphics | ( | self, | |
| program, | |||
| graphics_type | |||
| ) | [private] |
| def jamu::MythTvMetaData::_downloadScheduledRecordedGraphics | ( | self | ) | [private] |
| def jamu::MythTvMetaData::findFileInDir | ( | self, | |
| filename, | |||
| directories, | |||
suffix = None, |
|||
fuzzy_match = False |
|||
| ) |
| def jamu::MythTvMetaData::processMythTvMetaData | ( | self | ) |
| def jamu::MythTvMetaData::__repr__ | ( | self | ) |
Reimplemented from jamu::VideoFiles.
string jamu::MythTvMetaData::movie_file_format = u"%s/%s.%s" [static] |
dictionary jamu::MythTvMetaData::graphic_suffix = {u'coverfile': u'_coverart', u'fanart': u'_fanart', u'banner': u'_banner'} [static] |
string jamu::MythTvMetaData::graphic_name_suffix = u"%s/%s%s.%s" [static] |
string jamu::MythTvMetaData::graphic_name_season_suffix = u"%s/%s Season %d%s.%s" [static] |
list jamu::MythTvMetaData::errors = [] [static] |
list jamu::MythTvMetaData::new_names = [] [static] |
int jamu::MythTvMetaData::num_moved_video_files = 0 [static] |
int jamu::MythTvMetaData::num_created_video_subdirectories = 0 [static] |
int jamu::MythTvMetaData::num_symbolic_links = 0 [static] |
int jamu::MythTvMetaData::num_secondary_source_graphics_downloaded = 0 [static] |
int jamu::MythTvMetaData::num_secondary_source_metadata_downloaded = 0 [static] |
1.7.4