mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 14:38:04 -06:00
Move basic search-related code into Core.
Also use qBittorrent torrent file download routines instead of nova2dl.py script.
This commit is contained in:
committed by
Vladimir Golovnev (qlassez)
parent
8754fd5646
commit
54979e6b53
@@ -509,18 +509,6 @@ QString Utils::Fs::QDesktopServicesDownloadLocation()
|
||||
#endif
|
||||
}
|
||||
|
||||
QString Utils::Fs::searchEngineLocation()
|
||||
{
|
||||
QString folder = "nova";
|
||||
if (Utils::Misc::pythonVersion() >= 3)
|
||||
folder = "nova3";
|
||||
const QString location = expandPathAbs(QDesktopServicesDataLocation() + folder);
|
||||
QDir locationDir(location);
|
||||
if (!locationDir.exists())
|
||||
locationDir.mkpath(locationDir.absolutePath());
|
||||
return location;
|
||||
}
|
||||
|
||||
QString Utils::Fs::cacheLocation()
|
||||
{
|
||||
QString location = expandPathAbs(QDesktopServicesCacheLocation());
|
||||
|
||||
Reference in New Issue
Block a user