mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 23:17:21 -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
@@ -137,6 +137,10 @@ void AddNewTorrentDialog::show(QString source, QWidget *parent)
|
||||
qDebug("Converting bc link to magnet link");
|
||||
source = Utils::Misc::bcLinkToMagnet(source);
|
||||
}
|
||||
else if (((source.size() == 40) && !source.contains(QRegExp("[^0-9A-Fa-f]")))
|
||||
|| ((source.size() == 32) && !source.contains(QRegExp("[^2-7A-Za-z]")))) {
|
||||
source = "magnet:?xt=urn:btih:" + source;
|
||||
}
|
||||
|
||||
AddNewTorrentDialog *dlg = new AddNewTorrentDialog(parent);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user