NAME
Video::PlaybackMachine::ContentManager: Routines to assist in managing PlaybackMachine content
EXPORTED SUBROUTINES
- get_missing($FILENAME)
-
Returns any avi entries which do not exist on the local file system. Note: will not decode MRLs; assumes straight filenames.
- get_title($filename)
-
Turns a filename into a default title by removing the suffix, deleting type prefixes (such as 'movie', 'music', or 'short'), transforming underscores to spaces, and capitalizing words.
- get_length($FILENAME)
-
If $FILENAME is readable by Xine, returns the file length. If $FILENAME is unreadable or nonexistent, croaks with "Couldn't open '$FILENAME'".
- add_movie($FILENAME, $TITLE, $LENGTH)
-
Adds a movie to the database as schedulable content, with $FILENAME as the filename, $TITLE as the title, and $LENGTH as the length. $TITLE and $LENGTH are optional; if they're left out, they'll be derived from the file.
- fix_all_lengths()
- add_fill($FILENAME, $TITLE, $LENGTH)
-
Adds a movie to the database as fill content, with $FILENAME as the filename, $TITLE as the title, and $LENGTH as the length. $TITLE and $LENGTH are optional; they'll be derived from the movie file if not specified.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 32:
=over without closing =back