Browse Source

Merge pull request #629 from bwitt/bicomet-add-magnet-url-fix

BitComet: Update to use add magnet url for passed links
pull/642/head
Eric Kok 2 years ago committed by GitHub
parent
commit
f9b62cf27e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/src/main/java/org/transdroid/daemon/adapters/bitComet/BitCometAdapter.java

4
app/src/main/java/org/transdroid/daemon/adapters/bitComet/BitCometAdapter.java

@ -163,14 +163,14 @@ public class BitCometAdapter implements IDaemonAdapter { @@ -163,14 +163,14 @@ public class BitCometAdapter implements IDaemonAdapter {
// Request to add a torrent by URL
String url = ((AddByUrlTask) task).getUrl();
makeUploadUrlRequest(log, "/panel/task_add_httpftp_result", url);
makeUploadUrlRequest(log, "/panel/task_add_magnet_result", url);
return new DaemonTaskSuccessResult(task);
case AddByMagnetUrl:
// Request to add a torrent by URL
String magnetUrl = ((AddByMagnetUrlTask) task).getUrl();
makeUploadUrlRequest(log, "/panel/task_add_httpftp_result", magnetUrl);
makeUploadUrlRequest(log, "/panel/task_add_magnet_result", magnetUrl);
return new DaemonTaskSuccessResult(task);
case Remove:

Loading…
Cancel
Save