Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pull621 #622

Closed
1265578519 opened this issue Oct 23, 2022 · 6 comments · Fixed by #629
Closed

pull621 #622

1265578519 opened this issue Oct 23, 2022 · 6 comments · Fixed by #629

Comments

@1265578519
Copy link

#621

@1265578519
Copy link
Author

1265578519 commented Oct 23, 2022

https://github.com/erickok/transdroid/blob/master/app/src/main/java/org/transdroid/daemon/adapters/bitComet/BitCometAdapter.java#L173

                    // Request to add a torrent by URL
                    String magnetUrl = ((AddByMagnetUrlTask) task).getUrl();
                    makeUploadUrlRequest(log, "/panel/task_add_httpftp_result", magnetUrl);
                    return new DaemonTaskSuccessResult(task);

magnetUrl = /panel/task_add_magnet_result

@bwitt
Copy link
Contributor

bwitt commented Nov 5, 2022

I think you meant change that line to be makeUploadUrlRequest(log, "/panel/task_add_magnet_result", magnetUrl); but I can't seem to find API docs for bitComet and I don't have an instance to test. do you know where the docs are?

@1265578519
Copy link
Author

1265578519 commented Nov 5, 2022

I think you meant change that line to be but I can't seem to find API docs for bitComet and I don't have an instance to test. do you know where the docs are?makeUploadUrlRequest(log, "/panel/task_add_magnet_result", magnetUrl);

f12
image

image

image

task_add_httpftp It is used for http download and pro advanced optional functions such as custom cookies and User-Agent
Although I test task_add_httpftp it to support Magnet Link at the same time, I thought it should be more friendly to use task_add_magnet
image

@bwitt
Copy link
Contributor

bwitt commented Nov 6, 2022

@1265578519 sorry I didn't ask earlier: what was the issue you were reporting here? what's not working? is it that adding magnet links to bitcomet doesn't work? do you have an example link that doesn't work?

@1265578519
Copy link
Author

1265578519 commented Nov 6, 2022

@1265578519 sorry I didn't ask earlier: what was the issue you were reporting here? what's not working? is it that adding magnet links to bitcomet doesn't work? do you have an example link that doesn't work?

I use torrent url, it not work

https://dl.dmhy.org/2022/10/21/febe71baebff2ae0d7b6478c795ae37c5bbcac21.torrent

He need to use Bitcomet api /panel/task_add_magnet_result post torrent url.
transdroid v2.5.22 uses /panel/task_add_httpftp_result, Bitcomet will only download torrent file, not dl torrent contain video files.

@bwitt
Copy link
Contributor

bwitt commented Nov 6, 2022

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants