Skip to content

Commit

Permalink
fix typo of function getInfoHashsForAnnounce
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhilip committed Apr 16, 2022
1 parent 825b4f3 commit cd2c59d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ $torrent->getInfoHash(?$binary); // return v2-infohash if there is one, otherw
$torrent->getInfoHashs(?$binary); // return [TorrentFile::PROTOCOL_V1 => v1-infohash, TorrentFile::PROTOCOL_V2 => v2-infohash]
$torrent->getInfoHashV1ForAnnounce(); // return the v1 info-hash in announce ( 20-bytes string )
$torrent->getInfoHashV2ForAnnounce(); // return the v2 (truncated) info-hash in announce
$torrent->getInfoHashsForAnnnounce(); // same as getInfoHashs() but in announce
$torrent->getInfoHashsForAnnounce(); // same as getInfoHashs() but in announce

$torrent->getPieceLength(); // int

Expand Down
10 changes: 1 addition & 9 deletions src/TorrentFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ public function getInfoHashV2ForAnnounce()
/**
* The 20-bytes truncated infohash
*/
public function getInfoHashsForAnnnounce()
public function getInfoHashsForAnnounce()
{
return [
self::PROTOCOL_V1 => $this->getInfoHashV1ForAnnounce(),
Expand Down Expand Up @@ -473,14 +473,6 @@ public function setSource($source)
return $this->setInfoField('source', $source);
}

/**
* @deprecated typo of function `setSource`
*/
public function setSouce($source)
{
return $this->setSource($source);
}

public function isPrivate()
{
return $this->getInfoField('private') === 1;
Expand Down

0 comments on commit cd2c59d

Please sign in to comment.