mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-02 18:04:32 +00:00
Drop support for "BC Link" format
Fixup 19d6de795c125846b72c09b987902b3fcfd27d39.
This commit is contained in:
parent
6f6033cf1c
commit
014273d7ec
@ -47,7 +47,6 @@ namespace
|
|||||||
|| str.startsWith("https://", Qt::CaseInsensitive)
|
|| str.startsWith("https://", Qt::CaseInsensitive)
|
||||||
|| str.startsWith("ftp://", Qt::CaseInsensitive)
|
|| str.startsWith("ftp://", Qt::CaseInsensitive)
|
||||||
|| str.startsWith("magnet:", Qt::CaseInsensitive)
|
|| str.startsWith("magnet:", Qt::CaseInsensitive)
|
||||||
|| str.startsWith("bc://bt/", Qt::CaseInsensitive)
|
|
||||||
|| ((str.size() == 40) && !str.contains(QRegularExpression("[^0-9A-Fa-f]")))
|
|| ((str.size() == 40) && !str.contains(QRegularExpression("[^0-9A-Fa-f]")))
|
||||||
|| ((str.size() == 32) && !str.contains(QRegularExpression("[^2-7A-Za-z]"))));
|
|| ((str.size() == 32) && !str.contains(QRegularExpression("[^2-7A-Za-z]"))));
|
||||||
}
|
}
|
||||||
|
@ -261,7 +261,7 @@ void SearchJobWidget::downloadTorrent(const QModelIndex &rowIndex)
|
|||||||
const QString siteUrl = m_proxyModel->data(
|
const QString siteUrl = m_proxyModel->data(
|
||||||
m_proxyModel->index(rowIndex.row(), SearchSortModel::ENGINE_URL)).toString();
|
m_proxyModel->index(rowIndex.row(), SearchSortModel::ENGINE_URL)).toString();
|
||||||
|
|
||||||
if (torrentUrl.startsWith("bc://bt/", Qt::CaseInsensitive) || torrentUrl.startsWith("magnet:", Qt::CaseInsensitive)) {
|
if (torrentUrl.startsWith("magnet:", Qt::CaseInsensitive)) {
|
||||||
addTorrentToSession(torrentUrl);
|
addTorrentToSession(torrentUrl);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user