Compare commits

...

2 Commits

Author SHA1 Message Date
leca c941264346 remove unneeded, update gitignore 2024-12-02 13:10:36 +03:00
leca c471cb3f62 fixed captcha not showing up in appimage 2024-12-02 13:09:48 +03:00
9 changed files with 21 additions and 9 deletions

2
.gitignore vendored
View File

@ -118,3 +118,5 @@ install_manifest.txt
checks-parser_autogen
checks-parser
deploy/appimage/AppDir/usr/share/doc/

2
TODO
View File

@ -25,6 +25,6 @@ Build:
Try to compile it on Windows
Issues:
Captcha is not showing when running in appimage
Captcha is not showing when running in appimage [solved]
Stores modules are not being downloaded
I need to pack tesseract data for ru, en

View File

@ -3,4 +3,5 @@ Name=Checks parser
Exec=usr/bin/checks-parser
Icon=checks-parser
Type=Application
Categories=Utility
Categories=Utility;
X-AppImage-Version=7c021c9

View File

@ -0,0 +1,7 @@
# Generated by linuxdeployqt
# https://github.com/probonopd/linuxdeployqt/
[Paths]
Prefix = ../
Plugins = plugins
Imports = qml
Qml2Imports = qml

1
log.txt Normal file
View File

@ -0,0 +1 @@
2024/12/02 13:01:47 Micro started

View File

@ -105,5 +105,5 @@ std::string Net::fetch_check_data_from_ofdru(std::string fn, std::string fd, std
}
void Net::get_captcha_from_ofdru() {
get_file("https://check.ofd.ru/api/captcha/common/img", get_path_relative_to_home(".local/share/checks_parser/captcha.png"));
get_file("https://check.ofd.ru/api/captcha/common/img", get_path_relative_to_home(".local/share/checks_parser/captcha.jpg"));
}

View File

@ -1,7 +1,7 @@
#include "solvecaptchadialog.h"
#include "ui_solvecaptchadialog.h"
#include "utils/utils.h"
#include <iostream>
#include <QMessageBox>
SolveCaptchaDialog::SolveCaptchaDialog(QWidget *parent, std::string* solved_captcha) :
@ -10,7 +10,8 @@ SolveCaptchaDialog::SolveCaptchaDialog(QWidget *parent, std::string* solved_capt
solved_captcha(solved_captcha) {
ui->setupUi(this);
QString captcha_path = QString::fromStdString(get_path_relative_to_home(".local/share/checks_parser/captcha.png"));
QString captcha_path = QString::fromStdString(get_path_relative_to_home(".local/share/checks_parser/captcha.jpg"));
std::cout << captcha_path.toStdString() << std::endl;
ui->captcha_picture->setPixmap(captcha_path);
ui->captcha_picture->setScaledContents(true);
}

View File

@ -281,12 +281,12 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../solvecaptchadialog.cpp" line="22"/>
<location filename="../solvecaptchadialog.cpp" line="23"/>
<source>Please, enter a valid captcha</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../solvecaptchadialog.cpp" line="24"/>
<location filename="../solvecaptchadialog.cpp" line="25"/>
<source>No captcha</source>
<translation type="unfinished"></translation>
</message>

View File

@ -281,12 +281,12 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../solvecaptchadialog.cpp" line="22"/>
<location filename="../solvecaptchadialog.cpp" line="23"/>
<source>Please, enter a valid captcha</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../solvecaptchadialog.cpp" line="24"/>
<location filename="../solvecaptchadialog.cpp" line="25"/>
<source>No captcha</source>
<translation type="unfinished"></translation>
</message>