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

When you add a torrent with add() method, it does not return the torrent object with filelist #34

Open
bilalghouri opened this issue Oct 19, 2014 · 2 comments

Comments

@bilalghouri
Copy link
Contributor

When you add a torrent with add() method, it does not return the torrent object with filelist
you have to fetch the torrent object again with get() method which contains the file list
for example after adding the torrent with :
$tor = $torrent -> add(torrent file);
you cannot get filelist with $tor -> getFiles();
you have to get the $tor object again with :
$tor = $torrent -> get(hash);
then $tor -> getFiles() works

@kleiram
Copy link
Owner

kleiram commented Oct 21, 2014

Alright, that should be fixable...I'm going to look into it! I think it's because the file list is not returned when adding a torrent.

@bilalghouri
Copy link
Contributor Author

yes thats what I found out as well. but it should return the file list :/
This is an rpc level issue I guess. nothing can be done about it in transmission without making multiple api calls which I am trying to avoid as it could be time consuming on a busy server when transmission server is across the continent from the control server.

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

No branches or pull requests

2 participants