Mythname.pl
From MythTV
- The correct title of this article is mythname.pl. It appears incorrectly here due to technical restrictions.
mythname.pl is a perl script to take a myth generated file name and output the actual name of the show (and optionally the sub-title/episode) by retrieving it from the database.
Usage: mythname.pl [options] files
Where [options] are:
--host - hostname of the mysql server (default: "127.0.0.1")
--user - DBUSERNAME (default: "mythtv")
--pass - DBPASSWORD (default: "mythtv")
--database - DATABASENAME (default: "mythconverg")
--replace - Replace spaces with this string (--rep=. will return Daily.Show)
--subtitle - Add subtitle to string after a ':'
--sublen - Maximum subtitle length (only useful with -subtitle)
--legal - Make sure the filename is legal (no '/', '', etc.)
--all - Consider all files
--channel - Print channel
--codec - Print codec
--description - Print description
--extension - Extension to add to title (defaults to same as filename)
--file - Print filename
--grep - Search title:subtitle
--mpeg {2,4} - Only show files of mpeg2 or mpeg4 encoding
--quiet - Don't print title
--size - Show size of show (mins, size, size/h)
--total - Print total size of listed files
