hamedramzi / php-transmission-class Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/php-transmission-class
Automatically exported from code.google.com/p/php-transmission-class
$ php tests.php
Fatal error: Wrong parameters for Exception([string $exception [, long $code
]]) in /home/jolanvps/new/class/TransmissionRPC.class.php on line 574
If I change:
parent::__construct( $message, $code, $previous );
to:
parent::__construct( $message, $code);
then it works ok.
Original issue reported on code.google.com by [email protected]
on 9 Jul 2010 at 2:34
Whenever the library tries to get the session id. On line 422:
if ( ! $fp = fopen( $this->url, 'r', false, $context ) ) // Open a filepointer
to the data, and use fgets to get the result
The problem is that when it fopens the server returns the 409 conflict message
with the session ID but no file handle is returned to $fp because it was an
error. How do I fix this?
Original issue reported on code.google.com by [email protected]
on 21 Jul 2010 at 7:53
What steps will reproduce the problem?
1. Call the set function with multiple "files-wanted" values, such as
$arguments[ 'files-wanted' ] = array( 0,1,2,3,4 );
2. Dump the evaluated value of "json_encode( $arguments );" before the call to
cleanRequestData in the request function, and again afterwards to see the
effect its having.
File Id 0 ends up being dropped from the arguments, whilst all other numbers
now have an associated key, which Transmission doesn't seem to like and ignores
all values. Also makes File Id 0 impossible to set.
What is the expected output? What do you see instead?
I expect: "files-wanted":[0,1,2,3,4]
I get : "files-wanted":{"1":1,"2":2,"3":3,"4":4}
What version of the product are you using? On what operating system?
v0.3, Windows 7, PHP v5.2.17
Please provide any additional information below.
Its the same with a set request for "files-unwanted".
Single Ids on their own aren't affected, except for specifying an Id of 0,
which as a result of being stripped out leaves the id list empty and as per the
spec, means all files will be marked as wanted/unwanted instead.
Commenting out the call to cleanRequestData gets the result I expect, but
breaks other functionality.
Original issue reported on code.google.com by [email protected]
on 27 May 2011 at 2:04
What steps will reproduce the problem?
1. Set return_as_array to true
2. Enable error reporting
What is the expected output? What do you see instead?
I get the error:
Notice: Trying to get property of non-object
I would expect to get no errors at all.
What version of the product are you using?
Version 0.3
Please provide any additional information below.
On line 605 you find:
$this->rpc_version = self::sget()->arguments->rpc_version;
Replace that with:
if ($this->return_as_array) {
$this->rpc_version = $data['arguments']['rpc-version'];
} else {
$this->rpc_version = $data->arguments->rpc_version;
}
Original issue reported on code.google.com by [email protected]
on 23 Jun 2012 at 7:15
What steps will reproduce the problem?
1. use move function to move torrent contents across filesystems
2. if data moved is > 200-300 MB, "Unable to Connect" Exception is thrown.
Data is still moved, even if multiple torrents. Seems as though transmission
doesn't send any sort of response until the request is complete causing fopen
is timing out. As an aside, I cannot reconnect to the RPC server until the
request completes, although this is likely a function of transmission, rather
than this library
Warning: fopen(http://localhost:9091/transmission/rpc): failed to open stream:
HTTP request failed! in /homedir/Development/down/TransmissionRPC.class.php on
line 399
Original issue reported on code.google.com by [email protected]
on 5 Dec 2010 at 3:00
What steps will reproduce the problem?
1. Commit a revision, post an issue
2. Wait...
3. Keep waiting...
What is the expected output? What do you see instead?
I expect something to get done. But it doesn't.
Please use labels and text to provide additional information.
Okay.
Original issue reported on code.google.com by [email protected]
on 10 Jul 2010 at 2:21
Please add mysql function
name save in mysql
every time chek torrent downloaded allready or not
Original issue reported on code.google.com by [email protected]
on 11 Apr 2011 at 12:14
Added the following functions stats for getting session stats, sinfo displaying
session info, sset changing session info.
Original issue reported on code.google.com by [email protected]
on 3 Mar 2011 at 12:23
Attachments:
Hello sir
can you give me get torent name via this clss ?
Thanks
Original issue reported on code.google.com by [email protected]
on 13 Apr 2011 at 1:38
What steps will reproduce the problem?
Version of php less than 5.2.10
rurning tests.pgp
Error:
The TransmissionRPC class requires PHP version {TransmissionRPC::MIN_PHPVER} or
above.
What is the expected output? What do you see instead?
The TransmissionRPC class requires PHP version 5.2.10 or above.
What version of the product are you using? On what operating system?
ReadyNAS Duo PHP 5.2.0
Please provide any additional information below.
changed line 33 of TransmissionRPC.class.php
die( "The TransmissionRPC class requires PHP version
".TransmissionRPC::MIN_PHPVER." or above." . PHP_EOL );
Original issue reported on code.google.com by [email protected]
on 6 May 2011 at 9:31
I'm no longer able to connect to transmission for some unknown reason:
$ php tests.php
[ERROR] Unable to connect to http://localhost:9091/transmission/rpc
~/.config/transmission-daemon/settings.json has:
"rpc-authentication-required": false,
"rpc-enabled": true,
"rpc-port": 9091,
"rpc-whitelist": "127.0.0.1",
"rpc-whitelist-enabled": true,
and transmission-remote works:
$ transmission-remote -b -l
posting:
--------
{"arguments":{"fields":["error","errorString","eta","id","isFinished","leftUntil
Done","name","peersGettingFromUs","peersSendingToUs","rateDownload","rateUpload"
,"sizeWhenDone","status","uploadRatio"]},"method":"torrent-get","tag":2}
--------
* Couldn't find host localhost in the .netrc file, using defaults
* About to connect() to localhost port 9091
* Trying 127.0.0.1... * connected
* Connected to localhost (127.0.0.1) port 9091
> POST /transmission/rpc HTTP/1.1
User-Agent: transmission-remote/2.01 (10898)
Host: localhost:9091
Accept: */*
Accept-Encoding: deflate, gzip
Content-Length: 233
Content-Type: application/x-www-form-urlencoded
{"arguments":{"fields":["error","errorString","eta","id","isFinished","leftUntil
Done","name","peersGettingFromUs","peersSendingToUs","rateDownload","rateUpload"
,"sizeWhenDone","status","uploadRatio"]},"method":"torrent-get","tag":2}
< HTTP/1.1 409 Conflict
< Server: Transmission
< X-Transmission-Session-Id: dJO2nFr5lViQpp7QTESNZdiDAcpOgSzKG3rc3ftvwSgjPSQ6
< Date: Fri, 09 Jul 2010 02:39:05 GMT
< Content-Length: 580
< Content-Type: text/html; charset=ISO-8859-1
* Connection #0 to host localhost left intact
* Closing connection #0
posting:
--------
{"arguments":{"fields":["error","errorString","eta","id","isFinished","leftUntil
Done","name","peersGettingFromUs","peersSendingToUs","rateDownload","rateUpload"
,"sizeWhenDone","status","uploadRatio"]},"method":"torrent-get","tag":2}
--------
* Couldn't find host localhost in the .netrc file, using defaults
* About to connect() to localhost port 9091
* Trying 127.0.0.1... * connected
* Connected to localhost (127.0.0.1) port 9091
> POST /transmission/rpc HTTP/1.1
User-Agent: transmission-remote/2.01 (10898)
Host: localhost:9091
Accept: */*
Accept-Encoding: deflate, gzip
X-Transmission-Session-Id: dJO2nFr5lViQpp7QTESNZdiDAcpOgSzKG3rc3ftvwSgjPSQ6
Content-Length: 233
Content-Type: application/x-www-form-urlencoded
{"arguments":{"fields":["error","errorString","eta","id","isFinished","leftUntil
Done","name","peersGettingFromUs","peersSendingToUs","rateDownload","rateUpload"
,"sizeWhenDone","status","uploadRatio"]},"method":"torrent-get","tag":2}
< HTTP/1.1 200 OK
< Server: Transmission
< Content-Type: application/json; charset=UTF-8
< Date: Fri, 09 Jul 2010 02:39:05 GMT
< Content-Length: 57
* Connection #0 to host localhost left intact
got response (len 57):
--------
{"arguments":{"torrents":[]},"result":"success","tag":2}
--------
ID Done Have ETA Up Down Ratio Status Name
Sum: None 0.0 0.0
* Closing connection #0
Original issue reported on code.google.com by [email protected]
on 9 Jul 2010 at 2:41
What steps will reproduce the problem?
Does not work:
$t = new TransmissionRPC();
$r = $t->get("26");
but this does:
$r = $t->get(26);
$r = $t->get((int)"26");
Original issue reported on code.google.com by [email protected]
on 5 Jul 2010 at 1:37
use thepiratebay-example.php geting error
Found dvdrip episode..
Adding: Red.Dawn.1984.LiMiTED.SWESUB.DVDRip.XviD.AC3-Martin.Shareitall.s.. <br
/>
<b>Fatal error</b>: Wrong parameters for Exception([string $exception [, long
$code ]]) in
<b>/root/php-transmission-class-0.3/class/TransmissionRPC.class.php</b> on line
<b>539</b><br />
Original issue reported on code.google.com by [email protected]
on 9 Apr 2011 at 1:01
When the library tries to get the session id. On line 422:
if ( ! $fp = fopen( $this->url, 'r', false, $context ) ) // Open a filepointer
to the data, and use fgets to get the result
The problem is that when it fopens the server returns the 409 conflict message
with the session ID but no file handle is returned to $fp because it was an
error.
I found a similar issue tagged as Issue #6. But that one says we need PHP 5.2.6
minimum. I am running on PHP 5.5.3.
Please see the output of php -v:
PHP 5.3.3-7+squeeze6 with Suhosin-Patch (cli) (built: Jan 31 2012 19:30:53)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH
I have commented the same on Issue #6. If you wish to handle it in the old
Issue, please delete this one.
Original issue reported on code.google.com by [email protected]
on 13 Feb 2012 at 7:51
Using your class, it's really easy
I've done it, it works...
See the diff file below
Original issue reported on code.google.com by [email protected]
on 3 Sep 2010 at 8:17
Attachments:
Attached is a diff to decode numeric status into a meaningful string.
Original issue reported on code.google.com by [email protected]
on 5 Jul 2010 at 10:13
Attachments:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.