okay, this is what I use when creating a torrent :
path as : /home/seedman/Downloads/<filename> is entered in the remote path and the save fields.....
then it creates a torrent file called ".torrent" .......
if I use a trailing backslash like so :
/home/seedman/Downloads/<filename>/
it doesnt accept it at all...... If I point it to a folder with content, it works perfectly...... as in:
/home/seedman/Downloads/<foldername>
it creates a torrent called <foldername>.torrent and the content is also correct.......
So there is a problem with the creation of a torrent when its a single file....???
In the meantime, I found some code in the forums, originally posted by super-poussin, which could really be helpful as a standalone app....
This is the php:
Code: Select all
<?php
$name = $_POST ['name'];
$var2 = $_POST ['var2'];
$directory = $_POST ['directory'];
$URL = $_POST ['tracker'];
$private = $_POST ['private_torrent'];
$torrentpath="/c/media/BitTorrent/sources/";
$savepath="/c/webroot/transmission/archives/";
$filename=$name.".torrent";
$mode="0777";
$transcreate="/usr/local/bin/transmission-create";
switch ($private)
{
case "yes" :
$last_line=exec("$transcreate -p -o $savepath$filename -t $URL $directory",$retval=array());
break;
case "no" :
default :
$last_line=system("$transcreate -o $savepath$filename -t $URL $directory",$retval=array());
}
copy( "$savepath$filename","$torrentpath$filename");
echo '<pre>';
echo '
</pre>
<hr /> Result : ' . $last_line;
#chown("$path$filename","nobody");
chmod ("$torrentpath$filename",0777);
chmod ("$savepath$filename",0777);
#exec("chown nobody:nogroup $path$filename");
#exec("/c/webroot/transmission/modify.sh");
echo '<pre>';
echo '
</pre>';
?>
and here is the html to call it....
Code: Select all
<html>
<header>
<center>
<bold>
Released by Super-Poussin
</bold>
</center>
</header>
<body background="fond.jpg">
<table border="0" width="100%" align="left" height="80%" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td valign="middle">
<table border="0" width="45%" align="left" height="100%">
<tbody>
<tr>
<td align="center" height="100%" cellpadding="0" cellspacing="0" valign="middle"><img src="SuperPoussin.png"></td>
</tr>
</tbody>
</table>
<form id="form1" name="form1" method=post action="transmission.php">
<p><kbd><strong>Torrent Name: </strong></kbd></p>
<p>
<label>
<input type="text" name="name" id="textfield1" value="Mytorrent"/>
</label>
</p>
<p><kbd><strong>Directory or File : </strong></kbd></p>
<p>
<label>
<input type="text" name="directory" id="textfield3" value="/c/"/>
</label>
</p>
<p><kbd><strong>Tracker URL: </strong></kbd></p>
<p>
<label>
<input type="text" name="tracker" id="textfield4" value="http://"/>
</label>
</p>
Private Torrent:<br />
<select name="private_torrent">
<option value="choose" selected="selected">Choose an option
<option value="yes">yes
<option value="no">no
</select>
<p> </p>
<input type="submit" name="button" value="Create Torrent"/>
<p>
</label>
<p> </p>
</form>
</body>
<footer>
<br>It coudld be long, be patient ! <br/>
Files are saved in /c/webroot/transmission/archives and put in /c/media/BitTorrent/sources/ for immediate seeding
</footer>
</html>
Maybe some clever person can just adapt this so it can be used to access a deluge installation on a seedbox and not just the local one? That would solve a LOT of problems for users until deluge itself is set up to handle remote file management....
You say there is another dev that is working on a filemanager..... can you perhaps put me in touch with him? I would like to help if I can even if its only with testing or whatever, as I said, This is an awesome application we must all help to make it perfect..... I have a server idle that we can use for testing purposes, lol it doesnt matter if it crashes its not a production server. And as far as the documentation goes, I WILL help there, lets get this working correct and I will write you a good tut for this app.... I am an experienced editor at Gizmo's and will do u a good and proper tutorial we can post here.