Logger::instance()->addMessage(tr("Running in portable mode. Auto detected profile folder at: %1").arg(profileDir.toString()));
if(m_commandLineArgs.relativeFastresumePaths)
Logger::instance()->addMessage(tr("Redundant command line flag detected: \"%1\". Portable mode implies relative fastresume.").arg("--relative-fastresume"),Log::WARNING);// to avoid translating the `--relative-fastresume` string
Logger::instance()->addMessage(tr("Redundant command line flag detected: \"%1\". Portable mode implies relative fastresume.").arg(u"--relative-fastresume"_qs),Log::WARNING);// to avoid translating the `--relative-fastresume` string
logger->addMessage(tr("Dynamic DNS error: %1 was returned by the service, please submit a bug report at http://bugs.qbittorrent.org.").arg("!donator"),
logger->addMessage(tr("Dynamic DNS error: %1 was returned by the service, please submit a bug report at http://bugs.qbittorrent.org.").arg(u"!donator"_qs),
Log::CRITICAL);
m_state=FATAL;
return;
}
if(code=="abuse")
if(code==u"abuse")
{
logger->addMessage(tr("Dynamic DNS error: Your username was blocked due to abuse."),Log::CRITICAL);
"(\\s|^)"// start with whitespace or beginning of line
"("
"("// case 1 -- URL with scheme
"(http(s?))\\://"// start with scheme
"([a-zA-Z0-9_-]+\\.)+"// domainpart. at least one of these must exist
"([a-zA-Z0-9\\?%=&/_\\.:#;-]+)"// everything to 1st non-URI char, must be at least one char after the previous dot (cannot use ".*" because it can be too greedy)
")"
"|"
"("// case 2a -- no scheme, contains common TLD example.com
"([a-zA-Z0-9_-]+\\.)+"// domainpart. at least one of these must exist
"(?="// must be followed by TLD
"AERO|aero|"// N.B. assertions are non-capturing
"ARPA|arpa|"
"ASIA|asia|"
"BIZ|biz|"
"CAT|cat|"
"COM|com|"
"COOP|coop|"
"EDU|edu|"
"GOV|gov|"
"INFO|info|"
"INT|int|"
"JOBS|jobs|"
"MIL|mil|"
"MOBI|mobi|"
"MUSEUM|museum|"
"NAME|name|"
"NET|net|"
"ORG|org|"
"PRO|pro|"
"RO|ro|"
"RU|ru|"
"TEL|tel|"
"TRAVEL|travel"
")"
"([a-zA-Z0-9\\?%=&/_\\.:#;-]+)"// everything to 1st non-URI char, must be at least one char after the previous dot (cannot use ".*" because it can be too greedy)
")"
"|"
"("// case 2b no scheme, no TLD, must have at least 2 alphanum strings plus uncommon TLD string --> del.icio.us
"([a-zA-Z0-9_-]+\\.) {2,}"// 2 or more domainpart. --> del.icio.
"[a-zA-Z]{2,}"// one ab (2 char or longer) --> us
"([a-zA-Z0-9\\?%=&/_\\.:#;-]*)"// everything to 1st non-URI char, maybe nothing in case of del.icio.us/path
")"
")"
u"(\\s|^)"// start with whitespace or beginning of line
u"("
u"("// case 1 -- URL with scheme
u"(http(s?))\\://"// start with scheme
u"([a-zA-Z0-9_-]+\\.)+"// domainpart. at least one of these must exist
u"([a-zA-Z0-9\\?%=&/_\\.:#;-]+)"// everything to 1st non-URI char, must be at least one char after the previous dot (cannot use ".*" because it can be too greedy)
u")"
u"|"
u"("// case 2a -- no scheme, contains common TLD example.com
u"([a-zA-Z0-9_-]+\\.)+"// domainpart. at least one of these must exist
u"(?="// must be followed by TLD
u"AERO|aero|"// N.B. assertions are non-capturing
u"ARPA|arpa|"
u"ASIA|asia|"
u"BIZ|biz|"
u"CAT|cat|"
u"COM|com|"
u"COOP|coop|"
u"EDU|edu|"
u"GOV|gov|"
u"INFO|info|"
u"INT|int|"
u"JOBS|jobs|"
u"MIL|mil|"
u"MOBI|mobi|"
u"MUSEUM|museum|"
u"NAME|name|"
u"NET|net|"
u"ORG|org|"
u"PRO|pro|"
u"RO|ro|"
u"RU|ru|"
u"TEL|tel|"
u"TRAVEL|travel"
u")"
u"([a-zA-Z0-9\\?%=&/_\\.:#;-]+)"// everything to 1st non-URI char, must be at least one char after the previous dot (cannot use ".*" because it can be too greedy)
u")"
u"|"
u"("// case 2b no scheme, no TLD, must have at least 2 alphanum strings plus uncommon TLD string --> del.icio.us
u"([a-zA-Z0-9_-]+\\.) {2,}"// 2 or more domainpart. --> del.icio.
u"[a-zA-Z]{2,}"// one ab (2 char or longer) --> us
u"([a-zA-Z0-9\\?%=&/_\\.:#;-]*)"// everything to 1st non-URI char, maybe nothing in case of del.icio.us/path