Ticket #9881: helperdiff.txt

File helperdiff.txt, 2.2 KB (added by ryebrye@…, 13 years ago)

patch to specify a QVariant::Type so mytharchivehelper will run

Line 
1diff --git a/mythplugins/mytharchive/mytharchivehelper/main.cpp b/mythplugins/mytharchive/mytharchivehelper/main.cpp
2index acf825f..70ab7db 100644
3--- a/mythplugins/mytharchive/mytharchivehelper/main.cpp
4+++ b/mythplugins/mytharchive/mytharchivehelper/main.cpp
5@@ -2475,18 +2475,18 @@ void MythArchiveHelperCommandLineParser::LoadArguments(void)
6            "Create one or more thumbnails\n"
7             "Requires: --infile, --thumblist, --outfile\n"
8             "Optional: --framecount", "");
9-    add("--infile", "infile", ""
10+    add("--infile", "infile", QString(),
11             "Input file name\n"
12             "Used with: --createthumbnail, --getfileinfo, --isremote, "
13             "--sup2dast, --importarchive", "");
14-    add("--outfile", "outfile", ""
15+    add("--outfile", "outfile", QString(),
16             "Output file name\n"
17             "Used with: --createthumbnail, --getfileinfo, --getdbparameters, "
18             "--nativearchive\n"
19             "When used with --createthumbnail: eg 'thumb%1-%2.jpg'\n"
20             "  %1 will be replaced with the no. of the thumb\n"
21             "  %2 will be replaced with the frame no.", "");
22-    add("--thumblist", "thumblist", "",
23+    add("--thumblist", "thumblist", QString(),
24             "Comma-separated list of required thumbs (in seconds)\n"
25             "Used with: --createthumbnail","");
26     add("--framecount", "framecount", 1,
27@@ -2550,7 +2550,7 @@ void MythArchiveHelperCommandLineParser::LoadArguments(void)
28             "sup2dast",
29             "Convert projectX subtitles to DVD subtitles\n"
30             "Requires: --infile, --ifofile, --delay", "");
31-    add("--ifofile", "ifofile", ""
32+    add("--ifofile", "ifofile", QString(),
33             "Filename of ifo file\n"
34             "Used with: --sup2dast", "");
35     add("--delay", "delay", 0,
36@@ -2633,7 +2633,7 @@ int main(int argc, char **argv)
37 
38     int res = 0;
39     bool bGrabThumbnail   = cmdline.toBool("createthumbnail");
40-    bool bGetDBParameters = cmdline.toBool("grabdbparameters");
41+    bool bGetDBParameters = cmdline.toBool("getdbparameters");
42     bool bNativeArchive   = cmdline.toBool("nativearchive");
43     bool bImportArchive   = cmdline.toBool("importarchive");
44     bool bGetFileInfo     = cmdline.toBool("getfileinfo");