X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fhttputils.cpp;h=6393fe3e0018e74159ce55bf2afe05623359bfba;hb=refs%2Fheads%2Fmaster;hp=76bac4d74b15edef2afa862d0f1b824c8c9fb164;hpb=ff6d1f7f087f40438952d4b4315a8875f23281cb;p=minitube diff --git a/src/httputils.cpp b/src/httputils.cpp index 76bac4d..6393fe3 100644 --- a/src/httputils.cpp +++ b/src/httputils.cpp @@ -3,7 +3,6 @@ #include "constants.h" #include "http.h" #include "localcache.h" -#include "throttledhttp.h" Http &HttpUtils::notCached() { static Http *h = [] { @@ -33,7 +32,7 @@ Http &HttpUtils::yt() { http->addRequestHeader("User-Agent", stealthUserAgent()); CachedHttp *cachedHttp = new CachedHttp(*http, "yt"); - cachedHttp->setMaxSeconds(3600); + cachedHttp->setMaxSeconds(86400); return cachedHttp; }(); @@ -67,7 +66,7 @@ const QByteArray &HttpUtils::userAgent() { const QByteArray &HttpUtils::stealthUserAgent() { static const QByteArray ua = - "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like " - "Gecko) Chrome/79.0.3945.79 Safari/537.36"; + "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like " + "Gecko) Chrome/84.0.4147.105 Safari/537.36"; return ua; }