[mythtv-users] Finding gaps in the MythTV recording schedule to do maintenance in
Mark Perkins
perkins1724 at hotmail.com
Sun Apr 23 12:05:00 UTC 2017
> The getopt package is obsolete - it has been replaced by argparse. I
> have uploaded a new version of gaps that does the above using
> argparse, and also allows a second command line parameter giving the
> number of minutes for the minimum duration. So to search for gaps of
> 10 minutes or more, the command would be "gaps 0 10". Both parameters
> can be floating point numbers, so you could do something like "gaps
> 1.1 3.2" if you want, and it would search for a minimum gap duration
> of 1h09m12s.
>
> Here is the output of "gaps -h":
>
> usage: gaps [-h] [-V] [-n HOST] [-p PORT] [hours] [minutes]
>
> Find gaps in the MythTV recording schedule (Version: 1.3)
>
> positional arguments:
> hours Minimum gap duration to search for, in hours (floating
> point
> allowed)
> minutes Minimum gap duration to search for, in minutes
> (floating point
> allowed)
>
> optional arguments:
> -h, --help show this help message and exit
> -V, --version
> display the version number and exit
> -n HOST, --host HOST
> MythTV backend hostname (default: mypvr)
> -p PORT, --port PORT
> MythTV backend API port number (default: 6544)
>
> Note that the default values for -n and -p have been looked up in the
> database if possible, so the above output shows the default for -n as
> "mypvr" which is the name of my main MythTV box. If access to the
> database to look up the BackendStatusPort setting is not possible
> there will be a warning message, and it will default to using
> localhost and port 6544 instead, like the older versions.
>
> I have also added a bit more error checking.
> _______________________________________________
Thankyou for making the requested changes Stephen, I have updated to
your version 1.3 and it all just works. Pulled the correct host and port
from the database and all. Very nice.
More information about the mythtv-users
mailing list