Use InitialComicInfoExtractor everywhere

This commit is contained in:
Luis Ángel San Martín
2021-09-27 15:39:37 +02:00
parent 2bebe9714e
commit da51bd45c6
3 changed files with 35 additions and 161 deletions

View File

@ -1,12 +1,14 @@
#include "data_base_management.h"
#include <QtCore>
#include "library_creator.h"
#include "initial_comic_info_extractor.h"
#include "check_new_version.h"
#include "db_helper.h"
#include "QsLog.h"
using namespace YACReader;
static QString fields = "title ,"
"coverPage,"
@ -543,8 +545,8 @@ bool DataBaseManagement::importComicsInfo(QString source, QString dest)
QString basePath = QString(dest).remove("/.yacreaderlibrary/library.ydb");
QString path = basePath + getComic.record().value("path").toString();
int coverPage = getComic.record().value("coverPage").toInt();
ThumbnailCreator tc(path, basePath + "/.yacreaderlibrary/covers/" + hash + ".jpg", coverPage);
tc.create();
InitialComicInfoExtractor ie(path, basePath + "/.yacreaderlibrary/covers/" + hash + ".jpg", coverPage);
ie.extract();
}
}
sourceDBconnection = sourceDB.connectionName();