Skip to content

Commit

Permalink
Torrent downloadDir
Browse files Browse the repository at this point in the history
Every torrent now has a reference to the absolute path it's being downloaded to.
  • Loading branch information
bstien committed Mar 28, 2015
1 parent 08170ad commit e7fd098
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion lib/Transmission/Model/Torrent.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ class Torrent extends AbstractModel
* @var double
*/
protected $uploadRatio;

/**
* @var string
*/
protected $downloadDir;

/**
* @param integer $id
Expand Down Expand Up @@ -339,6 +344,22 @@ public function isSeeding()
{
return $this->status->isSeeding();
}

/**
* @return string
*/
public function getDownloadDir()
{
return $this->downloadDir;
}

/**
* @param string $downloadDir
*/
public function setDownloadDir($downloadDir)
{
$this->downloadDir = $downloadDir;
}

/**
* {@inheritDoc}
Expand All @@ -359,7 +380,8 @@ public static function getMapping()
'peers' => 'peers',
'trackers' => 'trackers',
'uploadRatio' => 'uploadRatio',
'hashString' => 'hash'
'hashString' => 'hash',
'downloadDir' => 'downloadDir'
);
}
}

0 comments on commit e7fd098

Please sign in to comment.