Browse Source

Drop support for "BC Link" format

Fixup 19d6de795c.
adaptive-webui-19844
Chocobo1 6 years ago
parent
commit
014273d7ec
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 1
      src/gui/downloadfromurldialog.cpp
  2. 2
      src/gui/search/searchjobwidget.cpp

1
src/gui/downloadfromurldialog.cpp

@ -47,7 +47,6 @@ namespace @@ -47,7 +47,6 @@ namespace
|| str.startsWith("https://", Qt::CaseInsensitive)
|| str.startsWith("ftp://", 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() == 32) && !str.contains(QRegularExpression("[^2-7A-Za-z]"))));
}

2
src/gui/search/searchjobwidget.cpp

@ -261,7 +261,7 @@ void SearchJobWidget::downloadTorrent(const QModelIndex &rowIndex) @@ -261,7 +261,7 @@ void SearchJobWidget::downloadTorrent(const QModelIndex &rowIndex)
const QString siteUrl = m_proxyModel->data(
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);
}
else {

Loading…
Cancel
Save