Go to the documentation of this file.
13 QStringList ChanidStartimeVideo;
14 ChanidStartimeVideo <<
"chanid" <<
"starttime" <<
"video";
17 <<
add(
"--copyfile",
"copyfile",
false,
18 "Copy a MythTV Storage Group file using RingBuffers",
"")
20 ->SetRequiredChild(QStringList(
"infile") <<
"outfile")
21 <<
add(
"--download",
"download",
false,
22 "Download a file using MythDownloadManager",
"")
24 ->SetRequiredChild(QStringList(
"infile") <<
"outfile")
27 <<
add(
"--pidcounter",
"pidcounter",
false,
28 "Count pids in a MythTV Storage Group file",
"")
30 ->SetRequiredChild(
"infile")
31 <<
add(
"--pidfilter",
"pidfilter",
false,
32 "Filter pids in a MythTV Storage Group file",
"")
34 ->SetRequiredChild(QStringList(
"infile") <<
"outfile")
35 <<
add(
"--pidprinter",
"pidprinter",
false,
36 "Print PSIP pids in a MythTV Storage Group file",
"")
38 ->SetRequiredChild(
"infile")
42 <<
add(
"--gencutlist",
"gencutlist",
false,
43 "Copy the commercial skip list to the cutlist.",
"")
44 ->SetGroup(
"Recording Markup")
45 ->SetParentOf(ChanidStartimeVideo)
46 <<
add(
"--getcutlist",
"getcutlist",
false,
47 "Display the current cutlist.",
"")
48 ->SetGroup(
"Recording Markup")
49 ->SetParentOf(ChanidStartimeVideo)
50 <<
add(
"--setcutlist",
"setcutlist",
"",
51 "Set a new cutlist in the form:\n"
52 "#-#[,#-#]... (ie, 1-100,1520-3012,4091-5094)",
"")
53 ->SetGroup(
"Recording Markup")
54 ->SetParentOf(ChanidStartimeVideo)
55 <<
add(
"--clearcutlist",
"clearcutlist",
false,
56 "Clear the cutlist.",
"")
57 ->SetGroup(
"Recording Markup")
58 ->SetParentOf(ChanidStartimeVideo)
59 <<
add(
"--getskiplist",
"getskiplist",
false,
60 "Display the current commercial skip list.",
"")
61 ->SetGroup(
"Recording Markup")
62 ->SetParentOf(ChanidStartimeVideo)
63 <<
add(
"--setskiplist",
"setskiplist",
"",
64 "Set a new commercial skip list in the form:\n"
65 "#-#[,#-#]... (ie, 1-100,1520-3012,4091-5094)",
"")
66 ->SetGroup(
"Recording Markup")
67 ->SetParentOf(ChanidStartimeVideo)
68 <<
add(
"--clearskiplist",
"clearskiplist",
false,
69 "Clear the commercial skip list.",
"")
70 ->SetGroup(
"Recording Markup")
71 ->SetParentOf(ChanidStartimeVideo)
72 <<
add(
"--clearseektable",
"clearseektable",
false,
73 "Clear the seek table.",
"")
74 ->SetGroup(
"Recording Markup")
75 ->SetParentOf(ChanidStartimeVideo)
76 <<
add(
"--clearbookmarks",
"clearbookmarks",
false,
77 "Clear all bookmarks.",
"This command will reset the playback "
78 "start to the very beginning of the recording file.")
79 ->SetGroup(
"Recording Markup")
80 ->SetParentOf(ChanidStartimeVideo)
81 <<
add(
"--getmarkup",
"getmarkup",
"",
82 "Write markup data to the specified local file.",
"")
83 ->SetGroup(
"Recording Markup")
84 ->SetParentOf(ChanidStartimeVideo)
85 <<
add(
"--setmarkup",
"setmarkup",
"",
86 "Read markup data from the specified local file, and\n"
87 "use it to set the markup for the recording or video.",
"")
88 ->SetGroup(
"Recording Markup")
89 ->SetParentOf(ChanidStartimeVideo)
92 <<
add(
"--resched",
"resched",
false,
93 "Trigger a run of the recording scheduler on the existing "
95 "This command will connect to the master backend and trigger "
96 "a run of the recording scheduler. The call will return "
97 "immediately, however the scheduler run may take several "
98 "seconds to a minute or longer to complete.")
100 <<
add(
"--scanvideos",
"scanvideos",
false,
101 "Trigger a rescan of media content in MythVideo.",
102 "This command will connect to the master backend and trigger "
103 "a run of the Video scanner. The call will return "
104 "immediately, however the scanner may take several seconds "
105 "to tens of minutes, depending on how much new or moved "
106 "content it has to hash, and how quickly the scanner can "
107 "access those files to do so. If enabled, this will also "
108 "trigger the bulk metadata scanner upon completion.")
109 ->SetGroup(
"Backend")
110 <<
add(
"--event",
"event", QMetaType::QStringList,
111 "Send a backend event test message.",
"")
112 ->SetGroup(
"Backend")
113 <<
add(
"--systemevent",
"systemevent",
"",
114 "Send a backend SYSTEM_EVENT test message.",
"")
115 ->SetGroup(
"Backend")
116 <<
add(
"--clearcache",
"clearcache",
false,
117 "Trigger a cache clear on all connected MythTV systems.",
118 "This command will connect to the master backend and trigger "
119 "a cache clear event, which will subsequently be pushed to "
120 "all other connected programs. This event will clear the "
121 "local database settings cache used by each program, causing "
122 "options to be re-read from the database upon next use.")
123 ->SetGroup(
"Backend")
124 <<
add(
"--parse-video-filename",
"parsevideo",
"",
"",
125 "Diagnostic tool for testing filename formats against what "
126 "the Video Library name parser will detect them as.")
127 ->SetGroup(
"Backend")
130 <<
add(
"--queuejob",
"queuejob",
"",
131 "Insert a new job into the JobQueue.",
132 "Schedule the specified job type (transcode, commflag, "
133 "metadata, userjob1, userjob2, userjob3, userjob4) to run "
134 "for the recording with the given chanid and starttime.")
135 ->SetGroup(
"JobQueue")
136 ->SetRequiredChild(
"chanid")
137 ->SetRequiredChild(
"starttime")
140 <<
add(
"--message",
"message",
false,
141 "Display a message on a frontend",
"")
142 ->SetGroup(
"Messaging")
143 <<
add(
"--print-message-template",
"printmtemplate",
false,
144 "Print the template to be sent to the frontend",
"")
145 ->SetGroup(
"Messaging")
146 <<
add(
"--notification",
"notification",
false,
147 "Display a notification on a frontend",
"")
148 ->SetGroup(
"Messaging")
149 <<
add(
"--print-notification-template",
"printntemplate",
false,
150 "Print the template to be sent to the frontend",
"")
151 ->SetGroup(
"Messaging")
154 <<
add(
"--scanmusic",
"scanmusic",
false,
155 "Scan the 'Music' Storage Group for music files",
"")
156 ->SetGroup(
"Music Scanning")
157 <<
add(
"--updateradiostreams",
"updateradiostreams",
false,
158 "Downloads an updated radio stream list from the MythTV server",
"")
159 ->SetGroup(
"Music Scanning")
160 <<
add(
"--updatemeta",
"updatemeta",
false,
161 "Update a music tracks database record and tag with new metadata",
"")
162 ->SetGroup(
"Metadata Reading/Writing")
163 <<
add(
"--extractimage",
"extractimage",
false,
164 "Extract an embedded image from a tracks tag and cache it in the AlbumArt storage group",
"")
165 ->SetGroup(
"Metadata Reading/Writing")
166 <<
add(
"--calctracklen",
"calctracklen",
false,
167 "Decode a track to determine its exact length",
"")
168 ->SetGroup(
"Metadata Reading/Writing")
169 <<
add(
"--findlyrics",
"findlyrics",
false,
170 "Search for some lyrics for a track",
"")
171 ->SetGroup(
"Metadata Reading/Writing")
172 ->SetRequiredChild(QStringList(
"songid"))
173 ->SetParentOf(QStringList() <<
"artist" <<
"album" <<
"title")
176 <<
add(
"--checkrecordings",
"checkrecordings",
false,
177 "Check all recording exist and have a seektable etc.",
"")
178 ->SetGroup(
"Recording Utils")
181 <<
add(
"--cleareit",
"cleareit",
false,
182 "Clear guide received from EIT.",
"")
183 ->SetGroup(
"EIT Utils")
187 add(
"--pids",
"pids",
"",
"Pids to process",
"")
190 add(
"--ptspids",
"ptspids",
"",
"Pids to extract PTS from",
"")
192 add(
"--packetsize",
"packetsize", 188,
"TS Packet Size",
"")
195 add(
"--noautopts",
"noautopts",
false,
"Disables PTS discovery",
"")
197 add(
"--xml",
"xml",
false,
"Enables XML output of PSIP",
"")
201 add(
"--message_text",
"message_text",
"message",
"(optional) message to send",
"")
204 add(
"--timeout",
"timeout", 0,
"(optional) notification duration",
"")
207 add(
"--udpport",
"udpport", 6948,
"(optional) UDP Port to send to",
"")
210 add(
"--bcastaddr",
"bcastaddr",
"127.0.0.1",
"(optional) IP address to send to",
"")
213 add(
"--image",
"image",
"image_path",
"(optional) Path to image to send to (http://, myth://)",
"")
215 add(
"--origin",
"origin",
"text",
"(optional) notification origin text",
"")
217 add(
"--description",
"description",
"text",
"(optional) notification description text",
"")
219 add(
"--extra",
"extra",
"text",
"(optional) notification extra text",
"")
221 add(
"--progress_text",
"progress_text",
"text",
"(optional) notification progress text",
"")
223 add(
"--progress",
"progress", -1.0,
"(optional) progress value (must be between 0 and 1)",
"")
225 add(
"--fullscreen",
"fullscreen",
false,
"(optional) display notification in full screen mode",
"")
227 add(
"--error",
"error",
false,
"(optional) set notification to be displayed as an error",
"")
229 add(
"--visibility",
"visibility", 0,
"(optional) bitmask indicating where to show the notification",
"")
231 add(
"--type",
"type",
"type",
"(optional) type of notification (normal, error, warning, check, busy",
"")
235 add(
"--force",
"musicforce",
false,
"Ignore file timestamps",
"")
237 add(
"--songid",
"songid",
"",
"ID of track to update",
"")
239 add(
"--title",
"title",
"",
"(optional) Title of track",
"")
241 add(
"--artist",
"artist",
"",
"(optional) Artist of track",
"")
243 add(
"--album",
"album",
"",
"(optional) Album of track",
"")
245 add(
"--genre",
"genre",
"",
"(optional) Genre of track",
"")
247 add(
"--trackno",
"trackno",
"",
"(optional) Track No. of track",
"")
249 add(
"--year",
"year",
"",
"(optional) Year of track",
"")
251 add(
"--rating",
"rating",
"",
"(optional) Rating of track",
"")
253 add(
"--playcount",
"playcount",
"",
"(optional) Playcount of track",
"")
255 add(
"--lastplayed",
"lastplayed",
"",
"(optional) Last played of track",
"")
257 add(
"--songid",
"songid",
"",
"ID of track from which to get the image",
"")
259 add(
"--imagetype",
"imagetype",
"",
"Type of image to extract (front, back, cd, inlay, unknown)",
"")
261 add(
"--songid",
"songid",
"",
"ID of track to determine the length",
"")
263 add(
"--songid",
"songid",
"",
"ID of track to find lyrics for",
"")
265 add(
"--grabber",
"grabber",
"",
"(optional) Name of grabber to use or 'ALL' to try all available grabbers",
"")
267 add(
"--artist",
"grabber",
"",
"(optional) Artist of track to find lyrics for",
"")
269 add(
"--album",
"grabber",
"",
"(optional) Album of track to find lyrics for",
"")
271 add(
"--title",
"grabber",
"",
"(optional) Title of track to find lyrics for",
"")
275 add(
"--fixseektable",
"fixseektable",
false,
"(optional) fix the seektable if missing for a recording",
"")
279 add(
"--sourceid",
"sourceid", -1,
"(optional) specify sourceid of video source to operate on instead of all",
"")
295 add(
"--video",
"video",
"",
296 "Specify path name of Video Gallery video "
297 "to operate on.",
""));
302 return "MythUtil is a command line utility application for MythTV.";
static void AllowOneOf(const QList< CommandLineArg * > &args)
Mark a list of arguments as mutually exclusive.
Parent class for defining application command line parsers.
void LoadArguments(void) override
void addVersion(void)
Canned argument definition for –version.
void addRecording(void)
Canned argument definition for –chanid and –starttime.
void addLogging(const QString &defaultVerbosity="general", LogLevel_t defaultLogLevel=LOG_INFO)
Canned argument definition for all logging options, including –verbose, –logpath, –quiet,...
CommandLineArg * SetChildOf(const QString &opt)
Set argument as child of given parent.
CommandLineArg * add(const QString &arg, const QString &name, bool def, QString help, QString longhelp)
QString GetHelpHeader(void) const override
CommandLineArg * SetRequiredChildOf(const QString &opt)
Set argument as child required by given parent.
void addHelp(void)
Canned argument definition for –help.
Definition for a single command line option.
CommandLineArg * SetGroup(const QString &group)
static constexpr const char * MYTH_APPNAME_MYTHUTIL
MythUtilCommandLineParser()
void addSettingsOverride(void)
Canned argument definition for –override-setting and –override-settings-file.
void allowExtras(bool allow=true)
Specify that parser should allow and collect additional key/value pairs not explicitly defined for pr...
void addInFile(bool addOutFile=false)
Canned argument definition for –infile and –outfile.