Add COMIC_VINE_USER_AGENT to YACReaderLibrary.ini to be able to customize the user agent

This commit is contained in:
luisangelsm
2025-12-10 10:42:45 +01:00
parent 620140cf12
commit 79eb19a192
10 changed files with 44 additions and 20 deletions

View File

@ -4,13 +4,12 @@
#include <QByteArray>
#include <QThread>
#include <QUrl>
#include "yacreader_global.h"
class HttpWorker : public QThread
{
Q_OBJECT
public:
HttpWorker(const QString &urlString);
HttpWorker(const QString &urlString, const QString &userAgent);
public slots:
void get();
QByteArray getResult();
@ -20,6 +19,7 @@ public slots:
private:
void run();
QUrl url;
QString userAgent;
int httpGetId;
QByteArray result;
bool _error;