FEATURE: Added support for BitComet links (bc://bt/...)

This commit is contained in:
Christophe Dumez 2010-07-22 22:19:42 +00:00
parent 7a2c0d5d5a
commit 3d4c1fe7da
9 changed files with 43 additions and 3 deletions

View file

@ -333,6 +333,10 @@ void HttpConnection::respondCommand(QString command)
foreach(QString url, list){
url = url.trimmed();
if(!url.isEmpty()){
if(url.startsWith("bc://bt/", Qt::CaseInsensitive)) {
qDebug("Converting bc link to magnet link");
url = misc::bcLinkToMagnet(url);
}
if(url.startsWith("magnet:", Qt::CaseInsensitive)) {
emit MagnetReadyToBeDownloaded(url);
} else {