MCPcopy Create free account
hub / github.com/YACReader/yacreader / rescanXmlInfo

Function rescanXmlInfo

YACReaderLibraryServer/main.cpp:410–427  ·  view source on GitHub ↗

----------------------------------------------------------------------------- rescan-xml-info-------------------------------------------------------------- -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

408// rescan-xml-info--------------------------------------------------------------
409// -----------------------------------------------------------------------------
410int rescanXmlInfo(QCoreApplication &app, QCommandLineParser &parser, QSettings *settings)
411{
412 parser.clearPositionalArguments();
413 parser.addPositionalArgument("rescan-xml-info", "Rescans all the files from an existing library at <path> and imports any missing tags from legacy ComicInfo.xml.");
414 parser.addPositionalArgument("path", "Path to the library to scan", "<path>");
415 parser.process(app);
416
417 const QStringList args = parser.positionalArguments();
418 if (args.length() != 2) {
419 parser.showHelp(1);
420 return 1;
421 }
422
423 ConsoleUILibraryCreator *libraryCreatorUI = new ConsoleUILibraryCreator(settings);
424 libraryCreatorUI->rescanXMLInfoLibrary(args.at(1));
425
426 return 0;
427}
428
429// -----------------------------------------------------------------------------
430

Callers 1

mainFunction · 0.85

Calls 2

rescanXMLInfoLibraryMethod · 0.80
processMethod · 0.45

Tested by

no test coverage detected